/* ################################### 레이아웃 리셋 (모바일 전용 페이지) ################################### */

header {
    display: none !important;
}

#wrapper,
#container_wr,
#container {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#ft {
    display: none !important;
}

/* ################################### 점등식 확약서 ################################### */

.confirm_wrap {
    min-height: 100vh;
    min-height: 100dvh;
    background: url('../img/bg.jpg') center center / cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 16px;
}

.confirm_card {
    width: 100%;
    max-width: 560px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 40px 45px 36px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 로고 */
.confirm_logo {
    text-align: center;
    margin-bottom: 24px;
}

.confirm_logo img {
    width: auto;
    max-width: 160px;
    height: auto;
}

/* 제목 */
.confirm_title {
    text-align: center;
    font-size: clamp(22px, 6vw, 28px);
    font-weight: 800;
    color: #1a2a3a;
    line-height: 1.4;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

/* 부제 */
.confirm_subtitle {
    text-align: center;
    font-size: 16px;
    color: #444;
    margin-bottom: 24px;
    font-weight: 400;
}

/* 안내 텍스트 */
.confirm_text {
    text-align: center;
    margin-bottom: 28px;
}

.confirm_text p {
    font-size: 16px;
    color: #555;
    line-height: 1.75;
    margin-bottom: 14px;
}

.confirm_text p:last-child {
    margin-bottom: 0;
}

/* 입주자/방문자 선택 */
.form_row_type {
    justify-content: center;
    gap: 12px;
    padding-bottom: 14px;
}

.type_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 22px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.type_btn input[type="radio"] {
    display: none;
}

.type_btn span {
    font-size: 16px;
    font-weight: 500;
    color: #888;
    transition: color 0.2s;
}

.type_btn.active {
    border-color: #2d4a6f;
    background: #2d4a6f;
}

.type_btn.active span {
    color: #fff;
    font-weight: 600;
}

/* 동호 비활성화 */
.disabled_row {
    opacity: 0.35;
    pointer-events: none;
}

/* 폼 공통 */
.confirm_form {
    margin-bottom: 24px;
}

.form_row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    gap: 10px;
}

.form_label {
    flex-shrink: 0;
    width: 62px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.form_input {
    flex: 1;
    min-width: 0;
    height: 50px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 14px;
    border: 1px solid #ccc !important;
    border-radius: 22px;
    background: #fff !important;
    font-size: 16px;
    color: #222;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box !important;
}

.form_input:focus {
    border-color: #2d4a6f;
}

/* 전화번호 행 */
.form_row_phone {
    flex-wrap: wrap;
}

.form_phone_wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.form_select_phone {
    width: 0;
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 24px 0 10px;
    border: 1px solid #ccc;
    border-radius: 22px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    font-size: 16px;
    color: #222;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.form_select_phone:focus {
    border-color: #2d4a6f;
}

.form_input_phone {
    width: 0;
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 8px;
    border: 1px solid #ccc;
    border-radius: 22px;
    background: #fff;
    font-size: 16px;
    color: #222;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.form_input_phone:focus {
    border-color: #2d4a6f;
}

.form_dash {
    font-size: 16px;
    color: #999;
    flex-shrink: 0;
}

/* 동/호 행 */
.form_row_dong {
    justify-content: center;
    gap: 16px;
}

.form_field_half {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form_select_dong {
    width: 88px;
    height: 40px;
    padding: 0 10px 0 16px;
    border: 1px solid #ccc;
    border-radius: 22px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    font-size: 16px;
    color: #222;
    text-align: left;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.form_select_dong:focus {
    border-color: #2d4a6f;
}

.form_input_sm {
    width: 80px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #ccc;
    border-radius: 22px;
    background: #fff;
    font-size: 16px;
    color: #222;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.form_input_sm:focus {
    border-color: #2d4a6f;
}

.form_sub_desc {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #999;
    margin-top: 2px;
}

.form_label_after {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
}

/* 성인/아이 행 */
.people_line {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.form_row_people {
    justify-content: center;
    gap: 8px;
}

.form_label_main {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    flex-shrink: 0;
}

.form_fixed_num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 22px;
    background: #f0f0f0;
    font-size: 16px;
    color: #555;
    text-align: center;
}

.form_select_num {
    width: 68px;
    height: 40px;
    padding: 0 10px 0 16px;
    border: 1px solid #ccc;
    border-radius: 22px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    font-size: 16px;
    color: #222;
    text-align: left;
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.form_select_num:focus {
    border-color: #2d4a6f;
}

.form_unit {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* 동의 체크 */
.confirm_agree {
    text-align: center;
    margin-bottom: 24px;
}

.agree_label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #444;
    cursor: pointer;
    font-weight: 400;
    text-align: left;
    flex-wrap: wrap;
    justify-content: center;
}

.agree_label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2d4a6f;
    cursor: pointer;
    flex-shrink: 0;
}

/* 제출 버튼 */
.confirm_submit {
    display: block;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    height: 40px;
    background: #2d4a6f;
    color: #fff;
    font-size: clamp(16px, 4vw, 17px);
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    letter-spacing: 0.05em;
}

.confirm_submit:hover {
    background: #1e3550;
}

/* ################################### 완료 페이지 ################################### */

.done_card {
    text-align: center;
}

.done_card .confirm_title {
    font-weight: 700;
}

.done_card .confirm_title strong {
    font-weight: 800;
    color: #1a2a3a;
    font-size: inherit;
}

.done_dong_wrap {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
}

.done_field_half {
    display: flex;
    align-items: center;
    gap: 8px;
}

.done_value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #ccc;
    border-radius: 22px;
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.done_unit {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.done_visitor_msg {
    font-size: clamp(18px, 5vw, 22px);
    font-weight: 700;
    color: #2d4a6f;
    margin-bottom: 30px;
    text-align: center;
}

.done_notice {
    margin-bottom: 30px;
}

.done_notice p {
    font-size: 16px;
    color: #555;
    line-height: 1.75;
}

.done_back {
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #fff !important;
}

.done_more_info {
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #2d4a6f !important;
    background: #fff !important;
    border: 2px solid #2d4a6f !important;
    margin-top: 12px;
    padding: 15px;
}

.done_more_info:hover {
    background: #2d4a6f !important;
    color: #fff !important;
}

/* 개인정보 수집 링크 */
.privacy_link {
    display: inline !important;
    color: #2d4a6f !important;
    text-decoration: underline !important;
    font-weight: 600;
    font-size: inherit;
    cursor: pointer;
}

/* 개인정보 팝업 */
.privacy_popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99999;
}

.privacy_popup_inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 420px;
    max-height: 85vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.privacy_popup_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
}

.privacy_popup_head h2 {
    font-size: clamp(16px, 4vw, 17px);
    font-weight: 700;
    color: #1a2a3a;
}

.privacy_close {
    width: 32px;
    height: 32px;
    font-size: 24px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
}

.privacy_popup_body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.privacy_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    border-top: 2px solid #2d4a6f;
}

.privacy_table th,
.privacy_table td {
    padding: 12px 10px;
    font-size: 16px;
    border-bottom: 1px solid #e0e0e0;
    text-align: center;
    vertical-align: middle;
    color: #333;
    word-break: keep-all;
}

.privacy_table th {
    background: #f4f6f8;
    font-weight: 600;
    color: #1a2a3a;
}

.privacy_list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.privacy_list li {
    position: relative;
    padding-left: 12px;
    margin-bottom: 10px;
    font-size: 16px;
    color: #555;
    line-height: 1.65;
}

.privacy_list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #2d4a6f;
}

.privacy_popup_foot {
    padding: 14px 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.privacy_confirm_btn {
    width: 100%;
    height: 44px;
    background: #2d4a6f;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.privacy_confirm_btn:hover {
    background: #1e3550;
}

/* 모바일 br */
.mo_br {
    display: none;
}

/* ################################### 반응형 ################################### */

/* 480px 이하 - 일반 모바일 */
@media all and (max-width: 480px) {
    .confirm_card {
        padding: 36px 15px 30px;
    }

    .mo_br {
        display: block;
    }

    /* 성함/전화번호 라벨을 위로 */
    .form_row:not(.form_row_dong):not(.form_row_people):not(.form_row_type) {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    /* 성인/미성년자 세로 배치 */
    .form_row_people {
        flex-direction: column;
        gap: 10px;
    }

    .form_label {
        width: auto;
    }

    .form_input {
        width: 100%;
    }

    .form_phone_wrap {
        width: 100%;
    }

    /* 전화번호 3등분 */
    .form_select_phone {
        flex: 1;
    }

    .form_input_phone {
        flex: 1;
    }
}

/* 360px 이하 - 작은 모바일 */
@media all and (max-width: 360px) {
    .confirm_card {
        padding: 30px 12px 26px;
    }

    .confirm_title {
        font-size: 20px;
    }

    .form_row_dong {
        gap: 10px;
    }

    .form_select_dong {
        width: 78px;
        padding: 0 8px 0 12px;
    }

    .form_input_sm {
        width: 68px;
        padding: 0 10px;
    }

    .form_fixed_num {
        width: 48px;
    }

    .form_select_num {
        width: 60px;
    }

    .form_row_people {
        gap: 6px;
    }
}
