@import url("../reset.css");
@import url("../common.css");
@import url("../layout.css");
@import url("/css/responsive.css");

/* =========================
   Sub header
========================= */

#sub_header .more a {
    display: none;
}

/* =========================
   Application
========================= */

[v-cloak] {
    display: none;
}

.application_page {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 0 2rem;
}

.application_list {
    padding: 0 2rem 2rem;
}

/* =========================
   Receipt select
========================= */

.receipt_select {
    position: relative;
    z-index: 20;
}

.receipt_select .select_btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;

    width: 100%;
    min-height: 8.5rem;
    padding: 1.5rem 2rem;

    text-align: left;

    background: #f7f9fb;
    border: 1px solid #e3e9f1;
    border-radius: 2rem;
}

.receipt_select .select_value {
    flex: 1;
    min-width: 0;
}

.receipt_select .select_status {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--color-text-muted);
    font-size: var(--font-sm);
    font-weight: var(--bold);
    text-align: right;
    white-space: nowrap;
}

.receipt_select .select_option_content {
    flex: 1;
    min-width: 0;
}

/* Receipt information */

.receipt_select .select_value.receipt_info,
.receipt_select .select_option_content.receipt_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.receipt_select .receipt_info strong,
.receipt_select .receipt_info>span {
    display: block;
    line-height: var(--line-height);
}

.receipt_select .receipt_info strong {
    color: var(--color-text);
    font-size: var(--font-md);
    font-weight: var(--bold);
}

.receipt_select .receipt_info>span {
    color: var(--color-text-muted);
    font-size: var(--font-sm);
}

/* Arrow */

.receipt_select .select_arrow {
    flex: 0 0 auto;

    width: 3rem;
    height: 3rem;

    color: var(--color-text-sub);
    background-color: currentColor;

    mask: url("../../images/icon/arrow_down.svg") center / contain no-repeat;
    -webkit-mask: url("../../images/icon/arrow_down.svg") center / contain no-repeat;
}

.receipt_select.is_open .select_btn {
    background: var(--color-bg);
    border-radius: 2rem 2rem 0 0;
}

.receipt_select.is_open .select_arrow {
    transform: rotate(180deg);
}

/* Option list */

.receipt_select .select_list {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    z-index: 30;

    overflow: hidden;

    background: var(--color-bg);
    border: 1px solid var(--color-border-blue);
    border-top: 0;
    border-radius: 0 0 2rem 2rem;
}

.receipt_select .select_option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;

    width: 100%;
    min-height: 10rem;
    padding: 2rem;

    text-align: left;

    background: var(--color-bg);
    border-top: 1px solid var(--color-border-100);
}

.receipt_select .select_option.is_selected {
    background: var(--color-bg-blue);
}

.receipt_select .select_option.is_selected::after {
    content: "";

    flex: 0 0 auto;

    width: 1rem;
    height: 2rem;
    margin-right: 1rem;

    border: solid var(--color-primary);
    border-width: 0 0.375rem 0.375rem 0;

    transform: rotate(45deg);
}

/* =========================
   Progress
========================= */

.application_progress {
    display: flex;
    flex-direction: column;
}

.progress_top {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;

    padding: 0 1rem 0 0.5rem;
}

.progress_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress_head h2 {
    font-size: var(--font-md);
    font-weight: var(--bold);
}

.progress_count {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    font-size: var(--font-md);
    line-height: var(--line-height);
}

.progress_count strong {
    color: var(--color-primary);
    font-weight: var(--bold);
}

.progress_count span {
    color: var(--color-text-muted);
}

.progress_desc {
    color: var(--color-text-muted);
    font-size: var(--font-sm);
    line-height: var(--line-height);
}

/* =========================
   Step list
========================= */

.step_list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    margin-top: 1.5rem;
}

.step_list .step_card:not(.is_active):not(.is_complete) {
    background: var(--color-bg-soft);
}

.step_list .step_card .desc {
    display: block;
}

.step_list .step_card.is_complete .content > .state + .service_notice,
.step_list .step_card.is_complete .content > .state_cancel + .service_notice {
    margin-top: 1rem;
}

/* Complete step */

.step_list .step_card.is_complete {
    padding-right: 6rem;
}

.step_list .step_card.is_complete .step_arrow {
    position: absolute;
    top: 50%;
    right: 1rem;

    transform: translateY(-50%);
}

/* Voucher D-day guide under step 2 */

.step_voucher_guide {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;

    margin-top: -0.25rem;
    padding: 15px 0.25rem;
}

.step_voucher_guide .voucher_dday {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;

    margin: 0;

    color: var(--color-text);
    font-size: var(--font-sm);
    line-height: 1.3;
}

.step_voucher_guide .dday_prefix {
    color: var(--color-primary);
    font-size: 2.4rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.step_voucher_guide .voucher_dday strong {
    color: var(--color-primary-dark);
    font-size: 3.2rem;
    font-weight: var(--bold);
    letter-spacing: -0.03em;
    line-height: 1;
}

.step_voucher_guide .dday_unit,
.step_voucher_guide .dday_due {
    color: var(--color-text);
    font-size: var(--font-sm);
    font-weight: 400;
}

.step_voucher_guide .voucher_note,
.step_grade_pending .voucher_note,
.step_contract_summary .voucher_note {
    display: flex;
    align-items: center;
    gap: 0.4rem;

    margin: 0;

    color: var(--color-text);
    font-size: var(--font-sm);
    line-height: 1.4;
}

.step_voucher_guide .info_mark,
.step_grade_pending .info_mark,
.step_contract_summary .info_mark {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    width: 1.4em;
    height: 1.4em;

    color: var(--color-text-muted);
    border: 1px solid currentColor;
    border-radius: 50%;

    font-size: 0.85em;
    font-weight: 600;
    font-style: normal;
    line-height: 1;
}

/* Step2 complete: grade pending */

.step_grade_pending {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;

    margin-top: 0.5rem;
}

.step_grade_pending .grade_pending {
    margin: 0;
    padding-left: calc(1.4em + 0.4rem);

    color: var(--color-primary);
    font-size: var(--font-sm);
    font-weight: 500;
    line-height: 1.4;
}

.step_contract_summary {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;

    margin-top: 1rem;
}

.step_contract_summary dl {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;

    margin: 0;
}

.step_contract_summary dl > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.step_contract_summary dt,
.step_contract_summary dd {
    margin: 0;

    font-size: var(--font-sm);
    line-height: 1.4;
}

.step_contract_summary dt {
    color: var(--color-text-muted);
    font-weight: 400;
}

.step_contract_summary dd {
    color: var(--color-text);
    font-weight: 500;
    text-align: right;
}

.step_contract_summary dd.is_grade,
.step_contract_summary dd.is_point {
    color: var(--color-primary);
    font-weight: 600;
}

.step_voucher_guide .voucher_method {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;

    margin: 0;

    color: var(--color-text);
    font-size: var(--font-sm);
    line-height: 1.5;
}

.step_voucher_guide .method_link {
    color: var(--color-primary);
    text-decoration: none;
}

.step_voucher_guide .method_link:hover {
    text-decoration: underline;
}

.step_voucher_guide .btn_copy_url {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;

    height: 2.4rem;
    padding: 0 0.9rem;

    color: var(--color-primary);
    background: var(--color-white);
    border: 1px solid var(--color-primary);
    border-radius: 999px;

    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

/* =========================
   Reservation
========================= */

.reservation_page {
    padding: 0 2rem 2rem;
}

.reservation_form {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Reservation type */

.reserve_type {
    position: relative;
    isolation: isolate;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;

    margin: 0;
    padding: 0.5rem;

    background: var(--color-bg-soft);
    border: 0;
    border-radius: 1.5rem;
}

.reserve_type::before {
    content: "";

    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 0.5rem;
    z-index: -1;

    width: calc((100% - 1rem) / 2);

    background: var(--color-bg);
    border-radius: 0.75rem;
    box-shadow: 0 0.25rem 1rem rgb(0 0 0 / 5%);

    transition: transform 0.25s ease;
}

.reserve_type:has(.radio_btn:nth-of-type(2) .radio_btn_inp:checked)::before {
    transform: translateX(100%);
}

.reserve_type .radio_btn {
    position: relative;
    z-index: 1;
}

.reserve_type .radio_btn_lbl {
    height: auto;
    padding: 1rem 0;

    color: var(--color-text-muted);
    font-size: var(--font-sm);

    background: transparent;
    border: 0;
    border-radius: 1rem;

    transition: color 0.25s ease;
}

.reserve_type .radio_btn_inp:checked+.radio_btn_lbl {
    color: var(--color-primary);
    font-weight: var(--bold);

    background: transparent;
    border: 0;
}

/* =========================
   Reservation form
========================= */

.reservation_page .form_section {
    gap: 1.5rem;
}

.section_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.section_head .chk {
    flex: 0 0 auto;
    gap: 0.75rem;

    font-size: var(--font-xs);
}

.reservation_page .form_textarea {
    height: auto;
    padding-top: 1.25rem;
}

/* Resident number */

.resident_row {
    gap: 0.5rem;
}

/* Address */

.address_fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.address_search {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    color: var(--color-text-muted);
    text-align: left;
}
/* Form message */

.reservation_page .error_message,
.reservation_page .field_help {
    font-size: 1.75rem;
}

/* =========================
   Payment
========================= */

.payment_page {
    padding-bottom: 8rem;
}

.payment_page .form_intro {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.payment_page .form_intro h2 {
    color: var(--color-text);
    font-size: var(--font-md);
    font-weight: var(--bold);
    line-height: var(--line-height);
}

.payment_page .form_intro p {
    color: var(--color-text-muted);
    font-size: var(--font-sm);
    line-height: var(--line-height);
}

/* Payment method */

.payment_method .radio_group {
    gap: 1rem;
}

.payment_method .radio_btn_lbl {
    justify-content: flex-start;
    padding: 2rem;

    color: var(--color-text);
    font-size: var(--font-sm);
    font-weight: var(--regular);

    background: var(--color-bg);
}

.payment_method .radio_btn_inp:checked+.radio_btn_lbl {
    color: var(--color-text);
    font-weight: var(--bold);

    background: var(--color-bg);
    border-color: var(--color-text);
}

/* Payment amount */

.payment_amount {
    padding: 0 2rem;
}

.payment_amount .data_row {
    min-height: 8rem;
}

.payment_amount .data_value {
    justify-self: end;

    color: var(--color-primary-dark);
    font-size: var(--font-xl);
    font-weight: var(--bold);
}

/* Refund policy */

.refund_policy p {
    color: var(--color-text-muted);
    font-size: var(--font-sm);
    line-height: var(--line-height);
    word-break: keep-all;
}

/* Agreement */

.agreement_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.agreement_head h2 {
    font-size: var(--font-md);
    font-weight: var(--bold);
}

.agreement_head a {
    color: var(--color-primary);
    font-size: var(--font-sm);
}

.payment_agreement .chk {
    font-size: var(--font-sm);
}

/* =========================
   Reservation complete
========================= */

.complete_visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 1rem 0 2rem;

    text-align: center;
}

.complete_image {
    display: block;

    height: 150px;
}

.complete_visual h1 {
    color: var(--color-text);
    font-size: var(--font-xl);
    font-weight: var(--bold);
    line-height: var(--line-height);
}

.complete_visual p {
    color: var(--color-text-muted);
    font-size: var(--font-sm);
    line-height: var(--line-height);
}

/* Complete actions */

.complete_actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;

    margin-top: 1rem;
}

.complete_actions .form_intro p {
    color: var(--color-error);
}

.complete_actions .service_notice {
    align-self: stretch;
    width: 100%;
}

.complete_actions > .btn + .service_notice {
    background: #f2f2f2;
}

.complete_cancel {
    color: var(--color-text-muted);
    font-size: var(--font-sm);
    line-height: var(--line-height);
    text-decoration: underline;
    text-underline-offset: 0.3rem;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.complete_cancel_box {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.9);
}

.complete_cancel_box[hidden] {
    display: none !important;
}

.complete_cancel_panel {
    width: 100%;
    max-width: 32rem;
    padding: 2rem 1.6rem;
    text-align: center;
    background: #fff;
    border-radius: 1.2rem;
}

.complete_cancel_title,
.complete_cancel_label {
    margin: 0;
    color: var(--color-text);
    font-size: var(--font-sm);
    font-weight: var(--bold);
}

.complete_cancel_label {
    margin-top: 1.2rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.complete_cancel_amount {
    margin: 0.6rem 0 1.6rem;
    color: var(--color-text);
    font-size: var(--font-xl);
    font-weight: var(--bold);
}

.complete_cancel_btns {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.complete_cancel_btns .btn {
    min-width: 8rem;
}


/* =========================
   Service application
========================= */

.service_page .application_content {
    gap: 3rem;
}

/* Questions */

.service_questions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service_question {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    min-width: 0;
    margin: 0;
    padding: 0;

    border: 0;
}

.question_title {
    color: var(--color-text);
    font-size: var(--font-sm);
    font-weight: var(--bold);
    line-height: var(--line-height);
}

.question_title .question_note {
    color: var(--color-text-muted);
    font-weight: var(--regular);
}

/* Radio layout */

.service_radio_group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feeding_radio_group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Price */

.service_price .data_row {
    padding: 2rem 0;
}

.service_price .data_value {
    justify-self: end;
    font-weight: var(--bold);
}

.service_price .data_value.is_point {
    color: var(--color-primary-dark);
}

/* Baby information */

.baby_list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.baby_card {
    overflow: hidden;

    background: var(--color-bg-soft);
    border: 1px solid var(--color-border-100);
    border-radius: 1.5rem;

}

.baby_list_box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding: 1rem 0;
}

.baby_card .service_radio_group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contract_detail .baby_card summary strong {
    font-size: var(--font-sm);
}

.baby_card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;


    min-height: 6rem;
    padding: 1.5rem 2rem;

    cursor: pointer;
    list-style: none;
}

.baby_card summary::-webkit-details-marker {
    display: none;
}

.baby_card summary strong {
    color: var(--color-text);
    font-size: var(--font-sm);
    font-weight: var(--bold);
    line-height: var(--line-height);
}

.baby_card_arrow {
    flex: 0 0 auto;

    width: 2rem;
    height: 2rem;

    color: var(--color-text-sub);
    background-color: currentColor;

    mask: url("../../images/icon/arrow_down.svg") center / contain no-repeat;
    -webkit-mask: url("../../images/icon/arrow_down.svg") center / contain no-repeat;

    transition: transform 0.2s ease;
}

.baby_card[open] .baby_card_arrow {
    transform: rotate(180deg);
}

.baby_card_content {
    display: flex;
    flex-direction: column;
    gap: 2rem;

    padding: 0 2rem 2rem;
}

.baby_card_content .form_control {
    border-radius: 1rem;
}

/* Health information */

.health_section {
    gap: 2rem;
}

.condition_check_group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 2rem;
}

/* Notice */

.service_notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;

    padding: 2rem;

    background: var(--color-error-bg);
    border-radius: 1.5rem;
}

.notice_icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;

    width: 3rem;
    height: 3rem;

    color: var(--color-bg);
    font-size: var(--font-sm);
    font-weight: var(--bold);

    background: var(--color-error);
    border-radius: 50%;
}

.service_notice p {
    color: var(--color-text);
    font-size: var(--font-sm);
    line-height: var(--line-height);
    word-break: keep-all;
}

.service_notice strong {
    color: var(--color-red);
    font-weight: var(--bold);
}

/* =========================
   Service calendar
========================= */

.service_calendar {
    width: 100%;
    padding: 1rem;

    background: var(--color-bg);
    border: 1px solid var(--color-border-100);
    border-radius: 1.5rem;
}

/* Calendar header */

.service_calendar_head {
    display: grid;
    grid-template-columns: 5rem minmax(0, 1fr) 5rem;
    align-items: center;
}

.service_calendar_title {
    color: var(--color-text);
    font-size: var(--font-md);
    font-weight: var(--bold);
    line-height: var(--line-height);
    text-align: center;
}

.service_calendar_arrow {
    width: 5rem;
    height: 5rem;
    padding: 0;

    color: var(--color-text-sub);
    background-color: currentColor;
    border: 0;

    mask-image: url("../../images/icon/right_arrow.svg");
    mask-position: center;
    mask-size: 2.5rem 2.5rem;
    mask-repeat: no-repeat;

    -webkit-mask-image: url("../../images/icon/right_arrow.svg");
    -webkit-mask-position: center;
    -webkit-mask-size: 2.5rem 2.5rem;
    -webkit-mask-repeat: no-repeat;
}

.service_calendar_arrow.is_prev {
    transform: rotate(180deg);
}

/* Week */

.service_calendar_week,
.service_calendar_days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.service_calendar_week {
    margin-bottom: 0.5rem;
}

.service_calendar_week span {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 5rem;

    color: var(--color-text);
    font-size: var(--font-sm);
    font-weight: var(--bold);
    line-height: 1;
}

/* Date item */

.service_calendar_days {
    row-gap: 0.5rem;
}

.service_calendar_day {
    position: relative;

    display: block;
    justify-self: center;

    width: calc(100% - 0.75rem);
    max-width: 7.5rem;
    aspect-ratio: 1;
}

label.service_calendar_day {
    cursor: pointer;
}

.service_calendar_inp {
    position: absolute;

    width: 1px;
    height: 1px;
    overflow: hidden;

    opacity: 0;
    pointer-events: none;
}

.service_calendar_num {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    color: var(--color-text);
    font-size: var(--font-sm);
    font-weight: var(--bold);
    line-height: 1;

    background: transparent;
    border-radius: 1rem;
}

/* Previous month */

.service_calendar_day.is_outside .service_calendar_num {
    color: var(--color-text-disabled);
}

/* Saturday */

.service_calendar_day.is_saturday .service_calendar_num {
    color: var(--color-primary);
}

/* Sunday / Holiday */

.service_calendar_day.is_sunday .service_calendar_num,
.service_calendar_day.is_holiday .service_calendar_num {
    color: #ff4651;
}

/* Preview */

.service_calendar_day.is_preview .service_calendar_num {
    color: var(--color-primary);
    background: var(--color-bg-blue);
}

/* Holiday name */

.service_calendar_day.is_holiday {
    aspect-ratio: auto;
    min-height: 100%;
}

.service_calendar_day.is_holiday .service_calendar_num {
    aspect-ratio: 1;
    height: auto;
}

.service_calendar .off-name {
    display: block;
    margin-top: 0.15rem;
    color: #d64545;
    font-size: 1.3rem;
    font-weight: var(--bold);
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Selected */

.service_calendar_inp:checked+.service_calendar_num {
    color: var(--color-white);
    background: var(--color-primary);
}

/* Selected weekend / holiday */

.service_calendar_day.is_sunday .service_calendar_inp:checked+.service_calendar_num,
.service_calendar_day.is_saturday .service_calendar_inp:checked+.service_calendar_num,
.service_calendar_day.is_holiday .service_calendar_inp:checked+.service_calendar_num {
    color: var(--color-white);
}

/* Focus */

.service_calendar_inp:focus-visible+.service_calendar_num {
    outline: 2px solid var(--color-primary);
    outline-offset: 0.25rem;
}


/* =========================
   Contract page
========================= */

.contract_page {
    padding-bottom: 4rem;
}

/* Contract number */

.contract_number {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    padding: 1.5rem 2rem;

    background: var(--color-bg-blue);
    border-radius: 1rem;
}

.contract_number span {
    font-size: var(--font-sm);
    font-weight: var(--bold);
}

.contract_number strong {
    color: var(--color-primary);
    font-size: var(--font-md);
    font-weight: var(--bold);
}

/* =========================
   Schedule table
========================= */

.schedule_table {
    overflow: hidden;

    background: var(--color-bg);
    border: 1px solid var(--color-border-100);
    border-radius: 1.5rem;
}

.schedule_table_head,
.schedule_table_row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: center;

    padding: 0 2rem;
}

.schedule_table_head {
    min-height: 6rem;
}

.schedule_table_head span {
    color: var(--color-text);
    font-size: var(--font-sm);
    font-weight: var(--bold);
    line-height: var(--line-height);
}

.schedule_table_row {
    height: 6rem;
}

.schedule_table_row {
    border-top: 1px solid var(--color-border-100);
}

.schedule_table_row time,
.schedule_table_row span {
    color: var(--color-text-muted);
    font-size: var(--font-sm);
    line-height: var(--line-height);
    white-space: nowrap;
}

.schedule_table_head span:first-child,
.schedule_table_row time {
    text-align: left;
}

.schedule_table_head span:nth-child(2),
.schedule_table_row span:nth-child(2) {
    text-align: center;
}

.schedule_table_head span:last-child,
.schedule_table_row span:last-child {
    text-align: right;
}

.schedule_table:not(.is_open) .schedule_table_row.is_extra {
    display: none;
}

.schedule_table_total {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    align-items: center;

    height: 6rem;
    padding: 0 2rem;

    background: var(--color-bg-soft);
    border-top: 1px solid var(--color-border-100, #e5e7eb);
}

.schedule_table_total strong {
    color: var(--color-primary, #3478df);
    font-size: var(--font-ms);
    text-align: right;
    white-space: nowrap;
}

.schedule_table_total strong:first-child {
    color: var(--color-text, #111);
    text-align: left;
}

.schedule_table_total strong:nth-child(2) {
    text-align: center;
    color: var(--color-text);
}

.schedule_more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;

    width: 100%;
    height: 6rem;
    padding: 0 2rem;

    color: var(--color-text);
    font-size: var(--font-sm);
    font-weight: var(--bold);

    background: var(--color-bg);
    border: 0;
    border-top: 1px solid var(--color-border-100);

    cursor: pointer;
}

.schedule_more_text {
    display: inline;

    width: auto;
    height: auto;

    color: inherit;
    background: transparent;

    mask: none;
    -webkit-mask: none;
}

.schedule_more_icon {
    flex: 0 0 auto;

    width: 2.5rem;
    height: 2.5rem;

    color: var(--color-text-sub);
    background-color: currentColor;

    mask: url("../../images/icon/arrow_down.svg") center / 2rem 2rem no-repeat;
    -webkit-mask: url("../../images/icon/arrow_down.svg") center / 2rem 2rem no-repeat;

    transition: transform 0.2s ease;
}

.schedule_table.is_open .schedule_more_icon {
    transform: rotate(180deg);
}

.contract_document p {
    color: var(--color-text-muted);
    font-size: var(--font-sm);
    line-height: var(--line-height);
}

/* =========================
   Contract details
========================= */

.contract_detail {
    overflow: hidden;

    background: var(--color-bg);
    border: 1px solid var(--color-border-100);
    border-radius: 1.5rem;
}

.contract_detail .baby_card {
    border-radius: 1rem;
}

.contract_detail>summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;

    min-height: 6rem;

    cursor: pointer;
    list-style: none;
}

.contract_detail>summary {
    padding: 1.5rem 2rem;
}

.contract_detail summary::-webkit-details-marker {
    display: none;
}

.contract_detail summary strong {
    font-size: var(--font-sm);
    font-weight: var(--bold);
}

.contract_detail[open]>summary .baby_card_arrow {
    transform: rotate(180deg);
}

.contract_detail_content {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    padding: 0 2rem 2rem;
}

.contract_info_list {
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;
}

/* Read-only baby information */

.contract_detail_content .baby_card>dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;

    padding: 0 1.5rem 1.5rem;
}

.contract_detail_content .baby_card>dl>div {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
}

/* 계약 확인용 신생아 정보 */

.contract_detail_content .baby_card>dl {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem 2.4rem;
    padding: 0 2rem 2rem;
}

.contract_detail_content .baby_card>dl>div {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contract_detail_content .baby_card dt {
    font-size: var(--font-sm);
    font-weight: var(--bold);
    white-space: nowrap;
    width: auto;
}

.contract_detail_content .baby_card dd {
    min-width: 0;

    color: var(--color-text-muted);
    font-size: var(--font-sm);
    line-height: var(--line-height);
}

.reservation_complete_page .baby_list_box .baby_card > dl {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 2rem 2rem;
}

.reservation_complete_page .baby_list_box .baby_card > dl > div {
    display: grid;
    grid-template-columns: 12rem minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
}

.reservation_complete_page .baby_list_box .baby_card dt {
    font-size: var(--font-sm);
    font-weight: var(--bold);
    line-height: var(--line-height);
    white-space: nowrap;
}

.reservation_complete_page .baby_list_box .baby_card dd {
    min-width: 0;
    margin: 0;

    color: var(--color-text-muted);
    font-size: var(--font-sm);
    line-height: var(--line-height);
    word-break: keep-all;
}

/* =========================
   Manager
========================= */

.manager_card {
    display: flex;
    align-items: flex-start;
    gap: 3rem;

    padding: 2rem;

    background: var(--color-bg);
    border: 1px solid var(--color-border-100);
    border-radius: 1.5rem;
}

.manager_card>img {
    flex: 0 0 auto;

    width: 7rem;
    height: 8rem;

    object-fit: cover;
    border-radius: 1rem;
}

.manager_content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.5rem;

    min-width: 0;
}

.manager_content>strong {
    font-size: var(--font-md);
    font-weight: var(--bold);
}

.manager_content dl {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.manager_content dl>div {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 0.5rem;
}

.manager_content dt {
    font-size: var(--font-sm);
    font-weight: var(--bold);
}

.manager_content dd {
    color: var(--color-text);
    font-size: var(--font-ms);
    line-height: var(--line-height);
}




.contract_page {
    padding: 0 2rem 4rem;
}

.contract_header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 7rem;
}

.contract_header>strong {
    font-size: var(--font-md);
    font-weight: var(--bold);
}

.contract_close {
    position: absolute;
    right: -.75rem;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: 0;
}

.contract_close::before,
.contract_close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.5rem;
    height: 2px;
    background: var(--color-text-sub);
}

.contract_close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.contract_close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.contract_form,
.contract_step {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contract_progress {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    color: var(--color-text-sub);
    font-size: var(--font-xs);
}

.contract_progress_bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .5rem;
}

.contract_progress_bar i {
    height: .375rem;
    background: var(--color-border-100);
    border-radius: 1rem;
}

.contract_progress_bar i.is_active {
    background: var(--color-primary);
}

.contract_progress_name {
    white-space: nowrap;
}

.contract_step[hidden] {
    display: none !important;
}

.contract_step[hidden] .bottom_actions {
    display: none !important;
    pointer-events: none !important;
}

.contract_title {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.contract_title h1 {
    font-size: var(--font-xl);
    font-weight: var(--bold);
    line-height: 1.35;
}

.contract_title p,
.contract_legal_notice {
    color: var(--color-text-muted);
    font-size: var(--font-sm);
    line-height: 1.6;
}

.contract_terms h3 {
    margin-top: 2rem;
    font-size: var(--font-sm);
    color: var(--color-text);
    font-weight: var(--bold);
}

.contract_terms h4 {
    margin-top: 1.5rem;
    color: var(--color-text);
    font-weight: var(--bold);
}

.signature_stamp {
    min-height: 12rem;
    color: #df6272;
}

.signature_pad {
    position: relative;
    padding: 0;
    overflow: hidden;
    cursor: crosshair;
    touch-action: none;
}

.signature_pad canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.signature_pad .sign_hint {
    position: relative;
    z-index: 0;
    pointer-events: none;
}

.signature_pad.is_signed .sign_hint,
.signature_pad.has-sign .sign_hint {
    display: none;
}

.signature_pad .sign_clear {
    position: absolute;
    right: 0.8rem;
    top: 0.8rem;
    z-index: 2;
    padding: 0.4rem 0.8rem;
    color: var(--color-text);
    font-size: var(--font-xs);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border-100);
    border-radius: 0.6rem;
}

.signature_stamp img {
    max-width: 12rem;
    max-height: 12rem;
    object-fit: contain;
}

.contract_toast {
    position: fixed;
    left: 50%;
    bottom: 4rem;
    z-index: 10050;
    min-width: 22rem;
    max-width: calc(100vw - 4rem);
    padding: 1.2rem 1.8rem;
    border-radius: 0.8rem;
    background: rgba(33, 37, 41, 0.92);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(1.2rem);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.contract_toast.is_show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.contract_all_agree {
    width: 100%;
    min-height: 6.5rem;
    padding: 2rem;
    color: var(--color-text);
    font-weight: var(--bold);
    border: 1px solid var(--color-text-sub);
    border-radius: 1rem;
}

.contract_all_agree:has(.chk_inp:checked) {
    border-color: var(--color-primary-dark);
}

.consent_heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.consent_heading em {
    font-style: normal;
}

.consent_heading strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.consent_card summary small {
    margin-left: auto;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.consent_body h3,
.guide_body h3 {
    margin-top: 1.5rem;
    color: var(--color-text);
    font-weight: var(--bold);
    font-size: var(--font-sm);
}


.consent_body h3:first-child,
.guide_body h3:first-child {
    margin-top: 0;
}

.consent_body ul,
.guide_body ul,
.schedule_notes ul {
    padding-left: 2rem;
    list-style: disc;
    margin-left: 0.5rem;
}

.consent_body b {
    display: block;
    margin-top: 1.5rem;
    color: var(--color-text);
}

.consent_question {
    margin: 2rem 0 0;
    padding: 0;
    border: 0;
}

.consent_question legend {
    margin-bottom: 1rem;
    color: var(--color-text);
    font-weight: var(--bold);
}

.consent_question .radio_btn_lbl {
    height: 6rem;
    justify-content: flex-start;
}

.consent_question .radio_btn_lbl:has(.radio_inp:checked) {
    border-color: var(--color-primary-dark);
}

.consent_notice {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: var(--color-text-muted);
    font-size: var(--font-sm);
    line-height: 1.7;
}

.consent_notice h2 {
    color: var(--color-text);
    font-weight: var(--bold);
    font-size: var(--font-md);
}

.guide_list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.schedule_notice {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 2rem;
    background: var(--color-bg-blue);
    border-radius: 1rem;
}

.schedule_notice strong {
    font-size: var(--font-md);
}

.schedule_notice p {
    color: var(--color-text-muted);
    line-height: 1.6;
}

.standard_schedule {
    display: flex;
    flex-direction: column;
}

.standard_schedule li {
    position: relative;
    display: grid;
    grid-template-columns: 8rem minmax(0, 1fr);

}

.standard_schedule li::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 8rem;
    border-left: 1px solid var(--color-border-100);
}

.standard_schedule .time,
.standard_schedule li>div {
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border-100);
}

.standard_schedule .time {
    color: var(--color-primary-dark);
    font-size: var(--font-sm);
    font-weight: var(--bold);
    line-height: 1.6;
}

.standard_schedule strong {
    display: block;
    font-size: var(--font-sm);
    line-height: 1.5;
}

.standard_schedule p {
    margin-top: .5rem;
    color: var(--color-text-muted);
    font-size: var(--font-sm);
    line-height: 1.7;
}

.schedule_notes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule_notes h2 {
    font-size: var(--font-md);
    font-weight: var(--bold);
}

.schedule_notes ul {
    color: var(--color-text-muted);
    font-size: var(--font-md);
    line-height: 1.7;
}


.footer_page {
    padding: 0 3rem;
}

.footer_page .accordion_content {
    padding: 0;
}


/* =========================
   Privacy document
========================= */

.document_page {
    min-height: 100dvh;
    padding: 0rem 2rem;

    background: var(--color-bg);
}

/* 문서 상단 */

.document_intro {
    padding: 1rem 0 2.5rem;

    border-bottom: 1px solid var(--color-border-100);
}

.document_title {
    margin: 0;

    color: var(--color-text);
    font-size: var(--font-lg);
    font-weight: var(--bold);
    line-height: 1.4;
}

.document_description {
    margin: 1rem 0 0;

    color: var(--color-text-muted);
    font-size: var(--font-sm);
    line-height: 1.6;
    word-break: keep-all;
}

.document_date {
    display: block;

    margin-top: 1.5rem;

    color: var(--color-text-muted);
    font-size: 1.5rem;
}

/* 문서 목록 */

.document_list {
    margin-top: 1rem;
}

/* 문서 조항 */

.document_section {
    padding: 3rem 0;
}

.document_section+.document_section {
    border-top: 1px solid var(--color-border-100);
}

.document_section_head {
    margin-bottom: 2rem;
}

.document_section_title {
    margin: 0;

    color: var(--color-text);
    font-size: var(--font-md);
    font-weight: var(--bold);
    line-height: 1.5;
    word-break: keep-all;
}

.document_section_content {
    color: var(--color-text-sub);
    font-size: var(--font-sm);
    line-height: 1.75;
    word-break: keep-all;
}

/* 내부 항목 */

.document_article+.document_article {
    margin-top: 2.5rem;
}

.document_article h3 {
    margin: 0 0 1rem;

    color: var(--color-text);
    font-size: var(--font-sm);
    font-weight: var(--bold);
    line-height: 1.5;
}

.document_section_content p {
    margin: 0;
}

.document_section_content p+p {
    margin-top: 1.5rem;
}

/* 목록 */

.document_section_content ul {
    display: grid;
    gap: 0.75rem;

    margin: 0;
    padding-left: 2rem;

    list-style: disc;
}

.document_section_content li {
    padding-left: 0.25rem;
}

/* 강조 문구 */

.document_emphasis {
    padding: 1.5rem;

    color: var(--color-text);
    background: var(--color-bg-soft);
    border-radius: 1rem;

    font-weight: var(--medium);
}

.document_notice {
    color: var(--color-text-muted);
}

/* 정보 목록 */

.document_info {
    margin: 0;

    overflow: hidden;

    background: var(--color-bg-soft);
    border-radius: 1rem;
}

.document_info>div {
    display: grid;
    grid-template-columns: 9rem 1fr;
    gap: 1rem;

    padding: 1.25rem 1.5rem;
}

.document_info>div+div {
    border-top: 1px solid var(--color-border-100);
}

.document_info dt {
    color: var(--color-text);
    font-weight: var(--medium);
}

.document_info dd {
    min-width: 0;
    margin: 0;

    color: var(--color-text-sub);
    word-break: keep-all;
}

/* 문의 영역 */

.document_contact {
    margin-top: 1rem;
    padding: 2rem;

    background: var(--color-bg-soft);
    border-radius: 1.5rem;
}

.document_contact h2 {
    margin: 0;

    color: var(--color-text);
    font-size: var(--font-md);
    font-weight: var(--bold);
}

.document_contact>p {
    margin: 1rem 0 0;

    color: var(--color-text-muted);
    font-size: var(--font-sm);
    line-height: 1.6;
    word-break: keep-all;
}

.document_contact_list {
    margin: 2rem 0 0;
}

.document_contact_list>div {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 1rem;

    padding: 1rem 0;

    font-size: var(--font-sm);
}

.document_contact_list>div+div {
    border-top: 1px solid var(--color-border-100);
}

.document_contact_list dt {
    color: var(--color-text);
    font-weight: var(--medium);
}

.document_contact_list dd {
    min-width: 0;
    margin: 0;

    color: var(--color-text-sub);
    word-break: break-all;
}


/* =========================
   Terms document
========================= */

.terms_document {
    padding-bottom: 3rem;

    color: var(--color-text-sub);
    font-size: var(--font-sm);
    line-height: 1.75;
    word-break: keep-all;
}

.terms_document>p:first-child {
    padding: 2.5rem 0;

    border-bottom: 1px solid var(--color-border-100);
}

.terms_section {
    padding: 3rem 0;
}

.terms_section+.terms_section {
    border-top: 1px solid var(--color-border-100);
}

.terms_section h2 {
    margin: 0 0 1.5rem;

    color: var(--color-text);
    font-size: var(--font-md);
    font-weight: var(--bold);
    line-height: 1.5;
}

.terms_section p {
    margin: 0;
}

.terms_section p+p {
    margin-top: 1.25rem;
}

.terms_section ol {
    display: grid;
    gap: 1rem;

    margin: 1.5rem 0;
    padding-left: 2.25rem;

    list-style: decimal;
}

.terms_section ul {
    display: grid;
    gap: 0.75rem;

    margin-top: 1rem;
    padding-left: 2rem;

    list-style: disc;
}

.terms_section li {
    padding-left: 0.25rem;
}