/* Complete Booking Modal Styles */

/* Modal Base */
.booking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    font-family: 'Oswald', sans-serif;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.booking-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    background: linear-gradient(to bottom, #112541b0, rgba(0, 0, 0, 1));
    border-radius: 15px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #FFD700;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.close-modal:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: rotate(90deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.close-modal:active {
    transform: rotate(90deg) scale(0.95);
}

/* Step Transitions */
.booking-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.booking-step.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.3s ease-out;
}

/* Step Title */
.step-title {
    font-family: 'Oswald', sans-serif;
    font-size: 2rem;
    color: #FFD700;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Service Cards Grid */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
    padding: 10px;
}

/* Service Card Styling */
.service-card {
    background: #021125b0;
    border: 2px solid rgba(255, 215, 0, 0.3);
    padding: 25px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 200px;
    will-change: transform; /* Optimizes transform animations */
    backface-visibility: hidden; /* Reduces flickering */
    transform: translateZ(0); /* Forces GPU acceleration */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-5px); /* Removed scale for smoother animation */
    border-color: #FFD700;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.service-card.selected {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    transform: scale(1.01);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    color: #FFD700;
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    margin: 10px 0;
}

.service-card p {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #FFD700;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
}

.required {
    color: #FFD700;
    margin-left: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    background: rgba(255, 215, 0, 0.1);
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 15px;
    padding: 10px;
}

.time-slot {
    background: #021125b0;
    border: 2px solid rgba(255, 215, 0, 0.3);
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Playfair Display', serif;
}

.time-slot:hover {
    border-color: #FFD700;
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
}

.time-slot.selected {
    background: rgba(255, 215, 0, 0.2);
    border-color: #FFD700;
    transform: scale(1.05);
}

/* Navigation Buttons */
.booking-nav,
.btn-container {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-back {
    background: rgba(0, 0, 0, 0.3);
    color: #FFD700;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.btn-next {
    background: #FFD700;
    color: #000;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: bounceIn 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-message h2 {
    color: #FFD700;
    margin-bottom: 20px;
}

.contact-info {
    margin-top: 20px;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .booking-container {
        width: 95%;
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

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

    .service-card {
        min-height: 180px;
    }

    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .step-title {
        font-size: 1.5rem;
    }

    .close-modal {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}