/* ============================================
   BOOKING CALENDAR - Premium Booking Modal
   ============================================ */

/* Modal Overlay */
.booking-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    animation: bookingFadeIn 0.2s ease-out;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease-out, visibility 0.2s ease-out;
}

.booking-modal.open {
    opacity: 1;
    visibility: visible;
}

@keyframes bookingFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Modal Content */
.booking-modal-content {
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 520px;
    width: 100%;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: bookingSlideUp 0.3s var(--ease-out);
    display: flex;
    flex-direction: column;
}

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

/* Modal Header */
.booking-header {
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.booking-header h3 {
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0;
}

.booking-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--duration-fast) var(--ease-out);
}

.booking-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.booking-close svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

/* Progress Steps */
.booking-progress {
    display: flex;
    padding: 1rem 2rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    gap: 0.5rem;
}

.booking-step {
    flex: 1;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    transition: background var(--duration-normal) var(--ease-out);
}

.booking-step.active {
    background: var(--gold-500);
}

.booking-step.completed {
    background: var(--success);
}

/* Modal Body */
.booking-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

/* Step Container */
.booking-step-content {
    display: none;
    animation: stepFadeIn 0.3s var(--ease-out);
}

.booking-step-content.active {
    display: block;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.booking-step-content h4 {
    font-family: var(--font-display);
    color: var(--navy-800);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.booking-step-content > p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

/* Mini Calendar */
.booking-calendar {
    display: grid;
    gap: 0.5rem;
}

.booking-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.booking-calendar-header h5 {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--navy-800);
    font-size: 1rem;
}

.booking-calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.booking-calendar-nav button {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-out);
}

.booking-calendar-nav button:hover:not(:disabled) {
    border-color: var(--navy-500);
    color: var(--navy-700);
}

.booking-calendar-nav button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.booking-calendar-nav svg {
    width: 16px;
    height: 16px;
}

/* Date Grid */
.booking-dates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.booking-date-btn {
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    transition: all var(--duration-fast) var(--ease-out);
}

.booking-date-btn:hover {
    border-color: var(--navy-500);
    background: var(--gray-50);
}

.booking-date-btn.selected {
    border-color: var(--navy-800);
    background: var(--navy-800);
    color: var(--white);
}

.booking-date-btn .day {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.booking-date-btn .date {
    display: block;
    font-size: 0.8125rem;
    opacity: 0.8;
}

.booking-date-btn.selected .day,
.booking-date-btn.selected .date {
    color: var(--white);
}


/* Time Grid */
.booking-times {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.booking-time-btn {
    padding: 0.875rem 1rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: center;
    transition: all var(--duration-fast) var(--ease-out);
}

.booking-time-btn:hover {
    border-color: var(--navy-500);
    background: var(--gray-50);
}

.booking-time-btn.selected {
    border-color: var(--navy-800);
    background: var(--navy-800);
    color: var(--white);
}

.booking-selected-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--gold-100);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    color: var(--gray-800);
}

.booking-selected-date svg {
    width: 18px;
    height: 18px;
    color: var(--gold-500);
}

.booking-change-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--navy-700);
    font-size: 0.8125rem;
    cursor: pointer;
    text-decoration: underline;
}

/* Contact Form */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.booking-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.booking-form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
}

.booking-form-group label .required {
    color: var(--error);
}

.booking-form-group input,
.booking-form-group textarea {
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: border-color var(--duration-fast) var(--ease-out);
}

.booking-form-group input:focus,
.booking-form-group textarea:focus {
    outline: none;
    border-color: var(--navy-500);
}

.booking-form-group input::placeholder,
.booking-form-group textarea::placeholder {
    color: var(--gray-400);
}

.booking-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.booking-summary {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.booking-summary p {
    font-size: 0.9375rem;
    margin: 0.25rem 0;
}

.booking-summary strong {
    color: var(--navy-800);
}

/* Confirmation */
.booking-confirmation {
    text-align: center;
    padding: 1rem 0;
}

.booking-confirmation .success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-confirmation .success-icon svg {
    width: 36px;
    height: 36px;
    color: var(--white);
}

.booking-confirmation h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.booking-confirmation > p {
    margin-bottom: 2rem;
}

.booking-details {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.booking-details-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}

.booking-details-row:not(:last-child) {
    border-bottom: 1px solid var(--gray-200);
}

.booking-details-row span:first-child {
    color: var(--gray-600);
}

.booking-details-row span:last-child {
    font-weight: 500;
    color: var(--gray-800);
}

.booking-zoom-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: #2D8CFF;
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out);
    margin-bottom: 1rem;
}

.booking-zoom-link:hover {
    background: #1a7ae8;
    color: var(--white);
    transform: translateY(-2px);
}

.booking-zoom-link svg {
    width: 20px;
    height: 20px;
}

.booking-calendar-add {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.booking-calendar-add a {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease-out);
}

.booking-calendar-add a:hover {
    border-color: var(--navy-500);
    color: var(--navy-700);
}

/* Modal Footer */
.booking-footer {
    padding: 1.5rem 2rem;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.booking-footer button {
    flex: 1;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
}

.booking-btn-back {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.booking-btn-back:hover {
    background: var(--gray-100);
}

.booking-btn-next {
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
    color: var(--white);
    border: none;
}

.booking-btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.booking-btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.booking-btn-close {
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
    color: var(--white);
    border: none;
    flex: 1;
    max-width: 200px;
    margin: 0 auto;
}

.booking-btn-close:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Loading State */
.booking-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.booking-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--navy-700);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.booking-loading p {
    color: var(--gray-600);
    font-size: 0.9375rem;
}

/* Error State */
.booking-error {
    padding: 1rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: var(--radius-md);
    color: var(--error);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

/* No Slots */
.booking-no-slots {
    text-align: center;
    padding: 2rem;
    color: var(--gray-600);
}

.booking-no-slots svg {
    width: 48px;
    height: 48px;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 600px) {
    .booking-modal-content {
        max-height: 100vh;
        border-radius: 0;
    }

    .booking-header {
        padding: 1.25rem 1.5rem;
    }

    .booking-body {
        padding: 1.5rem;
    }

    .booking-dates {
        grid-template-columns: 1fr;
    }

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

    .booking-footer {
        padding: 1rem 1.5rem;
    }

    .booking-footer button {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 400px) {
    .booking-times {
        grid-template-columns: 1fr;
    }
}
