@charset "UTF-8";


.calendar {
    width: 100%;
    flex-grow: 1;

    padding: 48px 40px;
    font-family: Pretendard;
    box-sizing: border-box;

    border-radius: 12px;
    border: 1px solid #B9B9B9;

    display: flex;
    flex-direction: column;
    gap: 20px;
}


.calendar_header {
    display: block;
}


.calendar_label_col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calendar_label_col_title {
    color: #171717;
    font-family: Pretendard;
    font-size: 22px;
    font-style: normal;
    font-weight: 300;
    line-height: 130%;
    /* 28.6px */
    letter-spacing: -0.44px;
}

.calendar_nav {
    padding: 0 20px;
    display: flex;
    gap: 20px;
    flex-grow: 0;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
}

.calendar_nav button.nav-btn {
    display: flex;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 999px;
    background: #fff;
}

.calendar_nav button.nav-btn.go-prev {
    transform: rotate(180deg);
}

.calendar .ym-wrapper {
    color: #171717;
    font-size: 24px;
    font-weight: 600;
    line-height: 150%;
    /* 36px */
    letter-spacing: -0.72px;
}

.calendar_main {
    width: 100%;
    flex-grow: 1;
    /* border-spacing: 0; */
    border-collapse: collapse;
    table-layout: fixed;
    /* padding: 32px 0; */
}



.calendar .days {
    display: flex;
    border-bottom: 0px;
}

.calendar .day {
    width: calc(100% / 7);
    text-align: center;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    color: #737373;
}

.calendar .days .day {
    color: #171717;
    font-size: 14px;
    font-weight: 700;
    line-height: 125%;
}

.calendar .dates {
    display: flex;
    flex-flow: row wrap;
    gap: 0;
    align-content: flex-start;
    width: 100%;
}

.calendar .date {
    position: relative;
    flex: 0 0 calc(100% / 7);
    width: calc(100% / 7);
    max-width: calc(100% / 7);
    height: 50px;
    min-height: 48px;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;

    font-size: clamp(12px, 2.5vw, 16px);
    text-align: center;
    border-right: 1px solid #b4b4b4;
    border-bottom: 1px solid #b4b4b4;

    font-weight: 400;
    color: #262626;
    font-size: 14px;

    line-height: 150%;
}


.calendar .date.selected::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(180deg, #8E5B48 31.41%, #1F0D06 110.9%);
    border-radius: 50%;
    z-index: -1;
}

.calendar .date.selected {
    color: #fff;
    z-index: 1;
}


.calendar .date:nth-child(7n + 1) {
    border-left: none;
    color: #C00;
}

.calendar .date:nth-child(7n + 1).otherMonth {
    color: rgba(204, 0, 0, 0.4)
}

.calendar .date:nth-child(7n) {
    border-right: none;
    color: #007bff;
}

.calendar .date:nth-child(7n).otherMonth {
    color: rgba(0, 123, 255, 0.4);

}

.calendar .date:nth-child(-n + 7) {
    border-top: 1px solid #b4b4b4;
}

.calendar .day:nth-child(7n + 1) {
    color: #C00;
}

.calendar .day:nth-child(7n + 1).otherMonth {
    color: rgba(204, 0, 0, 0.4)
}

.calendar .day:nth-child(7n) {
    color: #007bff;
}

.calendar .otherMonth {
    pointer-events: none;
    color: rgba(23, 23, 23, 0.4);
}

.calendar .date.selected {
    color: #fff;
}

.calendar .date.selected.otherMonth::after {
    content: none;
}

.calendar .rs_ok {
    background: var(--focus, #dfbdf4);
}

/* 공휴일 */
.calendar .holiday {
    color: #C00;
    background: #fff;
}

/* 오늘 */
.calendar .today {
    /* color: #fff;
    position: relative; */
}

.calendar .today::after {
    content: '';
    display: block;
    position: absolute;
    width: min(24px, 80%);
    height: min(24px, 80%);
    border-radius: 666px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    background-color: #e5e5e5;
}

.calendar_caution {
    padding-top: 10px;
    position: relative;
}

.calendar_caution .info {
    display: flex;
    gap: 16px;
}

.calendar_caution .info p {
    color: var(--000000-, #000);
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: -0.045px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.calendar_caution .info p:before {
    position: relative;
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background: #cde4ff;
}

.calendar_caution .info p:nth-child(2):before {
    background: #ff4747;
}

.calendar_caution>p {
    color: var(--666666-, #666);
    text-align: center;
    font-family: Pretendard;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    /* 150% */
    letter-spacing: -0.04px;
    position: absolute;
    right: 0;
    top: 12px;
}

.calendar_time {
    display: flex;
    box-sizing: border-box;
    gap: 10px;
    align-items: stretch;
}


.form .input_group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none;
    background: #fff url(/img/sub/form_arrow.svg) no-repeat 95% 50% !important;
    color: #404040;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.32px;
}

.calendar_time select {
    position: relative;
    width: 50%;
    border-radius: 6px;
    border: 1px solid #a3a3a3;
    color: #a3a3a3;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    padding: 10px 23px;
    letter-spacing: -0.045px;
    background: #fff url(/img/sub/form_arrow.svg) no-repeat 95% 50%;
}

.calendar_time_container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calendar_time_wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 325px;
}

.calendar_time select option {
    line-height: 1.3;
    padding: 10px 23px;
}

.form_wrap_inner {
    /* flex: 1 1 0; */
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.form_wrap {
    flex: 1 1 0;
    min-width: 0;
}

.calendar_wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reservation_form {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
}

.calendar_wrap,
.form_wrap {
    flex: 1;
    min-width: 0;
}


.required {
    color: #C00;
}

.radi_wrap {
    display: flex;
    gap: 10px;
}


.radi_item input[type="radio"],
.time_item input[type="radio"] {
    display: none;
}

.user_info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.calendar_agree_col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agree_text_title {
    color: #525252;
    font-size: 13px;
    font-weight: 400;
    line-height: 120%;
}

.agree_text_item {
    color: #525252;
    font-size: 14px;
    font-weight: 400;
    line-height: 120%;
}


.agree_text_item_content {
    display: block;
    padding-top: 8px;

}

.agree_text_item_content .agree_text_indent {
    display: block;
    padding-left: 1em;
}



.reservation .reservation_form {
    display: flex;
    justify-content: center;
    gap: 40px;
}


.reservation_form .head {
    color: #000;
    font-size: 30px;
    font-weight: 600;
    line-height: 160%;
    letter-spacing: -0.6px;
}

.reservation_form .reserve_btn {
    font-family: Pretendard;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 30px;
    color: #767676;
    font-size: 16px;
    font-weight: 300;
    line-height: 130%;
    letter-spacing: -0.32px;
    border-radius: 8px;
    width: fit-content;
    border: 1px solid #E4E4E4;
    width: auto;
    min-width: 0;
    max-width: fit-content;
}


.reserve_btn_item {
    display: flex;
    width: auto;
    padding: 10px 30px;
    border: 1px solid #E4E4E4;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;

    color: #767676;
    text-align: center;
    font-size: 16px;
    font-weight: 300;
    line-height: 130%;
    letter-spacing: -0.32px;

    transition: all 0.2s;

}

input[name="reserve_time"]:disabled+.reserve_btn_item {
    background-color: #f2f2f2;
    color: #ccc;
    border-color: #eee;
}

input[name="reserve_time"]:checked+.reserve_btn_item {
    background-color: #8E5B48;
    color: #fff;
    border-color: #8E5B48;
}


.reserve_btn_item.active {
    background: #8E5B48;
    color: #fff;
    border-color: #8E5B48;
}

.reserve_btn_item:hover {
    border-color: #8E5B48;
    color: #8E5B48;
}


.reservation_form .reserve_btn.active,
.reservation input[type="radio"]:checked+.reserve_btn_item {
    background: #8E5B48;
    border: 1px solid #8E5B48;
    color: #FFF;
    font-weight: 500;
}

.radi_wrap .reserve_btn_item {
    width: 136px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.reservation .con_wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reservation .radi_wrap {
    display: flex;
}

.reservation .input_group_wrap {
    display: flex;
    width: 100%;
    gap: 12px;
}

.reservation .input_group {
    width: 100%;
}

.reserve_input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #E1E1E1;
    background: #FFF;
    padding: 10px 16px;
    color: #262626;
    font-family: Pretendard;
    font-size: 16px;
    font-weight: 400;
    line-height: 120%;
}

.user_info .memo {
    font-family: Pretendard;
    height: 150px;
    overflow-y: auto;
    width: 100%;
    border: none;
    border-bottom: 1px solid #E1E1E1;
    background: #FFF;
    padding: 10px 16px;
    color: #262626;
    font-size: 16px;
    font-weight: 400;
    line-height: 120%;
    resize: none;
}


.reservation .btn_submit {
    border: none;
    width: 136px;
    padding: 10px 16px;
    border-radius: 8px;
    text-align: center;
    color: #FFF;
    font-size: 16px;
    font-weight: 600;
    background-color: #8E5B48;
    line-height: 120%;
    transition: all ease 0.3s;

}

.reservation .btn_submit:hover {
    opacity: 0.8;
}

.reservation .btn_submit:disabled {
    background: #a3a3a3;
    border-color: #a3a3a3;
    color: #fff;
}


#reserve_date {
    width: 12ch;
    min-width: 12ch;
    padding: 10px 15px;
    text-align: center;
    box-sizing: content-box;
    cursor: pointer;
    line-height: 1;
}


@media screen and (max-width: 1024px) {
    .calendar .date {
        height: 48px;
        min-height: 48px;
    }

    .reservation .reservation_form {
        flex-direction: column;
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .calendar {
        padding: 20px;
        gap: 12px;
    }

    .calendar .ym-wrapper span {
        font-size: 18px;
    }

    .calendar_nav {
        padding: 0 10px;
        gap: 8px;
    }

    .calendar .day {
        padding: 8px 0;
        font-size: 14px;
    }


    .calendar .date {
        height: 44px;
        min-height: 44px;
        font-size: 14px;
    }

    .calendar .today::after {
        width: min(30px, 80%);
        height: min(30px, 80%);
    }

    .calendar .date.selected::after {
        width: min(30px, 80%);
        height: min(30px, 80%);
    }

    .calendar_time {
        flex-direction: column;
    }

    .calendar_time .input_time,
    .calendar_time select {
        width: 100%;
        padding: 15px 23px;
    }

    .calendar_time select {
        font-size: 16px;
    }

    .calendar_clinic {
        display: block;
        padding: 14px 20px;
    }

    .calendar_clinic .time_info {
        border: none;
    }

    .calendar_clinic>p {
        min-width: unset;
        font-size: 16px;
        line-height: 160%;
        letter-spacing: -0.32px;
        padding-bottom: 6px;
    }

    .calendar_clinic .time_info {
        padding: 0;
        gap: 6px;
    }

    .calendar_clinic .time_info .sunday {
        padding: 0;
    }

    .form .input_group select {
        line-height: 1.2;
        letter-spacing: -0.28px;
    }

    .form_wrap_inner {
        gap: 12px;
    }

    .calendar_label_col_title {
        font-size: 18px;
    }

    .calendar_label_col {
        gap: 8px;
    }

    .reservation .con_wrap {
        gap: 12px
    }

    .reserve_btn_item {
        padding: 10px 18.5px;
    }

    .calendar_time_wrap {
        gap: 6px;
    }

    #reserve_time {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    #reserve_time .calendar_time_wrap {
        display: contents;
    }

    .radi_wrap {
        width: 100%;
    }

    .radi_wrap .radi_item {
        flex: 1;
        min-width: 0;
    }

    .radi_wrap .reserve_btn_item {
        width: 100%;
        box-sizing: border-box;
    }

    .reservation .input_group_wrap {
        gap: 8px;
    }

    .reservation .btn_submit {
        width: 100%;
    }

    .calendar_nav button.nav-btn {
        width: 32px;
        height: 32px;
    }

    .reservation_form .head {
        font-size: 18px;
        font-weight: 600;
    }

    .reservation .calendar_wrap {
        gap: 12px;
    }
}

.ableResDate {
    cursor: pointer;
    color: #262626;
}

.unableResDate {
    color: #a3a3a3 !important;
}

.agree label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.agree input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #B9B9B9;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
}

.agree input[type="checkbox"]:checked {
    background: #8E5B48 url("../img/common/check.svg") center / 10px no-repeat;
    border-color: #8E5B48;
}