/* Guest Booking Modal for Website Landing Page */

/* ==========================================
   Modal Overlay & Container
   ========================================== */

.guest-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: guestModalFadeIn 0.25s ease;
}

.guest-modal-overlay.guest-modal--closing {
    animation: guestModalFadeOut 0.25s ease forwards;
}

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

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

.guest-modal {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: guestModalSlideUp 0.3s ease;
}

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

/* ==========================================
   Modal Header
   ========================================== */

.guest-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.guest-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.guest-modal-close {
    background: none;
    border: none;
    font-size: 1.75rem;
    color: #6c757d;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.guest-modal-close:hover {
    background: #f8f9fa;
    color: #333;
}

/* ==========================================
   Step Indicator
   ========================================== */

.guest-modal-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.guest-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guest-step + .guest-step::before {
    content: '';
    width: 24px;
    height: 2px;
    background: #e9ecef;
    margin-right: 0.25rem;
}

.guest-step--completed + .guest-step::before,
.guest-step--active + .guest-step::before {
    background: #368BC1;
}

.guest-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.guest-step--active .guest-step-circle {
    background: #368BC1;
    color: #fff;
}

.guest-step--completed .guest-step-circle {
    background: #28a745;
    color: #fff;
}

.guest-step-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.guest-step--active .guest-step-label {
    color: #368BC1;
    font-weight: 600;
}

.guest-step--completed .guest-step-label {
    color: #28a745;
}

/* ==========================================
   Modal Body (Scrollable)
   ========================================== */

.guest-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* ==========================================
   Modal Footer (Navigation)
   ========================================== */

.guest-modal-footer {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    flex-shrink: 0;
}

.guest-nav-btn {
    min-width: 100px;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.guest-nav-btn.btn--primary {
    background: #368BC1;
    color: #fff;
}

.guest-nav-btn.btn--primary:hover:not(:disabled) {
    background: #2a6fa0;
}

.guest-nav-btn.btn--primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.guest-nav-btn.btn--secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #dee2e6;
}

.guest-nav-btn.btn--secondary:hover {
    background: #e9ecef;
}

/* ==========================================
   Wizard Content Styles
   (Copied from app css/private-lessons.css)
   ========================================== */

.wizard-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.wizard-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Subject Grid */
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.subject-card {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.subject-card:hover {
    border-color: #368BC1;
    box-shadow: 0 2px 8px rgba(54, 139, 193, 0.1);
}

.subject-card.selected {
    border-color: #368BC1;
    background: #f0f8ff;
}

.subject-card h3 {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.pricing-note {
    text-align: center;
    margin-top: 1.25rem;
    padding: 0.625rem 0.75rem;
    font-size: 0.8rem;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
}

.pricing-note strong {
    color: #333;
}

/* Calendar */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.calendar-month {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
}

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

.calendar-nav button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.125rem;
    color: #333;
}

.calendar-nav button:hover {
    background: #f8f9fa;
    border-color: #368BC1;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
}

.calendar-day-header {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    padding: 0.4rem;
}

.calendar-day {
    aspect-ratio: 1;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.825rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.calendar-day:hover:not(.disabled):not(.past) {
    border-color: #368BC1;
    background: #f8f9fa;
}

.calendar-day.today {
    font-weight: 600;
    color: #368BC1;
}

.calendar-day.available {
    background: #e8f4f8;
    border-color: #368BC1;
}

.calendar-day.selected {
    background: #368BC1;
    color: #fff;
    border-color: #368BC1;
}

.calendar-day.past,
.calendar-day.disabled {
    color: #adb5bd;
    cursor: not-allowed;
    background: #f8f9fa;
}

.calendar-day.empty {
    border: none;
    cursor: default;
    background: transparent;
}

/* Slot Picker */
.slot-picker-container {
    margin-bottom: 1.5rem;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.slot-card {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    font-weight: 500;
    font-size: 0.875rem;
}

.slot-card:hover:not(.disabled) {
    border-color: #368BC1;
    box-shadow: 0 2px 8px rgba(54, 139, 193, 0.1);
}

.slot-card.selected {
    border-color: #368BC1;
    background: #368BC1;
    color: #fff;
}

.slot-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.slot-card.premium {
    position: relative;
}

.slot-card.premium::after {
    content: '\2605';
    position: absolute;
    top: 4px;
    right: 6px;
    color: #ffc107;
    font-size: 0.7rem;
}

.slot-card.premium.selected::after {
    color: #fff;
}

/* Duration Selector */
.duration-selector {
    margin-bottom: 1.5rem;
}

.duration-label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
    font-size: 0.9rem;
}

.duration-options {
    display: flex;
    gap: 0.75rem;
}

.duration-option {
    flex: 1;
    position: relative;
}

.duration-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.duration-option label {
    display: block;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    font-weight: 500;
    font-size: 0.875rem;
}

.duration-option input[type="radio"]:checked + label {
    border-color: #368BC1;
    background: #368BC1;
    color: #fff;
}

.duration-option label:hover {
    border-color: #368BC1;
}

/* Price Display */
.price-display {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}

.price-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.375rem;
}

.price-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
}

.price-premium-note {
    font-size: 0.8rem;
    color: #ffc107;
    margin-top: 0.375rem;
    font-weight: 500;
}

/* ==========================================
   Booking Summary (Guest-specific)
   ========================================== */

.booking-summary-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.625rem 0;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.9rem;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row.summary-total {
    font-weight: 700;
    font-size: 1.05rem;
    margin-top: 0.25rem;
    padding-top: 0.75rem;
    border-top: 2px solid #dee2e6;
}

.summary-label {
    color: #6c757d;
}

.summary-value {
    color: #333;
    font-weight: 500;
}

.summary-premium {
    color: #ffc107;
}

/* Guest Form Fields */
.guest-form {
    margin-bottom: 1.25rem;
}

.guest-form-group {
    margin-bottom: 1rem;
}

.guest-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.375rem;
    color: #333;
    font-size: 0.875rem;
}

.guest-form-group .required {
    color: #dc3545;
}

.guest-form-group input,
.guest-form-group textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.guest-form-group input:focus,
.guest-form-group textarea:focus {
    outline: none;
    border-color: #368BC1;
    box-shadow: 0 0 0 3px rgba(54, 139, 193, 0.1);
}

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

/* Turnstile */
.turnstile-container {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

/* Pay Button */
.guest-pay-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: #368BC1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.guest-pay-btn:hover:not(:disabled) {
    background: #2a6fa0;
}

.guest-pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Disclaimer */
.guest-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.75rem;
    line-height: 1.5;
}

/* Error */
.guest-error {
    background: #f8d7da;
    color: #721c24;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 768px) {
    .guest-modal {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .guest-modal-body {
        padding: 1rem;
    }

    .guest-modal-steps {
        padding: 0.75rem 1rem;
    }

    .guest-step-label {
        display: none;
    }

    .subject-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
    }

    .slot-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }

    .calendar-grid {
        gap: 0.25rem;
    }

    .calendar-day {
        font-size: 0.75rem;
    }

    .duration-options {
        gap: 0.5rem;
    }

    .guest-modal-footer {
        padding: 0.75rem 1rem;
    }

    .guest-nav-btn {
        min-width: 80px;
        padding: 0.625rem 1rem;
    }
}
