@charset "utf-8";

:root {
    /* [Reservation Core Colors] */
    --rs-color-primary-red: #EE0107;
    --rs-color-point-orange: #E35826;
    --rs-color-danger: #EF4444;
    --rs-color-blue: #2563EB;
    --rs-color-blue-icon: #3b82f6;
    --rs-color-teal-dark: #004A5A;
    --rs-color-teal-hover: #266572;
    
    /* [Slate & Text Colors] */
    --rs-text-title: #1E293B;
    --rs-text-main: #222222;
    --rs-text-sub: #475569;
    --rs-text-muted: #64748B;
    --rs-text-placeholder: #94a3b8;
    
    /* [Background Colors] */
    --rs-bg-white: #FFFFFF;
    --rs-bg-light: #F8FAFC;
    --rs-bg-muted: #F1F5F9;
    --rs-bg-thead: #F4F5F7;
    
    /* [Borders & Radius] */
    --rs-border-light: #E2E8F0;
    --rs-border-medium: #CBD5E1;
    --rs-border-dashed: #EDF2F7;
    
    --rs-radius-sm: 4px;
    --rs-radius-btn: 6px;
    --rs-radius-md: 8px;
    --rs-radius-lg: 12px;
    --rs-radius-pill: 20px;
    
    /* [Shadows & Transitions] */
    --rs-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
    --rs-shadow-mobile: 0 2px 6px rgba(0, 0, 0, 0.03);
    --rs-transition-fast: all 0.2s ease;
    --rs-transition-accord: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}


/* ==========================================================================
   1. 공통 레이아웃 및 컨테이너 (Containers & Wrappers)
   ========================================================================== */
#container_re,
.reservation-container,
.traveler-container,
.terms-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

#container_re { padding: 80px 0 0 0; }
.reservation-container { color: var(--rs-text-main); }
.traveler-container, .traveler-container * { box-sizing: border-box; }


/* ==========================================================================
   2. 타이틀 및 섹션 제목 공통 (Titles & Headings)
   ========================================================================== */
.title_sujet { text-align: center; margin-bottom: 24px; }
.catagory_title { display: inline-block; font-size: 28px; font-weight: 700; color: var(--rs-text-main); padding-bottom: 10px; border-bottom: 4px solid var(--rs-color-primary-red); letter-spacing: -0.5px; }

.res-section-title,
.res-section-title_n {
    font-size: 21px;
    font-weight: 700;
    color: var(--rs-text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}
.res-section-title { margin: 36px 0 16px 0; }
.res-section-title:first-child { margin-top: 50px; }
.res-section-title_n { margin: 0px 0 16px 0; }

.res-section-title::before,
.res-section-title_n::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 20px;
    background-color: var(--rs-color-point-orange);
    border-radius: var(--rs-radius-sm);
}


/* ==========================================================================
   3. 카드형 박스 공통 스타일 (Cards & Boxes)
   ========================================================================== */
.reservation-info-card,
.res-card-box,
.traveler-card,
.terms-box {
    background: var(--rs-bg-white);
    border: 1px solid var(--rs-border-light);
    border-radius: var(--rs-radius-lg);
    box-shadow: var(--rs-shadow-card);
    box-sizing: border-box;
}

.reservation-info-card { max-width: 1200px; padding: 24px 20px; word-break: keep-all; overflow-wrap: break-word; }
.res-card-box { padding: 8px 24px; }
.traveler-card { margin-bottom: 15px; overflow: hidden; }
.terms-box { margin-bottom: 12px !important; transition: border-color 0.2s ease; }
.terms-box:hover { border-color: var(--rs-border-medium); }


/* ==========================================================================
   4. 입력창 및 폼 컨트롤 공통 (Form Inputs, Selects & Textareas)
   ========================================================================== */
.traveler-container .input_basic,
.pop_pass_input,
.modern_input {
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--rs-border-medium);
    border-radius: var(--rs-radius-md);
    font-size: 15px;
    color: var(--rs-text-main);
    background-color: var(--rs-bg-white);
    box-sizing: border-box;
    transition: var(--rs-transition-fast);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.traveler-container .select_basic {
    height: 44px;
    padding: 0 36px 0 14px;
    border: 1px solid var(--rs-border-medium);
    border-radius: var(--rs-radius-md);
    font-size: 15px;
    color: var(--rs-text-main);
    background-color: var(--rs-bg-white);
    background-image: url("/images/goods/ico_select.png");
    background-repeat: no-repeat;
    background-position: right 12px center;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: var(--rs-transition-fast);
}

.traveler-container .input_basic::placeholder,
.buyer-memo-textarea::placeholder {
    color: var(--rs-text-placeholder);
}

.traveler-container .input_basic:focus,
.traveler-container .select_basic:focus,
.buyer-memo-textarea:focus {
    border-color: var(--rs-color-blue);
}

.buyer-memo-wrapper { width: 100%; }
.buyer-memo-textarea {
    width: 100%;
    height: 150px;
    padding: 20px;
    border: 1px solid var(--rs-border-light);
    border-radius: var(--rs-radius-lg);
    background-color: var(--rs-bg-white);
    font-size: 15px;
    line-height: 1.5;
    box-shadow: var(--rs-shadow-card);
    font-family: 'Noto Sans KR', sans-serif;
    box-sizing: border-box;
    resize: none;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}


/* ==========================================================================
   5. 테이블 공통 스타일 (Tables - Agree, Provide, Marketing)
   ========================================================================== */
.responsive-agree-table,
.responsive-provide-table,
.responsive-marketing-table {
    width: 100%;
    border-top: 1px solid var(--rs-border-light);
    font-size: 13px;
    line-height: 1.6;
    color: var(--rs-text-sub);
}

.table-thead, .tb-row {
    background-color: var(--rs-bg-thead);
    border-bottom: 1px solid var(--rs-border-light);
    text-align: center;
    font-weight: 700;
    color: var(--rs-text-sub);
}

.tb-row {
    background-color: var(--rs-bg-white);
    font-weight: normal;
}

.th-cell, .td-cell {
    padding: 12px 10px;
    border-right: 1px solid var(--rs-border-light);
    box-sizing: border-box;
}
.th-cell:last-child, .td-cell:last-child {
    border-right: none;
}

/* 개별 테이블 그리드 구조 설정 */
.responsive-agree-table .table-thead, 
.responsive-agree-table .tb-row { display: grid; grid-template-columns: 44% 30% 26%; }

.responsive-provide-table .table-thead, 
.responsive-provide-table .tb-row { display: grid; grid-template-columns: 21% 29% 25% 25%; }

.responsive-marketing-table .table-thead, 
.responsive-marketing-table .tb-row { display: grid; grid-template-columns: 25% 45% 30%; }

.item-purpose, .item-period {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.item-list, .item-receiver, .item-fields { text-align: left; }
.mobile-th { display: none; }


/* ==========================================================================
   6. 예약 정보 및 안내 박스 세부 스타일
   ========================================================================== */
.reservation-info-card__title-group { display: flex; align-items: center; gap: 5px; font-size: 16px; font-weight: 700; color: var(--rs-text-title); margin-bottom: 16px; }
.reservation-info-card__icon,
.reservation-info-card__icon_n { color: var(--rs-color-blue-icon); font-size: 18px; }

.reservation-info-card__notice-box,
.reservation-info-card__notice-box_1 { background-color: var(--rs-bg-light); border-radius: var(--rs-radius-md); padding: 16px 20px; }
.reservation-info-card__notice-box { margin-bottom: 20px; }
.reservation-info-card__notice-box_1 { margin-bottom: 0px; }

.reservation-info-card__notice-list { margin: 0; color: var(--rs-text-sub); font-size: 14px; line-height: 1.6; }
.reservation-info-card__notice-item { margin-bottom: 6px; }
.reservation-info-card__notice-item:last-child { margin-bottom: 0; }

.reservation-info-card__cta-banner { display: flex; align-items: center; justify-content: space-between; background-color: var(--rs-bg-muted); border: 1px solid var(--rs-border-light); border-radius: var(--rs-radius-md); padding: 16px 20px; gap: 16px; }
.reservation-info-card__cta-text { font-size: 13px; color: var(--rs-text-muted); line-height: 1.5; }
.reservation-info-card__cta-text strong { color: var(--rs-text-muted); }

.reservation-info-card__cta-button { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background-color: var(--rs-color-teal-dark); color: var(--rs-bg-white) !important; font-size: 13px; font-weight: 500; padding: 10px 16px; border-radius: var(--rs-radius-btn); text-decoration: none; transition: var(--rs-transition-fast); }
.reservation-info-card__cta-button:hover { background-color: var(--rs-color-teal-hover); }

.res-row { display: flex; align-items: center; padding: 16px 0; border-bottom: 1px dashed var(--rs-border-light); }
.res-row:last-child { border-bottom: none; }
.res-label { width: 150px; flex-shrink: 0; font-weight: 700; font-size: 15px; color: var(--rs-text-sub); }
.res-content { flex-grow: 1; font-size: 15px; color: var(--rs-text-main); }

.req_mark { color: var(--rs-color-danger); margin-right: 4px; font-weight: 500; }
.req_mark_no { color: var(--rs-bg-white); margin-right: 4px; font-weight: 500; }

.people_wrap { display: flex; gap: 10px; flex-wrap: wrap; }
.people_wrap span { display: inline-flex; align-items: center; background: var(--rs-bg-muted); padding: 5px 15px 6px 15px; border-radius: var(--rs-radius-pill); font-size: 14px; font-weight: 500; color: var(--rs-text-main); border: 1px solid var(--rs-border-light); }

.price_card_box { background-color: var(--rs-bg-light); border: 1px solid var(--rs-border-light); border-radius: var(--rs-radius-md); padding: 20px; max-width: 100%; box-sizing: border-box; }
.price_row { display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: var(--rs-text-muted); margin-bottom: 8px; font-weight: 500; }
.price_row strong { color: var(--rs-text-main); font-size: 15px; }
.price_row.total { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--rs-border-medium); margin-bottom: 0; }
.price_row.total span:last-child { font-size: 18px; font-weight: 700; color: var(--rs-color-blue); }

.input-inline-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.small_mm { font-size: 13px; color: var(--rs-text-muted); margin-left: 10px; }
.small_txt { font-size: 13px; color: var(--rs-color-danger); margin: 12px 0 0px 0; }
.mobile-only-label { display: none; }


/* ==========================================================================
   7. 여행자 정보 및 약관동의 컴포넌트
   ========================================================================== */
.checks_all { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--rs-bg-light); border: 1px solid var(--rs-border-light); padding: 14px 18px; border-radius: var(--rs-radius-lg); margin: 12px 0 20px 0; }
.checks input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--rs-color-blue); cursor: pointer; }
.booking-notice { font-size: 13px; color: var(--rs-text-muted); }

.pc-header-row,
.traveler-input-row {
    display: grid;
    grid-template-columns: 15% 1fr 14% 20%;
    padding: 14px 20px;
    align-items: center;
}
.pc-header-row { background-color: var(--rs-bg-light); border-bottom: 1px solid var(--rs-border-light); text-align: center; }
.header-cell { font-size: 15px; font-weight: 700; color: var(--rs-text-sub); }
.traveler-input-row { gap: 20px; }

.form-group { display: flex; flex-direction: column; }
.flex-inputs, .jumin-inputs { display: flex; align-items: center; width: 100%; gap: 6px; }

.flex-inputs input[name="t_elname"],
.flex-inputs input[name="elname"] { flex: 1; min-width: 0; }
.flex-inputs input[name="t_efname"],
.flex-inputs input[name="efname"] { flex: 1.5; min-width: 0; }

.jumin-inputs input[name="t_jumin1"],
.jumin-inputs input[name="jumin1"] { flex: 1.3; min-width: 0; }
.jumin-inputs input[name="t_jumin2"],
.jumin-inputs input[name="t_jumin3"],
.jumin-inputs input[name="jumin2"],
.jumin-inputs input[name="jumin3"] { flex: 1; min-width: 0; }

.slash, .dash { color: var(--rs-text-placeholder); font-weight: 500; flex-shrink: 0; }
.mobile-label { display: none; }

.terms-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; gap: 12px; }
.terms-title { font-size: 15px; font-weight: 500; color: var(--rs-text-main); flex: 1; min-width: 0; }

.terms-required { color: var(--rs-color-danger); margin-right: 6px; font-weight: 700; }
.terms-choice { color: var(--rs-color-blue); margin-right: 6px; font-weight: 600; }
.terms-options { display: flex; align-items: center; gap: 0px; }

.toggle-btn { background: none; border: none; padding: 6px 8px; cursor: pointer; color: var(--rs-text-muted); display: flex; align-items: center; justify-content: center; border-radius: var(--rs-radius-btn); transition: background 0.2s; }
.toggle-btn:hover { background-color: var(--rs-bg-white); }
.toggle-btn img { transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.toggle-btn.active img { transform: rotate(180deg); }

.dropdown-menu { max-height: 0; opacity: 0; overflow: hidden; background-color: var(--rs-bg-light); border-top: 1px solid transparent; padding: 0 20px; transition: var(--rs-transition-accord); }
.dropdown-menu.open { opacity: 1; border-top-color: var(--rs-bg-muted); padding: 16px 20px; }

.terms-content { max-height: 160px; overflow-y: auto; font-size: 13px; line-height: 1.6; color: var(--rs-text-sub); padding-right: 8px; }
.terms-content::-webkit-scrollbar { width: 6px; }
.terms-content::-webkit-scrollbar-thumb { background: var(--rs-border-medium); border-radius: 3px; }
.checks_txt { font-size: 16px; font-weight: 700; color: var(--rs-text-sub); cursor: pointer; }

.book_agree p strong { color: var(--rs-text-sub); font-size: 15px; display: inline-block; margin-bottom: 4px; }
.book_agree p { margin: 0; }

.table-exception-box { padding: 20px 0px; }
.exception-title { font-weight: 700; margin: 0 0 20px 0; }
.exception-list { list-style: none; padding: 0; margin: 0; }
.exception-list li { display: flex; align-items: flex-start; margin-bottom: 5px; }
.exception-list li:last-child { margin-bottom: 0; }
.exception-list .bullet { font-weight: 700; margin-right: 6px; flex-shrink: 0; }
.exception-list p { margin: 0; text-align: justify; }

.terms-wrapper ul { list-style: none; padding: 0; margin: 0; }


/* ==========================================================================
   8. 미디어 쿼리 (반응형 그룹화)
   ========================================================================== */

/* 1024px 이하 */
@media (max-width: 1024px) {
    #container_re { padding: 70px 15px 0 15px; }
    .title_sujet { margin-bottom: 20px; }
    .catagory_title { font-size: 26px; }
}

/* 480px 이하 */
@media (max-width: 480px) {
    .reservation-info-card { padding: 15px 15px; }
    .reservation-info-card__cta-banner { flex-direction: column; align-items: flex-start; }
    .reservation-info-card__cta-button { width: 100%; justify-content: center; box-sizing: border-box; }
    .reservation-info-card__icon { display: none !important; }
}

/* 768px 이하 (태블릿 및 모바일 공통) */
@media (max-width: 768px) {
    #container_re { padding: 90px 15px 0 15px; }
    .title_sujet { margin-bottom: 16px; }
    .catagory_title { font-size: 22px; border-bottom-width: 3px; padding-bottom: 8px; }

    .res-section-title, .res-section-title_n { font-size: 19px; }
    .res-section-title:first-child { margin-top: 35px; } 

    .res-card-box { padding: 0px 15px; }
    .res-row { flex-direction: column; align-items: flex-start; padding: 14px 0; }
    
    .res-label { width: 100%; margin-bottom: 6px; font-size: 15px; }
    .res-content { width: 100%; }

    .input-inline-group { display: flex; flex-wrap: wrap !important; align-items: center; gap: 6px; width: 100%; }
    .res-content input[name="res_name"] { width: 100% !important; }
    .input-inline-group input[name="eelname"] { flex: 1; width: 0 !important; min-width: 0; }
    .input-inline-group input[name="eefname"] { flex: 1.5; width: 0 !important; min-width: 0; }
    .input-inline-group select[name^="ent_"] { flex: 1; width: 0 !important; min-width: 0; }
    .input-inline-group input[name^="res_phone"] { flex: 1; width: 0 !important; min-width: 0; }
    
    .input-inline-group input[name="res_email1"] { flex: 1; width: 0 !important; min-width: 0; }
    .input-inline-group input[name="res_email2"] { flex: 1.5; width: 0 !important; min-width: 0; }
    .input-inline-group select[name="emailcode"] { flex: 0 0 100% !important; width: 100% !important; min-width: 0; }

    .small_mm { display: block; width: 100%; margin-left: 0; margin-top: 4px; }
    .price_card_box { max-width: 100%; }
    .mobile-only-label { display: block; padding: 5px 0 0 0; }
    .req_mark_no { display: none !important; }

    .pc-header-row { display: none; }
    .checks_all { padding: 14px 15px; }
    .traveler-input-row { grid-template-columns: 1fr; gap: 16px; padding: 15px; }
    .mobile-label { display: block; font-size: 15px; font-weight: 700; color: var(--rs-text-sub); margin-bottom: 6px; }
    .traveler-container .input_basic,
    .traveler-container .select_basic { max-width: 100%; font-size: 16px !important; -webkit-text-size-adjust: 100%; }

    .flex-inputs, .jumin-inputs { display: flex; flex-wrap: nowrap; gap: 6px; width: 100%; }
    .flex-inputs input[name="t_elname"],
    .flex-inputs input[name="elname"] { flex: 1 1 0%; width: 0 !important; min-width: 0; }
    .flex-inputs input[name="t_efname"],
    .flex-inputs input[name="efname"] { flex: 1.5 1 0%; width: 0 !important; min-width: 0; }
    
    .jumin-inputs input[name="t_jumin1"],
    .jumin-inputs input[name="t_jumin2"],
    .jumin-inputs input[name="t_jumin3"],
    .jumin-inputs input[name="jumin1"],
    .jumin-inputs input[name="jumin2"],
    .jumin-inputs input[name="jumin3"] { flex: 1 1 0%; width: 0 !important; min-width: 0; }

    .booking-notice { display: none !important; }

    .buyer-memo-textarea { height: 120px; padding: 12px; font-size: 16px !important; }

    .terms-header { flex-wrap: wrap; padding: 14px 16px; gap: 10px; }
    .terms-title { width: calc(100% - 40px); font-size: 15px; }
    .toggle-btn { order: 2; }
    .terms-options { width: 100%; order: 3; padding-top: 8px; border-top: 1px dashed var(--rs-border-light); justify-content: flex-start; gap: 20px; }

    .dropdown-menu { padding: 0 16px; }
    .dropdown-menu.open { padding: 14px 16px; }

    /* 모바일 환경 테이블 공통 전환 스타일 */
    .responsive-agree-table,
    .responsive-provide-table,
    .responsive-marketing-table {
        border-top: none;
    }
    .responsive-agree-table .table-thead,
    .responsive-provide-table .table-thead,
    .responsive-marketing-table .table-thead {
        display: none;
    }
    .responsive-agree-table .tb-row,
    .responsive-provide-table .tb-row,
    .responsive-marketing-table .tb-row {
        display: block;
        padding: 16px;
        margin-bottom: 14px;
        border: 1px solid var(--rs-border-light);
        border-radius: var(--rs-radius-md);
        background-color: var(--rs-bg-white);
        box-shadow: var(--rs-shadow-mobile);
    }
    .responsive-agree-table .td-cell,
    .responsive-provide-table .td-cell,
    .responsive-marketing-table .td-cell {
        display: flex !important;
        align-items: flex-start;
        width: 100% !important;
        font-size: 11px;
        padding: 8px 0 !important;
        border-right: none;
        border-bottom: 1px dashed var(--rs-border-dashed);
        text-align: left !important;
        justify-content: flex-start !important;
        box-sizing: border-box;
    }
    .responsive-agree-table .td-cell:last-child,
    .responsive-provide-table .td-cell:last-child,
    .responsive-marketing-table .td-cell:last-child {
        border-bottom: none;
        padding-bottom: 0 !important;
    }
    .responsive-agree-table .td-cell:first-child,
    .responsive-provide-table .td-cell:first-child,
    .responsive-marketing-table .td-cell:first-child {
        padding-top: 0 !important;
    }
    
    .mobile-th {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 84px;
        font-weight: 700;
        color: var(--rs-text-sub);
        background-color: var(--rs-bg-muted);
        padding: 3px 6px;
        border-radius: var(--rs-radius-sm);
        margin-right: 12px;
        margin-top: 2px;
        text-align: center;
        letter-spacing: -0.3px;
    }
    .responsive-provide-table .mobile-th,
    .responsive-marketing-table .mobile-th {
        width: 90px;
    }

    .table-exception-box { padding: 15px 0px; }
    .exception-title { font-size: 12px; margin-bottom: 10px; color: var(--rs-text-title); }
    .exception-list li { margin-bottom: 8px; }
    .exception-list p { font-size: 12px; }
}