/* Variables */
:root {
    --step-transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Booking Page Styles */
.booking-main {
    min-height: calc(100vh - var(--header-height));
    background: var(--background-light);
}

.booking-hero {
    background: linear-gradient(135deg, rgba(76, 78, 41, 0.8) 0%, rgba(0,0,0,0.6) 100%),
                url('../images/hero-bg.svg') center/cover fixed;
    padding: 6rem 2rem;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

/* Floating Shapes Animation */
.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape2 {
    top: 40%;
    right: 15%;
    animation-delay: 2s;
}

.shape3 {
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.booking-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.booking-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.booking-container {
    max-width: 1000px;
    margin: -3rem auto 0;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

/* Booking Steps */
.booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    padding: 0 2rem;
}

.booking-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--background-dark);
    z-index: 1;
}

.booking-steps::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: var(--progress, 0%);
    height: 2px;
    background: var(--primary-color);
    z-index: 2;
    transition: width var(--step-transition);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--background-dark);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step-number i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.step.active .step-number,
.step.completed .step-number {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.3);
}

.step.active .step-number i,
.step.completed .step-number i {
    animation: bounce 0.5s ease;
}

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

/* Service Categories */
.service-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: var(--background-dark);
    color: var(--text-dark);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-btn.active {
    background: var(--gold-gradient);
    color: var(--text-dark);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

/* Service Selection */
.service-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-option {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-option:hover::before {
    transform: scaleX(1);
}

.service-option:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gold-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    transform: rotate(-10deg);
    transition: all 0.4s ease;
}

.service-option:hover .service-icon {
    transform: rotate(0deg) scale(1.1);
}

.service-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-info h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.service-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 1rem 0;
}

.duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.95rem;
}

.price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #555;
    font-size: 0.95rem;
}

.service-features li i {
    color: var(--primary-color);
    font-size: 0.9rem;
    background: rgba(212, 175, 55, 0.1);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.select-service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gold-gradient);
    border: none;
    border-radius: 30px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.select-service-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.select-service-btn:hover::before {
    transform: translateX(100%);
}

.select-service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.3);
}

.select-service-btn i {
    transition: transform 0.3s ease;
}

.select-service-btn:hover i {
    transform: translateX(3px);
}

/* Calendar Styles */
.calendar-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
    padding: 1rem;
    position: relative;
}

.calendar-container.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.calendar-container.loading::before {
    content: '\f1ce';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--primary-color);
    z-index: 1;
    animation: spin 1s linear infinite;
}

.available-slot {
    background: var(--primary-color) !important;
    border: none !important;
    border-radius: 6px !important;
    margin: 2px 4px !important;
    opacity: 0.9 !important;
    transition: all 0.2s ease !important;
}

.available-slot:hover {
    opacity: 1 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.available-slot .fc-event-title {
    padding: 4px 8px !important;
    font-weight: 500 !important;
}

.fc .fc-timegrid-event {
    background-color: #e8f5e9 !important;
    border: 1px solid #4CAF50 !important;
    border-radius: 4px !important;
    margin: 1px !important;
}

.fc .fc-timegrid-event.fc-event-selected {
    background-color: #c8e6c9 !important;
    border-color: #2E7D32 !important;
}

@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Customize FullCalendar styles */
.fc .fc-timegrid-slot {
    height: 3rem !important;
    font-size: 0.9rem;
}

.fc .fc-timegrid-slot-label {
    font-size: 0.9rem;
    color: #666;
}

.fc .fc-timegrid-now-indicator-line {
    border-color: var(--primary-color);
}

.fc .fc-timegrid-now-indicator-arrow {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.fc .fc-highlight {
    background-color: rgba(212, 175, 55, 0.2) !important;
}

/* FullCalendar Core Styles */
.fc {
    height: 100%;
    font-family: var(--font-primary);
}

.fc .fc-view {
    background: #fff;
    border-radius: 8px;
    overflow: visible; /* Allow scrolling */
}

.fc .fc-scroller {
    height: auto !important; /* Override FullCalendar's fixed height */
}

/* Month/Week View Toggle */
.view-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.view-toggle button {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #333;
}

.view-toggle button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Booking Modal */
.booking-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    z-index: 1000;
    display: none;
}

.booking-modal.active {
    display: block;
    animation: modalFadeIn 0.3s ease;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.modal-overlay.active {
    display: block;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.25rem;
}

.booking-details {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f8f8;
    border-radius: 8px;
}

.booking-details p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #333;
}

.booking-details i {
    color: var(--primary-color);
}

.email-input {
    margin: 1.5rem 0;
}

.email-input label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.email-input input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.reminder-options {
    margin: 1.5rem 0;
}

.reminder-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-actions button {
    flex: 1;
    padding: 0.75rem;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.confirm-booking {
    background: var(--primary-color);
    color: white;
}

.confirm-booking:hover {
    opacity: 0.9;
}

.cancel-booking {
    background: #f8f8f8;
    color: #333;
}

.cancel-booking:hover {
    background: #eee;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Calendar Buttons */
.calendar-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.calendar-btn {
    background: white;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.calendar-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.calendar-btn i {
    font-size: 1.2rem;
}

/* Navigation Buttons */
.booking-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--background-dark);
}

.nav-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-button.primary {
    background: var(--primary-color);
    color: white;
}

.nav-button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-hero {
        padding: 4rem 1rem 2rem;
        text-align: center;
    }

    .booking-hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .booking-hero p {
        font-size: 1rem;
    }

    .booking-container {
        margin: 0;
        padding: 1rem;
        border-radius: 0;
    }

    .booking-steps {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        padding: 0.5rem;
        margin-bottom: 2rem;
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .booking-steps::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .booking-steps::before {
        content: '';
        position: absolute;
        top: 25px;
        left: 0.5rem;
        right: 0.5rem;
        height: 2px;
        background: var(--background-dark);
        z-index: 1;
    }

    .step {
        min-width: auto;
        padding: 0 0.25rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .step-text {
        font-size: 0.75rem;
        text-align: center;
        white-space: nowrap;
    }

    /* Service Categories */
    .service-categories {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        margin: 0 0 1.5rem;
        padding: 0 0.5rem;
    }

    .category-btn {
        padding: 0.5rem;
        font-size: 0.85rem;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    /* Service Cards */
    .service-selection {
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .service-option {
        padding: 1.25rem;
        gap: 1rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        border-radius: 15px;
    }

    .service-info h3 {
        font-size: 1.4rem;
        margin-bottom: 0.25rem;
    }

    .service-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .service-meta {
        flex-wrap: wrap;
        gap: 0.75rem;
        margin: 0.75rem 0;
    }

    .duration, .price {
        font-size: 0.9rem;
    }

    .service-features {
        gap: 0.5rem;
    }

    .service-features li {
        font-size: 0.85rem;
    }

    .service-features li i {
        width: 20px;
        height: 20px;
        font-size: 0.8rem;
    }

    .select-service-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }

    /* Navigation Buttons */
    .booking-navigation {
        padding: 1rem;
        gap: 0.75rem;
    }

    .nav-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    .calendar-container {
        padding: 0.5rem;
        margin: 0.5rem 0;
    }

    .fc .fc-toolbar.fc-header-toolbar {
        display: grid;
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
    }

    .fc .fc-toolbar-title {
        font-size: 1.1rem !important;
        order: -1;
    }

    .fc .fc-button {
        padding: 0.5rem !important;
        font-size: 0.9rem !important;
    }

    .fc .fc-timegrid-slot {
        height: 4rem !important; /* Larger touch targets on mobile */
    }

    .available-slot {
        margin: 1px 2px !important;
    }

    .available-slot .fc-event-title {
        padding: 8px !important; /* Larger touch target */
        text-align: center;
    }

    /* Improved Mobile Time Selection Display */
    #time-selection-display {
        padding: 1rem;
        margin: 0.5rem 0;
    }

    .date-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .date-display i {
        font-size: 1.25rem;
    }

    /* Mobile Navigation Improvements */
    .booking-navigation {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        display: flex;
        gap: 1rem;
    }

    .nav-button {
        flex: 1;
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .booking-hero h1 {
        font-size: 1.75rem;
    }

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

    .category-btn {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .service-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-option {
        margin: 0 0.5rem;
        border-radius: 15px;
    }

    .booking-navigation {
        flex-direction: column;
    }

    .nav-button {
        width: 100%;
        justify-content: center;
    }

    .fc .fc-timegrid-slot {
        height: 4.5rem !important; /* Even larger touch targets for small screens */
    }

    .fc .fc-toolbar-title {
        font-size: 1rem !important;
    }

    .fc .fc-button {
        padding: 0.4rem !important;
        font-size: 0.85rem !important;
    }

    /* Improved Scrolling */
    .fc-scroller {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .fc-scroller::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    .fc-scroller::-webkit-scrollbar-track {
        background: var(--background-light);
        border-radius: 3px;
    }

    .fc-scroller::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 3px;
    }
}

/* Add smooth scroll behavior */
.booking-steps {
    scroll-behavior: smooth;
}

/* Active step highlight for mobile */
@media (max-width: 768px) {
    .step.active .step-number {
        transform: scale(1.15);
    }

    .step.completed .step-number {
        transform: scale(1);
    }

    .step.active .step-text {
        font-weight: 600;
        color: var(--primary-color);
    }
}

/* FullCalendar Customization */
.fc {
    font-family: var(--body-font);
}

.fc .fc-button-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.fc .fc-button-primary:not(:disabled):hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: rgba(var(--primary-color-rgb), 0.1);
}

.fc .fc-highlight {
    background-color: rgba(var(--primary-color-rgb), 0.2);
}

.fc .fc-event {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Card Transitions */
.booking-step-content {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease;
    width: 100%;
}

.booking-step-content.hidden {
    display: none;
    opacity: 0;
}

/* Confirmation step specific styles */
#step4 {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.confirmation-message {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.confirmation-message .success-icon {
    color: #28a745;
    font-size: 4rem;
    margin-bottom: 1rem;
}

.confirmation-message h2 {
    color: #28a745;
    margin-bottom: 1rem;
}

.confirmation-message .email-note {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.confirmation-details {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.confirmation-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.confirmation-item:last-child {
    border-bottom: none;
}

.confirmation-item .label {
    font-weight: 600;
    color: #495057;
}

.confirmation-item .value {
    color: #212529;
}

.calendar-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.calendar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: var(--background-dark);
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.calendar-btn:hover {
    background: var(--primary-color);
    color: white;
}

.calendar-btn i {
    font-size: 1.2rem;
}

/* Loading States */
.loading-slots {
    text-align: center;
    padding: 2rem;
    color: var(--text-dark);
}

.loading-slots i {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Error Messages */
.error-message {
    background: #fee;
    color: #e44;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Confirmation Details */
.confirmation-detail {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-light);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.confirmation-detail:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.confirmation-detail i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirmation-detail h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.confirmation-detail p {
    margin: 0;
    color: var(--text-dark);
    opacity: 0.8;
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 3rem;
}

.loading i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideUp 0.3s ease forwards;
}

.toast.error {
    background-color: #fee2e2;
    border-left: 4px solid #dc2626;
    color: #991b1b;
}

.toast.success {
    background-color: #dcfce7;
    border-left: 4px solid #16a34a;
    color: #166534;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Selected DateTime Display */
.selected-datetime {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 1rem;
}

.date-display,
.time-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.date-display i,
.time-display i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* FullCalendar Customization */
.fc {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.fc .fc-toolbar-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.fc .fc-button {
    background: var(--gold-gradient);
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.fc .fc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.fc .fc-timegrid-slot {
    height: 50px !important;
}

.fc .fc-timegrid-slot-label {
    font-weight: 500;
    color: #666;
}

.fc .fc-timegrid-slot.fc-timegrid-slot-lane {
    background: rgba(212, 175, 55, 0.02);
}

.fc .fc-timegrid-now-indicator-line {
    border-color: var(--primary-color);
}

.fc .fc-timegrid-now-indicator-arrow {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

/* Responsive Calendar */
@media (max-width: 768px) {
    .calendar-container {
        grid-template-columns: 1fr;
    }

    .time-slots {
        border-left: none;
        border-top: 1px solid var(--background-dark);
        padding-left: 0;
        padding-top: 2rem;
        margin-top: 2rem;
    }

    .fc .fc-toolbar {
        flex-direction: column;
        gap: 1rem;
    }

    .fc .fc-toolbar-title {
        font-size: 1.2rem;
    }

    .calendar-buttons {
        flex-direction: column;
    }

    .calendar-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Calendar specific styles */
.fc {
    height: 100%;
    font-family: var(--font-primary);
}

.fc .fc-view {
    background: #fff;
    border-radius: 8px;
    overflow: visible; /* Allow scrolling */
}

.fc .fc-scroller {
    height: auto !important; /* Override FullCalendar's fixed height */
}

.fc .fc-timegrid-slot {
    height: 40px !important; /* Consistent slot height */
}

/* Ensure the time slots are visible in the scrollable area */
.fc-timegrid-slots {
    min-height: fit-content !important;
}

/* Add smooth scrolling */
.fc-scroller {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f1f1f1;
}

.fc-scroller::-webkit-scrollbar {
    width: 8px;
}

.fc-scroller::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.fc-scroller::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Time Selection Display */
#time-selection-display {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
    padding: 1.5rem;
}

#time-selection-display h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.date-display,
.time-display,
.service-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.date-display:last-child,
.time-display:last-child,
.service-display:last-child {
    margin-bottom: 0;
}

.date-display i,
.time-display i,
.service-display i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.date-display span,
.time-display span,
.service-display span {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 1rem;
}

/* Remove modal styles since we're not using them anymore */
.booking-modal,
.modal-overlay {
    display: none;
}

/* Responsive styles for time selection display */
@media (max-width: 768px) {
    #time-selection-display {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    #time-selection-display h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .date-display,
    .time-display,
    .service-display {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .date-display i,
    .time-display i,
    .service-display i {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .date-display span,
    .time-display span,
    .service-display span {
        font-size: 0.9rem;
    }
}

/* Form Messages */
.form-message {
    margin: 1rem 0;
    padding: 1rem;
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
}

.form-message.success {
    background-color: rgba(72, 187, 120, 0.1);
    border: 1px solid rgba(72, 187, 120, 0.2);
    color: #2f855a;
}

.form-message.error {
    background-color: rgba(245, 101, 101, 0.1);
    border: 1px solid rgba(245, 101, 101, 0.2);
    color: #c53030;
}

.message-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.message-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.message-content h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.message-content p {
    margin: 0;
    font-size: 0.875rem;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Consultation Form Button */
.booking-form .btn-primary,
.booking-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gold-gradient);
    border: none;
    border-radius: 30px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    width: 100%;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.booking-form .btn-primary::before,
.booking-form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0) 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.booking-form .btn-primary:hover::before,
.booking-form button[type="submit"]:hover::before {
    transform: translateX(100%);
}

.booking-form .btn-primary:hover,
.booking-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .booking-form .btn-primary,
    .booking-form button[type="submit"] {
        padding: 0.875rem 1.75rem;
        font-size: 0.85rem;
    }
}

/* Enhanced Button Styles */
.booking-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--gold-gradient);
    border: none;
    border-radius: 30px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    width: 100%;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
    min-height: 3.5rem;
}

.booking-form button[type="submit"] .button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    transition: all 0.3s ease;
}

.booking-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.3);
}

/* Loading State */
.booking-form button[type="submit"].loading {
    background: linear-gradient(90deg, #D4AF37 0%, #C5A028 100%);
    pointer-events: none;
}

.booking-form button[type="submit"].loading .button-content {
    opacity: 0.8;
}

.booking-form button[type="submit"].loading .fa-spinner {
    animation: spin 1s linear infinite;
}

/* Success State */
.booking-form button[type="submit"].success {
    background: linear-gradient(90deg, #34D399 0%, #059669 100%);
    color: white;
    pointer-events: none;
}

.booking-form button[type="submit"].success .button-content {
    animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Error State */
.booking-form button[type="submit"].error {
    background: linear-gradient(90deg, #F87171 0%, #DC2626 100%);
    color: white;
}

.booking-form button[type="submit"].error .button-content {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

/* Form Message Animations */
.form-message {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.form-message.success,
.form-message.error {
    animation: slideInDown 0.5s ease forwards;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .booking-form button[type="submit"] {
        padding: 0.875rem 1.75rem;
        font-size: 0.85rem;
        min-height: 3rem;
    }
} 