﻿/* =========================================
                   Reservation Page
                ========================================== */

.reservation-page {
    overflow-x: hidden;
}

.reservation-header {
    max-width: 700px;
    margin: 0 auto;
}

.reservation-description {
    font-size: 15px;
    line-height: 2;
    color: #777;
}

.reservation-section {
    margin-top: 30px;
}

    .reservation-section:first-child {
        margin-top: 0;
    }

.reservation-card {
    width: 100%;
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,.05);
}

.section-header h4 {
    color: #dd5d73;
    font-weight: 700;
    line-height: 1.7;
}

/* =========================================
                   Branch
                ========================================== */

.branch-radio {
    display: none;
}

.branch-card {
    display: block;
    cursor: pointer;
    margin: 0;
    height: 100%;
}

.branch-card,
.branch-content {
    height: 100%;
}

.branch-content {
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 22px;
    transition: .25s;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.branch-card:hover .branch-content {
    border-color: #dd5d73;
}

.branch-radio:checked + .branch-content {
    border: 2px solid #dd5d73;
    background: #fff8fa;
}

.branch-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.7;
}

.branch-address {
    color: #777;
    font-size: 14px;
    line-height: 2;
    min-height: 45px;
    word-break: break-word;
}

.branch-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.branch-rate {
    color: #dd5d73;
    font-size: 14px;
    font-weight: 700;
}

    .branch-rate i {
        margin-left: 5px;
    }

/* =========================================
                   Time Slots
                ========================================== */

.time-group-title {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

    .time-group-title i {
        color: #ff4081;
        margin-left: 8px;
    }

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.time-slot {
    width: 100%;
    min-width: 0;
    min-height: 75px;
    padding: 10px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid #ececec;
    border-radius: 14px;
    background: #fff;
    color: #555;
    font-family: inherit;
    cursor: pointer;
    transition: all .25s ease;
}

.slot-time {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.slot-capacity {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 500;
    color: #888;
    line-height: 1.5;
}

.time-slot:hover {
    border-color: #ff4081;
    color: #ff4081;
    background: #fff8fa;
    transform: translateY(-2px);
}

    .time-slot:hover .slot-capacity {
        color: #dd5d73;
    }

.time-slot.active {
    background: #ff4081;
    border-color: #ff4081;
    color: #fff;
}

    .time-slot.active .slot-capacity {
        color: rgba(255, 255, 255, .9);
    }


/* Filled slot */

.time-slot.disabled,
.time-slot:disabled {
    background: #f7f7f7;
    border-color: #e5e5e5;
    color: #aaa;
    cursor: not-allowed;
    transform: none;
    opacity: 1;
}

    .time-slot.disabled:hover,
    .time-slot:disabled:hover {
        background: #f7f7f7;
        border-color: #e5e5e5;
        color: #aaa;
        transform: none;
    }

.slot-capacity-full {
    color: #dc3545;
    font-weight: 700;
}

.time-slot.disabled .slot-capacity-full,
.time-slot:disabled .slot-capacity-full {
    color: #dc3545;
}

/* =========================================
                   Calendar
                ========================================== */

.reservation-calendar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: flex-start;
    align-items: flex-start;
}

.calendar-card {
    flex: 0 1 380px;
    max-width: 380px;
    width: 100%;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 18px;
    overflow: hidden;
}

.calendar-header {
    background: #ff4081;
    color: #fff;
    padding: 18px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    text-align: center;
    padding: 18px 4px 10px;
    font-weight: 600;
    font-size: 13px;
    color: #999;
}

    .calendar-weekdays span {
        min-width: 0;
        white-space: nowrap;
    }

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    padding: 0 15px 20px;
}

.calendar-day {
    width: 100%;
    max-width: 42px;
    aspect-ratio: 1 / 1;
    min-width: 0;
    height: auto;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
    border: 2px solid transparent;
    padding: 0;
}

    .calendar-day.empty {
        visibility: hidden;
    }

    .calendar-day.available {
        background: #fff5fa;
        border-color: #ffd2e4;
        color: #ff4081;
    }

        .calendar-day.available:hover {
            transform: translateY(-2px);
            background: #ffe4f0;
        }

    .calendar-day.selected {
        background: #ff4081;
        color: #fff;
        border-color: #ff4081;
    }

    .calendar-day.disabled {
        background: #f7f7f7;
        color: #c5c5c5;
        cursor: not-allowed;
    }

    .calendar-day.today {
        border-color: #ff4081;
    }

/* =========================================
                   Summary
                ========================================== */

.summary {
    width: 100%;
}

    .summary .order-table {
        width: 100%;
    }

        .summary .order-table td {
            vertical-align: middle;
        }

#continueBtn {
    min-height: 48px;
}

/* =========================================
                   Large Tablet
                ========================================== */

@@media (max-width: 1199.98px) {

    .reservation-card {
        padding: 25px;
    }

    .reservation-calendar {
        gap: 20px;
    }

    .calendar-card {
        flex-basis: calc(50% - 10px);
        max-width: none;
    }

    .calendar-weekdays {
        font-size: 12px;
    }
}

/* =========================================
                   Tablet
                ========================================== */

@@media (max-width: 991.98px) {

    .reservation-page .page-content {
        overflow-x: hidden;
    }

    .reservation-section {
        margin-top: 22px;
    }

    .reservation-card {
        padding: 22px;
        border-radius: 16px;
    }
    /* Summary دیگر در تبلت و موبایل Sticky نباشد */
    .sticky-sidebar-wrapper {
        margin-top: 25px;
    }

        .sticky-sidebar-wrapper .sticky-sidebar {
            position: static !important;
            top: auto !important;
            transform: none !important;
            width: 100% !important;
        }

    .summary {
        margin-bottom: 30px;
    }

    .calendar-card {
        flex: 0 0 100%;
        max-width: 500px;
    }

    .reservation-calendar {
        justify-content: center;
    }
}

/* =========================================
                   Mobile
                ========================================== */

@@media (max-width: 767.98px) {

    .reservation-page .page-header {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .reservation-page .page-title {
        font-size: 24px;
        line-height: 1.6 !important;
    }

    .reservation-page .page-desc {
        font-size: 13px;
        line-height: 2;
    }

    .breadcrumb-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

        .breadcrumb-nav .breadcrumb {
            flex-wrap: nowrap;
            white-space: nowrap;
            min-width: max-content;
        }

    .check-main {
        padding-left: 12px;
        padding-right: 12px;
    }

    .reservation-section {
        margin-top: 18px;
    }

    .reservation-card {
        padding: 18px 15px;
        border-radius: 14px;
        box-shadow: 0 5px 20px rgba(0,0,0,.045);
    }

    .section-header {
        width: 100%;
    }

        .section-header.d-flex {
            flex-direction: column;
            align-items: flex-start !important;
        }

            .section-header.d-flex > div {
                width: 100%;
            }

            .section-header.d-flex #availableDatesCount {
                margin-top: 12px;
            }

        .section-header h4 {
            font-size: 18px;
            margin-bottom: 5px;
        }

        .section-header small {
            font-size: 12px;
            line-height: 1.8;
        }
    /* Branch */

    .branch-content {
        padding: 18px 16px;
    }

    .branch-title {
        font-size: 16px;
    }

    .branch-address {
        min-height: auto;
        font-size: 13px;
    }
    /* Calendar */

    .reservation-calendar {
        display: block;
        width: 100%;
    }

    .calendar-card {
        width: 100%;
        max-width: 100%;
        margin-bottom: 18px;
        border-radius: 14px;
    }

        .calendar-card:last-child {
            margin-bottom: 0;
        }

    .calendar-header {
        padding: 15px 10px;
        font-size: 16px;
    }

    .calendar-weekdays {
        padding: 15px 3px 8px;
        font-size: 10px;
        gap: 2px;
    }

    .calendar-days {
        gap: 5px;
        padding: 0 8px 15px;
    }

    .calendar-day {
        max-width: 40px;
        border-radius: 10px;
        font-size: 13px;
    }
    /* Time slots */

    #slotsContainer {
        margin-left: -5px;
        margin-right: -5px;
    }

        #slotsContainer > [class*="col-"] {
            padding-left: 5px;
            padding-right: 5px;
        }

    .time-slot {
        min-height: 70px;
        padding: 8px 4px;
        border-radius: 11px;
    }

    .slot-time {
        font-size: 14px;
    }

    .slot-capacity {
        font-size: 10px;
    }
    /* Summary */

    .sticky-sidebar-wrapper {
        padding-left: 15px;
        padding-right: 15px;
        margin-top: 5px;
    }

    .summary {
        padding-top: 20px !important;
    }

        .summary .title {
            font-size: 19px;
        }

        .summary .order-table td {
            font-size: 13px;
        }

        .summary .alert {
            font-size: 12px !important;
        }

    #continueBtn {
        min-height: 48px;
        font-size: 14px;
    }
}

/* =========================================
                   Small Mobile
                ========================================== */

@@media (max-width: 479.98px) {

    .reservation-page .page-title {
        font-size: 21px;
    }

    .reservation-card {
        padding: 16px 12px;
    }

    .section-header h4 {
        font-size: 17px;
    }

    .calendar-weekdays {
        font-size: 9px;
    }

    .calendar-days {
        gap: 3px;
        padding-left: 5px;
        padding-right: 5px;
    }

    .calendar-day {
        max-width: 36px;
        font-size: 12px;
        border-width: 1px;
        border-radius: 9px;
    }

    .branch-content {
        padding: 15px;
    }
}

/* =========================================
                   Very Small Mobile
                ========================================== */

@@media (max-width: 359.98px) {

    .check-main {
        padding-left: 8px;
        padding-right: 8px;
    }

    .reservation-card {
        padding: 14px 8px;
    }

    .calendar-weekdays {
        font-size: 8px;
    }

    .calendar-days {
        gap: 2px;
        padding-left: 3px;
        padding-right: 3px;
    }

    .calendar-day {
        max-width: 34px;
        font-size: 11px;
    }
}

/* =========================================
               Consultation
            ========================================== */

.consult-social-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.bale-logo {
    filter: brightness(0) invert(1);
}

.consult-section {
    margin-bottom: 30px;
}

.consult-card {
    width: 100%;
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,.05);
}

.consult-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

    .consult-header i {
        color: #dd5d73;
        font-size: 22px;
        margin-left: 10px;
    }

    .consult-header h2 {
        margin: 0;
        color: #dd5d73;
        font-weight: 700;
    }

.consult-text {
    color: #666;
    font-size: 14px;
    line-height: 2;
    margin-bottom: 20px;
}

.consult-btn {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: all .2s ease;
}

    .consult-btn:hover {
        color: #fff !important;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0,0,0,.12);
    }

    .consult-btn i {
        font-size: 18px;
    }

.btn-whatsapp {
    background: #25d366;
}

.btn-instagram {
    background: #e1306c;
}

.btn-telegram {
    background: #229ed9;
}

.btn-rubika {
    background: #7259d9;
}

.btn-bale {
    background: #32a852;
}

.btn-eitaa {
    background: #e58b26;
}

.btn-phone {
    background: #dd5d73;
}

.consult-dropdown-custom {
    position: relative;
    width: 100%;
}

.consult-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 1000;
    display: none;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 7px;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
}

    .consult-dropdown-menu.show {
        display: block;
    }

    .consult-dropdown-menu a {
        display: block;
        width: 100%;
        padding: 10px 12px;
        border-radius: 8px;
        color: #555;
        font-size: 13px;
        text-align: right;
        text-decoration: none;
    }

        .consult-dropdown-menu a:hover {
            background: #fff5f8;
            color: #dd5d73;
        }


.consult-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.consult-social-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

/* =========================================
               User Discounts
            ========================================== */

.discount-card {
    width: 100%;
    background: #fff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,.05);
    margin-bottom: 30px;
}

.discount-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

    .discount-header i {
        color: #dd5d73;
        font-size: 22px;
        margin-left: 10px;
    }

    .discount-header h4 {
        margin: 0;
        color: #dd5d73;
        font-weight: 700;
    }

.discount-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .discount-item:last-child {
        border-bottom: 0;
    }

.discount-value {
    color: #dd5d73;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.discount-total {
    margin-top: 18px;
    padding: 17px 20px;
    border-radius: 12px;
    background: #f7fff9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.discount-total-value {
    color: #28a745;
    font-size: 22px;
    font-weight: 800;
}


/* =========================================
               Mobile
            ========================================== */

@@media (max-width: 767.98px) {

    .consult-card,
    .discount-card {
        padding: 18px 15px;
        border-radius: 14px;
    }

    .consult-header h4,
    .discount-header h4 {
        font-size: 18px;
    }

    .consult-text {
        font-size: 13px;
    }

    .consult-card .alert {
        font-size: 12px;
        line-height: 1.9;
    }

    .consult-btn {
        min-height: 48px;
        font-size: 12px;
        padding-left: 5px;
        padding-right: 5px;
    }

        .consult-btn i {
            font-size: 16px;
        }

    .discount-item {
        font-size: 13px;
    }

    .discount-value {
        font-size: 16px;
    }

    .discount-total-value {
        font-size: 19px;
    }
}
