html, body {
    height: 100%;
    margin: 0;
    font-family: system-ui, sans-serif;
    background: #f7f8e8;
    color: #303114;
}

:root {
    --brand: #a6a633;
    --brand-deep: #8b8f28;
    --brand-dark: #727720;
    --brand-pale: #dfe18f;
    --brand-tint: #f7f8e8;
    --surface: #fffefb;
    --surface-soft: #f9faee;
    --surface-muted: #eef1d7;
    --line: #d7d99c;
    --muted: #6b6d3b;
    --text: #303114;
    --shadow: rgba(74, 78, 18, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
}

.card {
    width: min(460px, 100%);
    background: var(--surface);
    border: 1px solid rgba(126, 129, 36, 0.12);
    border-radius: 14px;
    box-shadow: 0 14px 32px var(--shadow);
    padding: 22px;
}

.form-card {
    width: min(460px, 100%);
}

.page {
    display: block;
}

.form-title,
h1 {
    margin: 0 0 10px;
    font-size: 24px;
    line-height: 1.2;
    color: var(--text);
}

.form-stack {
    display: flex;
    flex-direction: column;
}

.text-hbox {
    display: flex;
    gap: 12px;
}

.fill {
    flex: 1;
}

label {
    display: block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #4f5126;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffef8;
    color: var(--text);
    font: inherit;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(166, 166, 51, 0.28);
    border-color: var(--brand);
}

.check_box_menu {
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(126, 129, 36, 0.18);
    border-radius: 10px;
    background: var(--surface-soft);
}

.check_box_menu > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check_box_menu > div:first-child label {
    margin-top: 0;
}

.check_box_menu input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--brand-deep);
}

.check_box_menu .fill {
    margin-top: 10px;
}

.button,
.white-button {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.button {
    border: 0;
    background: var(--brand-deep);
    color: #fff;
    box-shadow: 0 8px 18px rgba(95, 98, 27, 0.16);
}

.button:hover {
    background: #999d31;
}

.button:disabled,
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.white-button {
    border: 2px solid var(--brand-deep);
    background: #fffef8;
    color: var(--brand-dark);
}

.white-button:hover {
    background: #f5f7e6;
}

.result {
    display: none;
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(126, 129, 36, 0.14);
    background: var(--surface-muted);
    color: var(--text);
    font-size: 14px;
}

.error {
    color: #b91c1c;
}

.form-helper {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
}

.map-picker {
    display: grid;
    gap: 12px;
}

.map-canvas {
    min-height: 320px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

.map-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.map-hint {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.72);
}

.note {
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    background: var(--surface-muted);
    color: #5b5d31;
    font-size: 13px;
    text-align: center;
}

a {
    color: inherit;
    text-decoration: none;
}

a:visited {
    color: inherit;
}

.note a {
    color: var(--brand-dark);
}

@media (max-width: 640px) {
    .content-wrapper {
        align-items: flex-start;
    }

    .card,
    .form-card {
        width: 100%;
        padding: 18px;
    }

    .text-hbox {
        flex-direction: column;
        gap: 0;
    }
}
