/* Ramadan Features Styling - Multi-Step Flow */

:root {
    --step-current: var(--main-color);
    --step-upcoming: rgba(255, 255, 255, 0.1);
}

/* Stepper UI */
.order-stepper {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
}

@media (max-width: 767px) {
    .order-stepper {
        gap: 20px;
        margin-bottom: 30px;
    }
}

.order-stepper::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--step-upcoming);
    z-index: 0;
}

.step-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #888;
    transition: all 0.3s ease;
}

.step-number {
    width: 30px;
    height: 30px;
    background: #1a1a1a;
    border: 1px solid var(--step-upcoming);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.step-item.active {
    color: var(--main-color);
}

.step-item.active .step-number {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #1a1a1a;
    box-shadow: 0 0 15px rgba(183, 151, 88, 0.3);
}

.step-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Step Container */
.booking-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.booking-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Bar Styles - Refined & Premium */
.menu-search-box {
    margin-bottom: 30px;
    position: relative;
    max-width: 550px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.menu-search-box input {
    width: 100%;
    background: #0a0a0a;
    border: 1px solid rgba(183, 151, 88, 0.2);
    padding: 15px 50px 15px 20px;
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

@media (max-width: 767px) {
    .menu-search-box input {
        padding: 12px 45px 12px 15px;
        font-size: 13px;
    }
}

.menu-search-box input:focus {
    border-color: var(--main-color);
    background: #0f0f0f;
    outline: none;
    box-shadow: 0 0 25px rgba(183, 151, 88, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.menu-search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--main-color);
    font-size: 16px;
    opacity: 0.8;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cat-tab {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    border-radius: 40px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .cat-tab {
        padding: 8px 14px;
        font-size: 11px;
    }
}

.cat-tab:hover {
    border-color: rgba(183, 151, 88, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.cat-tab.active {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #1a1a1a;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(183, 151, 88, 0.2);
}

/* Horizontal Menu Items */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--main-color) rgba(255, 255, 255, 0.05);
}

@media (min-width: 992px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Custom Scrollbar */
.menu-grid::-webkit-scrollbar {
    width: 4px;
}

.menu-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.menu-grid::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 10px;
}

.menu-item-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@media (max-width: 480px) {
    .menu-item-card {
        gap: 10px;
        padding: 8px;
    }
}

.menu-item-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(183, 151, 88, 0.4);
    transform: translateX(5px);
}

.item-img {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
    .item-img {
        width: 90px;
        height: 90px;
    }
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.menu-item-card:hover .item-img img {
    transform: scale(1.1);
}

.item-details {
    flex-grow: 1;
    min-width: 0;
    /* Important for text truncation/overflow */
}

.item-info h6 {
    color: #fff;
    margin-bottom: 3px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .item-info h6 {
        font-size: 16px;
    }
}

.item-info .item-price {
    color: var(--main-color);
    font-size: 13px;
    font-weight: 700;
}

.item-controls {
    display: flex;
    align-items: center;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #000;
    padding: 5px 10px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 480px) {
    .qty-control {
        gap: 5px;
        padding: 4px 8px;
    }
}

.qty-btn {
    width: 22px;
    height: 22px;
    background: var(--main-color);
    color: #1a1a1a;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
}

@media (min-width: 768px) {
    .qty-btn {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
}

.qty-value {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    min-width: 15px;
    text-align: center;
}

/* Order Summary Box */
.order-summary-footer {
    margin-top: 25px;
    padding: 15px 20px;
    background: linear-gradient(90deg, rgba(183, 151, 88, 0.1), rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(183, 151, 88, 0.2);
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.selected-count {
    color: #fff;
    font-size: 14px;
}

.selected-count span {
    color: var(--main-color);
    font-weight: 800;
    font-size: 16px;
}

/* Step Navigation Buttons */
.step-nav-btns {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}

.btn-back {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Reservation Form Details Styling */
.order-type-toggle,
.meal-type-selection {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.order-type-toggle input[type="radio"],
.meal-type-selection input[type="radio"] {
    display: none;
}

.order-type-toggle label,
.meal-type-selection label {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.order-type-toggle input[type="radio"]:checked+label,
.meal-type-selection input[type="radio"]:checked+label {
    background: var(--main-color);
    border-color: var(--main-color);
    color: #1a1a1a;
    font-weight: 700;
}

.field-label {
    display: block;
    color: var(--main-color);
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
}

/* ==========================================================================
   Ramadan Section & Frame Refinements - Premium Overrides
   ========================================================================== */

.reserve-section.style-two.reserve-page,
.reserve-section.splitscreen {
    background-color: #050505 !important;
}

/* Darken the overall backdrop layer for dedicated page */
.reserve-section.style-two.reserve-page .image-layer {
    opacity: 0.15 !important;
    filter: brightness(0.4) contrast(1.2);
}

/* High-End Ramadan Container - Shared for Page and Splitscreen */
.reserve-section.style-two .reserv-col .inner,
.reserve-section.splitscreen .reserv-col .inner {
    background: url(../images/resource/pattern-dark.png) repeat !important;
    background-color: #0b1a18 !important;
    /* Ramadan Deep Green */
    position: relative;
    padding: 40px 20px !important;
    border-radius: 15px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9);
    border: none !important;
    overflow: hidden;
    display: block !important;
    /* Force block to fill column */
    width: 100% !important;
}

@media (min-width: 768px) {

    .reserve-section.style-two .reserv-col .inner,
    .reserve-section.splitscreen .reserv-col .inner {
        padding: 60px 50px !important;
        border-radius: 20px;
    }
}

@media (min-width: 1200px) {

    .reserve-section.style-two .reserv-col .inner,
    .reserve-section.splitscreen .reserv-col .inner {
        padding: 80px 100px !important;
    }
}

/* Aligned Cyan Border */
.reserve-section.style-two .reserv-col .inner::before,
.reserve-section.splitscreen .reserv-col .inner::before {
    content: '';
    position: absolute;
    top: 5px !important;
}