/* New Premium Reservation Module */

.booking-module {
    max-width: 1000px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Progress Bar */
.booking-progress {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 2;
    transition: 0.3s;
    opacity: 0.3;
}

.progress-step.active {
    opacity: 1;
}

.progress-step span {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.4s;
}

.progress-step.active span {
    background: var(--color-gold);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.progress-step label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
}

.progress-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: -15px 10px 0;
}

/* Slider */
.booking-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: height;
}

.booking-slider {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.85, 0, 0.15, 1);
    width: 100%;
}

.slide {
    min-width: 100%;
    width: 100%;
    padding: 30px 40px;
    box-sizing: border-box;
    transition: opacity 0.5s ease;
    visibility: hidden;
}

.slide.active,
.booking-slider.moving .slide {
    visibility: visible;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: 0.2s;
}

.slide.active .slide-content {
    transform: scale(1);
    opacity: 1;
}

.slide-title {
    text-align: center;
    margin-bottom: 40px;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.slide-title i {
    font-size: 1.5rem;
    opacity: 0.8;
}

/* Step 1: Guest Grid */
.guest-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 500px;
    margin: 0 auto 40px;
}

.guest-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    height: 70px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.guest-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.guest-option.active {
    background: var(--color-gold);
    color: #000;
    border-color: var(--color-gold);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Step 2: DateTime Grid */
.datetime-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
}

.calendar-panel {
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 25px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.cal-nav {
    background: none;
    border: none;
    color: var(--color-gold);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 10px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 15px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
}

.day.empty {
    cursor: default;
}

.day.disabled {
    opacity: 0.1;
    cursor: not-allowed;
}

.day.today {
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
}

.day:hover:not(.disabled):not(.empty) {
    background: rgba(255, 255, 255, 0.1);
}

.day.selected {
    background: var(--color-gold);
    color: #000;
    font-weight: 700;
}

.time-panel {
    display: flex;
    flex-direction: column;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    overflow-y: auto;
    max-height: 350px;
    padding-right: 10px;
}

/* Scrollbar and custom styling */
.time-grid::-webkit-scrollbar {
    width: 4px;
}

.time-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.time-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.3s;
}

.time-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.time-btn.active {
    background: var(--color-gold);
    color: #000;
    border-color: var(--color-gold);
}

/* Step 3: Contact Step */
.contact-step-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.premium-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.premium-form .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.premium-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.premium-form input,
.premium-form textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 15px;
    color: #fff;
    font-size: 1rem;
    transition: 0.3s;
}

.premium-form input:focus {
    border-color: var(--color-gold);
    outline: none;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.civility-selector {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.2);
    padding: 5px;
    border-radius: 15px;
    width: fit-content;
}

.civility-selector input {
    display: none;
}

.civility-selector label {
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
    margin: 0;
    font-size: 0.9rem;
}

.civility-selector input:checked+label {
    background: var(--color-gold);
    color: #000;
}

.booking-summary-panel {
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-radius: 30px;
    height: fit-content;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.summary-line {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    font-size: 1.1rem;
}

/* Actions */
.slide-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn-next,
.btn-submit {
    padding: 16px 45px;
    background: var(--color-gold);
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    transition: 0.4s;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
}

.btn-prev {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-next.disabled {
    opacity: 0.3;
    pointer-events: none;
    filter: grayscale(1);
}

@media (max-width: 768px) {

    .datetime-grid,
    .contact-step-layout {
        grid-template-columns: 1fr;
    }

    .booking-progress {
        padding: 20px 10px;
    }

    .progress-line {
        width: 30px;
    }

    .booking-slider-container {
        padding: 0;
    }

    .guest-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Additional Premium Icons & Micro-animations */
.gold-icon {
    color: var(--color-gold);
    width: 25px;
    text-align: center;
    font-size: 1.2rem;
}

.btn-next i,
.btn-submit i {
    margin-left: 10px;
    transition: transform 0.3s;
}

.btn-next:hover i {
    transform: translateX(5px);
}

.btn-prev i {
    margin-right: 10px;
}

/* Fix for Summary Panel on Mobile */
@media (max-width: 900px) {
    .booking-summary-panel {
        margin-top: 30px;
        width: 100%;
        box-sizing: border-box;
    }

    .contact-step-layout {
        display: flex;
        flex-direction: column;
    }

    .slide-title {
        font-size: 1.6rem;
    }
}

/* Premium Reveal for Slide Elements */
.slide.active .guest-option {
    animation: slideUpFade 0.5s ease backwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered Delay for grid items */
.guest-option:nth-child(1) {
    animation-delay: 0.1s;
}

.guest-option:nth-child(2) {
    animation-delay: 0.15s;
}

.guest-option:nth-child(3) {
    animation-delay: 0.2s;
}

.guest-option:nth-child(4) {
    animation-delay: 0.25s;
}

.guest-option:nth-child(5) {
    animation-delay: 0.3s;
}

.guest-option:nth-child(6) {
    animation-delay: 0.35s;
}

.guest-option:nth-child(7) {
    animation-delay: 0.4s;
}

.guest-option:nth-child(8) {
    animation-delay: 0.45s;
}

/* Ultra-mobile Calendar tweaks */
@media (max-width: 400px) {
    .calendar-days {
        gap: 4px;
    }

    .day {
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .time-grid {
        grid-template-columns: 1fr;
    }

    .slide {
        padding: 0 15px;
    }

    .booking-progress {
        padding: 20px 5px;
    }

    .progress-step span {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

/* Premium Mobile Improvements for Reservation */
@media (max-width: 768px) {
    .booking-module {
        margin: 20px 5%;
        border-radius: 25px;
        backdrop-filter: blur(35px);
        /* Stronger blur on mobile */
    }

    .slide {
        padding: 0 20px;
    }

    /* Guest Grid Mobile */
    .guest-grid {
        grid-template-columns: repeat(4, 1fr);
        /* Keep 4 but smaller */
        gap: 10px;
    }

    .guest-option {
        height: 60px;
        font-size: 1.1rem;
        border-radius: 15px;
    }

    /* Steps Mobile - more compact */
    .booking-progress {
        padding: 20px 10px;
    }

    .progress-step span {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .progress-step label {
        display: none;
        /* Hide labels on small screens to save space */
    }

    .progress-line {
        width: 40px;
        margin: 0 10px;
    }

    /* Calendar Mobile */
    .datetime-grid {
        gap: 20px;
    }

    .calendar-panel {
        padding: 15px;
    }

    .day {
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .time-grid {
        max-height: 200px;
        /* Reduced height on mobile */
    }

    /* Form Mobile */
    .premium-form .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .civility-selector {
        width: 100%;
        justify-content: space-between;
    }

    .civility-selector label {
        padding: 10px;
        flex: 1;
        text-align: center;
    }
}