
body {
    margin: 0;
    font-family:
        Pretendard,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    background: #f7f7f7;
    padding: 24px 16px;
    font-size: 16px;
    color: #111827;
}

body.review-open {
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 700px;
    margin: auto;
    background: white;
    padding: 24px 32px 40px;
    border-radius: 16px;
    box-sizing: border-box;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.language-row {
    margin: 0;
}

.language-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.language-text {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6B7280;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    user-select: none;
}

.language-select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header.compact {
    margin-bottom: 20px;
}

.form-header.compact .header-top {
    margin-bottom: 0;
}

.form-header.compact .brand-logo {
    width: 105px;
}

.form-header.compact .form-description {
    margin-top: 12px;
    font-size: 14px;
    word-break: normal;
    overflow-wrap: anywhere;
}

.brand-logo {
    width: 150px;
    height: auto;
    display: block;
    margin: 0;
}

.form-description {
    max-width: 520px;
    margin: 0 auto;
    color: #6B7280;
    font-size: 16px;
    line-height: 1.6;
    word-break: keep-all;
}

.progress-area {
    margin-bottom: 30px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: #6B7280;
    font-size: 15px;
    font-weight: 500;
}

.progress-track {
    width: 100%;
    height: 8px;
    background: #E5E7EB;
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    width: 20%;
    height: 100%;
    background: #3B82F6;
    border-radius: 999px;
    transition: width 0.25s ease;
}

.step-page {
    display: block;
}

.form-footer {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.secondary-button {
    background: #E5E7EB;
    color: #374151;
}

.hidden {
    display: none;
}

.choice-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.choice-button {
    min-height: 58px;
    background: white;
    color: #374151;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
}

.choice-button:hover {
    border-color: #93C5FD;
}

.choice-button.selected {
    background: #EFF6FF;
    color: #2563EB;
    border: 2px solid #3B82F6;
}

.choice-group.three-columns {
    grid-template-columns: repeat(3, 1fr);
}

.choice-group.input-error .choice-button {
    border-color: #DC2626;
}

.conditional-field {
    display: none;
}

.conditional-field.visible {
    display: block;
}

.consent-screen {
    padding-top: 8px;
}

.consent-title {
    margin: 0 0 22px;
    font-size: 26px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.consent-intro {
    margin: 0 0 28px;
    font-size: 17px;
    line-height: 1.7;
    color: #374151;
}

.consent-info {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 28px;
}

.consent-item {
    padding-bottom: 20px;
    border-bottom: 1px solid #E5E7EB;
}

.consent-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.consent-item-title {
    margin-bottom: 7px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
}

.consent-item-description {
    font-size: 16px;
    line-height: 1.7;
    color: #374151;
    word-break: keep-all;
}

.consent-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0 6px;
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
}

.consent-checkbox-row input {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    flex-shrink: 0;
    cursor: pointer;
}

#consentNextButton {
    margin-top: 24px;
}

.form-field {
    margin-bottom: 25px;
}

.conditional-subsection {
    margin-top: 25px;
}

.file-input {
    padding: 11px 12px;
}

.file-input::file-selector-button {
    margin-right: 12px;
    padding: 9px 13px;
    border: 0;
    border-radius: 8px;
    background: #E8F0FE;
    color: #1D4ED8;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.thank-you-screen {
    padding: 54px 20px 42px;
    text-align: center;
}

.thank-you-icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    place-items: center;
    border-radius: 50%;
    background: #DCFCE7;
    color: #15803D;
    font-size: 34px;
    font-weight: 800;
}

.thank-you-screen h2 {
    margin: 0 0 14px;
    font-size: 27px;
}

.thank-you-screen > p {
    max-width: 560px;
    margin: 0 auto;
    color: #4B5563;
    font-size: 16px;
    line-height: 1.75;
    word-break: keep-all;
}

.thank-you-reference {
    display: inline-flex;
    gap: 10px;
    margin-top: 26px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #F3F4F6;
    color: #374151;
}

.step-section-heading {
    margin: 34px 0 18px;
    padding-top: 24px;
    border-top: 1px solid #E5E7EB;
    color: #1F2937;
    font-size: 20px;
    line-height: 1.4;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 17px;
    font-weight: 700;
}

.form-input {
    width: 100%;
    min-height: 54px;
    padding: 15px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 17px;
    outline: none;
    background: white;
}

.form-input:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

#roadAddress,
#residentRoadAddress {
    cursor: pointer;
}

.form-input.input-error {
    border-color: #DC2626;
}

.field-help {
    margin: 8px 0 0;
    color: #6B7280;
    font-size: 14px;
    line-height: 1.5;
}

/* ==========================
   Notice Box
========================== */

.notice-box {
    margin: 12px 0 16px;
    padding: 16px;
    border: 1px solid #dbe5f5;
    border-radius: 14px;
    background: #f7faff;
    font-size: 14px;
    line-height: 1.6;
}

.notice-box p {
    margin: 0;
    line-height: 1.7;
}

.notice-box p + p {
    margin-top: 10px;
}

.notice-box strong {
    display: block;
    color: #1F2937;
    font-weight: 700;
    line-height: 1.6;
}

.final-submit-notice {
    margin-top: 28px;
    padding: 14px 16px;
    border: 1px solid #DBEAFE;
    border-radius: 12px;
    background: #EFF6FF;
    color: #1E3A5F;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.review-modal {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background: rgba(17, 24, 39, 0.5);
}

.review-modal.hidden {
    display: none;
}

.review-panel {
    width: min(100%, 620px);
    max-height: min(86vh, 760px);
    overflow-y: auto;
    padding: 26px;
    box-sizing: border-box;
    border-radius: 18px;
    background: white;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.24);
}

.review-panel h2 {
    margin: 0;
    font-size: 24px;
}

.review-intro {
    margin: 10px 0 22px;
    color: #6B7280;
    line-height: 1.6;
}

.review-group {
    margin-top: 20px;
}

.review-group-title {
    margin: 0 0 8px;
    color: #1D4ED8;
    font-size: 16px;
}

.review-row {
    display: grid;
    grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.4fr);
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #E5E7EB;
}

.review-row dt {
    color: #6B7280;
    font-size: 14px;
}

.review-row dd {
    min-width: 0;
    margin: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.review-actions {
    position: sticky;
    bottom: -26px;
    display: flex;
    gap: 12px;
    margin: 24px -26px -26px;
    padding: 14px 26px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid #E5E7EB;
    background: rgba(255, 255, 255, 0.98);
}

.error-message {
    display: none;
    margin-top: 7px;
    color: #DC2626;
    font-size: 13px;
    line-height: 1.4;
}

.error-message.visible {
    display: block;
}

button {
    width: 100%;
    min-height: 56px;
    background: #3B82F6;
    color: white;
    border: none;
    padding: 15px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
}

@media (max-width: 600px) {
    body {
        padding: 18px 12px;
    }

    .container {
        padding: 24px 22px 132px;
        border-radius: 14px;
    }

    h1 {
        font-size: 28px;
    }

    .form-header {
        margin-bottom: 26px;
    }

    .form-header.compact {
        margin-bottom: 18px;
    }

    .brand-logo {
        width: 150px;
        max-width: 55%;
        margin-bottom: 18px;
    }

    .form-header.compact .brand-logo {
        width: 100px;
        margin-bottom: 0;
    }

    .form-description {
        font-size: 15px;
        line-height: 1.6;
    }

    .form-field {
        min-width: 0;
        margin-bottom: 24px;
    }

    input[type="date"].form-input {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    }

    .progress-area {
        margin-bottom: 28px;
    }

    .step-section-heading {
        margin-top: 30px;
        padding-top: 20px;
        font-size: 18px;
    }

    .form-footer {
        position: fixed;
        z-index: 20;
        left: 50%;
        bottom: max(10px, env(safe-area-inset-bottom));
        width: calc(100% - 40px);
        max-width: 680px;
        margin-top: 0;
        padding: 10px;
        transform: translateX(-50%);
        transition:
            opacity 0.18s ease,
            transform 0.18s ease;
        box-sizing: border-box;
        border: 1px solid rgba(209, 213, 219, 0.72);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 8px 28px rgba(17, 24, 39, 0.16);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .form-footer button {
        border-radius: 14px;
    }

    body.keyboard-open .form-footer {
        opacity: 0;
        pointer-events: none;
        transform: translate(
            -50%,
            calc(100% + 32px)
        );
    }

    .review-panel {
        max-height: 92vh;
        padding: 22px 18px;
        border-radius: 16px;
    }

    .review-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .review-actions {
        bottom: -22px;
        margin: 22px -18px -22px;
        padding-right: 18px;
        padding-left: 18px;
    }

    .choice-group.three-columns {
        grid-template-columns: 1fr;
        gap: 10px;
    }

     .choice-button {
        font-size: 15px;
    }
    
}
