:root {
    --green-dark: #4a5e3a;
    --green-mid: #6b7f56;
    --green-light: #a8bc8f;
    --green-pale: #d6e4c7;
    --bg: #f4f1eb;
    --text: #2c2c2c;
    --muted: #7a7a6e;
    --border: #d2cfc5;
    --white: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; padding: 3rem 1rem 4rem; }

.card-form {
    background: var(--white);
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 2.4rem 2.6rem;
    max-width: 560px;
    margin: 0 auto;
    box-shadow: 0 4px 30px rgba(74,94,58,0.06);
}

h1.page-title {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 0.2rem;
}
.subtitle a { color: var(--green-mid); text-decoration: none; font-weight: 500; }
.subtitle a:hover { text-decoration: underline; }

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}
.required-star { color: #c0392b; margin-left: 2px; }
.form-control {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: #fafaf7;
    color: var(--text);
    font-size: 0.9rem;
    padding: 0.6rem 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(107,127,86,0.15);
    background: #fff;
    outline: none;
}
.form-control::placeholder { color: #b0ae9f; }
.input-group .form-control { border-right: none; border-radius: 8px 0 0 8px; }
.input-group .btn-eye {
    border: 1.5px solid var(--border);
    border-left: none;
    background: #fafaf7;
    border-radius: 0 8px 8px 0;
    color: var(--muted);
    padding: 0 0.9rem;
    transition: background 0.2s;
}
.input-group .btn-eye:hover { background: var(--green-pale); }
.input-group:focus-within .btn-eye {
    border-color: var(--green-mid);
}
.hint-text {
    font-size: 0.77rem;
    color: var(--muted);
    margin-top: 0.3rem;
}

.walker-box {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    background: #f9f8f5;
    overflow: hidden;
    transition: border-color 0.25s;
}
.walker-box.active { border-color: var(--green-light); background: #f3f8ed; }

.walker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}
.walker-title {
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.walker-subtitle {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 2px;
}

.toggle-switch {
    position: relative;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    inset: 0;
    background: #d0cfc6;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s;
}
.slider::before {
    content: '';
    position: absolute;
    width: 20px; height: 20px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.toggle-switch input:checked + .slider { background: var(--green-mid); }
.toggle-switch input:checked + .slider::before { transform: translateX(20px); }

.walker-extra {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s;
    opacity: 0;
}
.walker-extra.open {
    max-height: 420px;
    opacity: 1;
}
.walker-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.9rem 0;
}

.form-select {
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: #fafaf7;
    font-size: 0.9rem;
    color: var(--text);
    padding: 0.6rem 0.9rem;
    transition: border-color 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7f56' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    -webkit-appearance: none;
}
.form-select:focus {
    border-color: var(--green-mid);
    box-shadow: 0 0 0 3px rgba(107,127,86,0.15);
    outline: none;
}

.form-check-input {
    width: 1.1em; height: 1.1em;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    margin-top: 0.22em;
    cursor: pointer;
    transition: border-color 0.2s;
}
.form-check-input:checked {
    background-color: var(--green-mid);
    border-color: var(--green-mid);
}
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(107,127,86,0.15); }
.form-check-label { font-size: 0.875rem; }
.form-check-label a { color: var(--green-mid); text-decoration: none; font-weight: 500; }
.form-check-label a:hover { text-decoration: underline; }

.btn-submit {
    width: 100%;
    background: var(--green-light);
    color: var(--green-dark);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 8px;
    padding: 0.8rem;
    transition: background 0.2s, transform 0.15s;
}
.btn-submit:hover {
    background: var(--green-mid);
    color: #fff;
    transform: translateY(-1px);
}
.btn-submit:active { transform: translateY(0); }

