/* Test page styles */
.test-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    text-align: center;
}

.service-selector {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.service-option {
    margin: 10px 0;
    padding: 10px;
    text-align: left;
}

.book-consultation-btn {
    background-color: #000;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
}

.book-consultation-btn:hover {
    background-color: #333;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    padding: 8px;
    line-height: 1;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-modal:hover {
    color: #000;
    background: #f5f5f5;
}

/* Add tooltip to indicate back functionality */
/* .close-modal::after {
    content: 'Back';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    white-space: nowrap;
    color: #666;
    margin-top: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.close-modal:hover::after {
    opacity: 1;
} */

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    width: 100%;
}

.day-header {
    text-align: center;
    font-weight: bold;
    padding: 4px 0;
    font-size: 12px;
    color: #000;
}

.day-cell {
    width: 32px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 13px;
    padding: 0;
    background: #f5f5f5;
    color: #ddd;
}

.day-cell.empty {
    border: none;
    background: none;
}

.day-cell.available {
    background: white;
    color: #000;
    border: 1px solid #ddd;
    cursor: pointer;
    font-weight: 600;
}

.day-cell.available:hover {
    border-color: #ff8800;
}

.day-cell.selected {
    background: #000;
    color: white;
    border-color: #000;
}

.day-cell.selected:hover {
    border-color: #ff8800;
}

/* Add space for time slots */
.time-slots {
    flex: 1;
    min-width: 200px;
    border-left: 1px solid #eee;
    padding-left: 20px;
}

/* Booking Interface Layout */
.booking-interface {
    width: 620px;
    padding: 20px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    position: relative;
}

.booking-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 0 auto;
    width: 580px;
    position: relative;
}

/* Calendar Section */
.calendar-section {
    width: 280px;
    padding: 20px;
    background: white;
}

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

.calendar-header button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.calendar-header button:hover {
    background-color: #f5f5f5;
}

.calendar-header .current-month {
    font-weight: 600;
    font-size: 16px;
}

/* Time Selection Section */
.time-section {
    width: 280px;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.time-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.period-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: #f5f5f5;
    padding: 8px;
    border-radius: 25px;
}

.period-btn {
    flex: 1;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: 25px;
    background: #f5f5f5;
    color: #ddd;
    cursor: default;
    opacity: 0.7;
    transition: all 0.2s;
    font-size: 14px;
    text-transform: capitalize;
}

.period-btn.has-slots {
    background: white;
    color: #000;
    border: 1px solid #ddd;
    cursor: pointer;
    opacity: 1;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.period-btn.has-slots:hover {
    border-color: #ff8800;
}

.period-btn.selected {
    background: #000;
    color: white;
    opacity: 1;
}

.period-btn.selected:hover {
    border-color: #ff8800;
}

.period-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.specific-time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 20px;
}

.time-slot-btn {
    padding: 4px;
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    color: #000;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.time-slot-btn.booked {
    background: #f5f5f5;
    color: #ddd;
    cursor: default;
    border-color: transparent;
    font-weight: normal;
    box-shadow: none;
}

.time-slot-btn.booked:hover {
    border-color: #ddd;
}

.time-slot-btn:hover {
    border-color: #ff8800;
}

.time-slot-btn.selected {
    background: #000;
    color: white;
    border-color: #000;
}

.time-slot-btn.selected:hover {
    border-color: #ff8800;
}

/* Book Now Button */
.book-now-container {
    margin-top: auto;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

.book-now-btn {
    width: 100%;
    padding: 12px;
    background: #000;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    height: 48px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.book-now-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.book-now-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .booking-container {
        flex-direction: column;
        align-items: center;
        width: 280px;
    }

    .calendar-section,
    .time-section {
        width: 280px;
        border-left: none;
    }

    .time-section {
        border-top: 1px solid #f0f0f0;
        padding-top: 20px;
        margin-top: 20px;
    }

    .period-selector {
        flex-wrap: wrap;
        width: 100%;
        max-width: 280px;
    }

    .specific-time-slots {
        grid-template-columns: repeat(3, 1fr);
        max-width: 280px;
    }

    .book-now-btn {
        width: 100%;
        margin: 10px 0;
    }
}

.booking-interface.loading {
    position: relative;
}

.booking-interface.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    content: 'Loading...';
}

/* Loading Spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Transitions */
.modal-overlay:not(.closing) .modal-container {
    transform: translateY(0);
    opacity: 1;
}

.modal-overlay.closing {
    opacity: 0;
}

.modal-overlay.closing .modal-container {
    transform: translateY(20px);
    opacity: 0;
}

/* Add these styles if missing */
.booking-content {
    display: flex;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.calendar-container {
    flex: 1;
    min-width: 300px;
}

.time-slot-container {
    flex: 1;
    min-width: 200px;
}

/* Contact Form Styles */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.booking-summary {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.booking-summary p {
    margin: 8px 0;
    font-size: 14px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: #000;
    color: white;
    border: none;
    border-radius: 9999px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 20px;
    margin-bottom: 20px;
}

.submit-btn:hover {
    background-color: #333;
}

.booking-success {
    text-align: center;
    padding: 20px;
}

.booking-success h2 {
    color: #28a745;
    margin-bottom: 20px;
}

/* Card Required Notice */
.card-required-notice {
    margin-top: 15px;
    font-style: italic;
    font-size: 14px;
    color: #666;
    text-align: center;
    line-height: 1.5;
    background-color: #f9f9f9;
    padding: 12px;
    border-radius: 4px;
    border-left: 3px solid #ff8800;
}

/* Debug Section */
.toggle-debug-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 10px;
}

.toggle-debug-btn:hover {
    background: #e0e0e0;
}

.debug-section {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
}

/* Contact Modal Styles */
.contact-modal {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 500px;
    max-width: 90%;
    position: relative;
}

.contact-section {
    margin: 0;
    padding: 0;
    border: none;
}

/* Ensure contact form is visible in modal */
.modal-overlay .contact-section {
    display: block !important;
}

/* Add specific style for loading overlay */
.modal-overlay.loading {
    background: transparent; /* Make loading overlay transparent as well */
}

/* Appointments heading */
.appointments-heading {
    font-size: 1.2rem;
    margin-top: 10px;
    margin-bottom: 8px;
    text-align: center;
    font-weight: 500;
    color: #333;
    /* Ensure the heading is always visible */
    position: relative;
    z-index: 10;
}

/* Calendar loading indicator */
.calendar-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    width: 100%;
}

.calendar-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #333;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 15px;
}

.calendar-loading p {
    color: #666;
    font-size: 0.9rem;
}

/* Base Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #19213b;
    color: #f4f0e6;
    line-height: 1;
}

/* Modal Styles */
.modal-overlay {
    background-color: rgba(25, 33, 59, 0.8);
}

.modal-container {
    background-color: #f4f0e6;
    color: #19213b;
    border-radius: 12px;
    padding: 30px;
}

/* Booking Interface */
.booking-interface {
    background-color: #f4f0e6;
    color: #19213b;
    border-radius: 12px;
    padding: 20px;
}

.booking-container {
    background-color: #f4f0e6;
    border-radius: 12px;
    padding: 20px;
}

.calendar-section, .time-section {
    background-color: #f4f0e6;
    color: #19213b;
}

/* Calendar Styles */
.calendar-grid {
    background-color: #f4f0e6;
}

.calendar-day {
    color: #19213b;
    border: 1px solid #ddd;
}

.calendar-day.available {
    background-color: #fff;
}

.calendar-day.selected {
    background-color: #19213b;
    color: #f4f0e6;
}

.calendar-day.booked {
    background-color: #f5f5f5;
    color: #999;
}

/* Time Slot Styles */
.time-slot-btn {
    background-color: #fff;
    color: #19213b;
    border: 1px solid #ddd;
}

.time-slot-btn:hover {
    border-color: #19213b;
}

.time-slot-btn.selected {
    background-color: #19213b;
    color: #f4f0e6;
    border-color: #19213b;
}

.time-slot-btn.booked {
    background-color: #f5f5f5;
    color: #999;
}

/* Period Selector */
.period-selector {
    background-color: #f5f5f5;
}

.period-btn {
    background-color: #fff;
    color: #19213b;
}

.period-btn.has-slots {
    background-color: #fff;
    color: #19213b;
}

.period-btn.selected {
    background-color: #19213b;
    color: #f4f0e6;
}

/* Contact Form */
.contact-form {
    background-color: #f4f0e6;
    color: #19213b;
}

.form-group input {
    background-color: #fff;
    color: #19213b;
    border: 1px solid #ddd;
}

.submit-btn {
    background-color: #19213b;
    color: #f4f0e6;
}

.submit-btn:hover {
    background-color: #0f1628;
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid rgba(244, 240, 230, 0.1);
    border-top-color: #f4f0e6;
}

/* Debug Section */
.debug-section {
    background-color: #f4f0e6;
    color: #19213b;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .booking-container {
        flex-direction: column;
    }
    
    .calendar-section, .time-section {
        width: 100%;
    }
}

.promo-banner {
    background-color: #ff8800;
    color: white;
    text-align: center;
    padding: 7px 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0;
    border: none;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #19213b;
    padding: 1rem 0;
    margin: 0;
    border: none;
} 