/* ============================================
   SOUL SANKALP — BOOKING FORM STYLES
   Multi-step clarity call booking widget
   ============================================ */

.soul-booking-widget {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--spacing-lg, 60px) var(--spacing-md, 24px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(44, 62, 61, 0.08);
}

/* --- Header --- */
.booking-header {
    text-align: center;
    margin-bottom: 40px;
}

.booking-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    color: var(--color-primary, #2C3E3D);
    margin: 0 0 12px;
    line-height: 1.3;
}

.booking-description {
    font-size: 1rem;
    color: var(--color-text-light, #6B7280);
    margin: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.booking-unavailable {
    text-align: center;
    padding: 40px 20px;
    background: #F0F7F4;
    border-radius: 12px;
    color: #4A7C6F;
    font-size: 1.05rem;
}

/* --- Steps Indicator --- */
.booking-steps-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 0;
}

.booking-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: default;
    position: relative;
}

.dot-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #E5E7EB;
    color: #9CA3AF;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.booking-step-dot.active .dot-number {
    background: var(--color-primary, #2C3E3D);
    color: #fff;
    box-shadow: 0 4px 12px rgba(44, 62, 61, 0.25);
}

.booking-step-dot.completed .dot-number {
    background: #6B9E8F;
    color: #fff;
}

.dot-label {
    font-size: 0.75rem;
    color: #9CA3AF;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.booking-step-dot.active .dot-label,
.booking-step-dot.completed .dot-label {
    color: var(--color-primary, #2C3E3D);
}

.booking-step-line {
    width: 48px;
    height: 2px;
    background: #E5E7EB;
    margin: 0 8px;
    margin-bottom: 22px;
    transition: background 0.3s ease;
}

.booking-step-line.completed {
    background: #6B9E8F;
}

/* --- Steps Container --- */
.booking-form-container {
    position: relative;
}

.booking-step {
    animation: bookingFadeIn 0.35s ease;
}

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

.booking-step-header {
    text-align: center;
    margin-bottom: 28px;
}

.booking-step-header h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    color: var(--color-primary, #2C3E3D);
    margin: 0 0 8px;
}

.booking-selected-date {
    color: var(--color-text-light, #6B7280);
    font-size: 0.95rem;
    margin: 0;
}

/* --- Calendar --- */
.booking-calendar {
    max-width: 400px;
    margin: 0 auto;
    background: #F5F8F6;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #E8F0ED;
}

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

.calendar-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    background: #fff;
    color: var(--color-primary, #2C3E3D);
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-nav-btn:hover {
    background: var(--color-primary, #2C3E3D);
    color: #fff;
    border-color: var(--color-primary, #2C3E3D);
}

.calendar-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
    color: #ccc;
    border-color: #eee;
}

.calendar-month-year {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary, #2C3E3D);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #9CA3AF;
    text-transform: uppercase;
    padding: 4px 0;
}

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

.calendar-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.calendar-day:hover:not(.disabled):not(.empty) {
    background: #F0F7F4;
    color: #4A7C6F;
}

.calendar-day.disabled {
    color: #D1D5DB;
    cursor: not-allowed;
    background: transparent;
}

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

.calendar-day.available {
    font-weight: 600;
}

.calendar-day.available:hover {
    background: var(--color-primary, #2C3E3D);
    color: #fff;
    transform: scale(1.05);
}

.calendar-day.selected {
    background: var(--color-primary, #2C3E3D);
    color: #fff;
    box-shadow: 0 4px 12px rgba(44, 62, 61, 0.3);
}

.calendar-day.today {
    border: 2px solid #6B9E8F;
}

.calendar-day.available.today {
    border: 2px solid #4A7C6F;
}

/* --- Time Slots --- */
.booking-time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.time-slot-btn {
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    background: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-primary, #2C3E3D);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: center;
}

.time-slot-btn:hover {
    border-color: #6B9E8F;
    background: #E8F0ED;
}

.time-slot-btn.selected {
    border-color: var(--color-primary, #2C3E3D);
    background: var(--color-primary, #2C3E3D);
    color: #fff;
}

.time-slot-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f9f9f9;
    border-color: #eee;
    color: #ccc;
}

.booking-loading {
    text-align: center;
    color: #9CA3AF;
    font-size: 0.9rem;
    padding: 30px;
    grid-column: 1 / -1;
}

.booking-no-slots {
    text-align: center;
    color: #9CA3AF;
    padding: 30px;
    grid-column: 1 / -1;
}

/* --- Form Fields (Step 3) --- */
.booking-form-fields {
    max-width: 450px;
    margin: 0 auto;
}

.booking-summary {
    background: #F0F7F4;
    border: 1px solid #E8F0ED;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.booking-summary p {
    margin: 4px 0;
    font-size: 0.9rem;
    color: var(--color-primary, #2C3E3D);
}

.booking-summary strong {
    font-weight: 600;
}

.booking-field {
    margin-bottom: 20px;
}

.booking-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary, #2C3E3D);
    margin-bottom: 6px;
}

.booking-field input,
.booking-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #374151;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.booking-field input:focus,
.booking-field textarea:focus {
    outline: none;
    border-color: #6B9E8F;
    box-shadow: 0 0 0 3px rgba(107, 158, 143, 0.15);
}

.booking-field input.error,
.booking-field textarea.error {
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.booking-field .field-error {
    font-size: 0.8rem;
    color: #DC2626;
    margin-top: 4px;
    display: none;
}

.booking-field.has-error .field-error {
    display: block;
}

/* --- Step Actions (Buttons) --- */
.booking-step-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.booking-step-actions .button-secondary {
    padding: 12px 24px;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    background: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary, #2C3E3D);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.booking-step-actions .button-secondary:hover {
    border-color: #D1D5DB;
    background: #F9FAFB;
}

.booking-step-actions .button-primary {
    padding: 12px 32px;
    border: none;
    border-radius: 10px;
    background: var(--color-primary, #2C3E3D);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.booking-step-actions .button-primary:hover:not(:disabled) {
    background: #1a2b2a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 62, 61, 0.2);
}

.booking-step-actions .button-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-large {
    padding: 14px 48px !important;
    font-size: 1.05rem !important;
}

/* --- Confirmation (Step 4) --- */
.booking-confirm-details {
    max-width: 400px;
    margin: 0 auto;
}

.booking-confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #F3F4F6;
}

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

.confirm-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #9CA3AF;
}

.confirm-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary, #2C3E3D);
}

/* --- Messages --- */
.booking-messages {
    max-width: 450px;
    margin: 16px auto 0;
}

.booking-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    text-align: center;
}

.booking-message.error {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FEE2E2;
}

.booking-message.success {
    background: #F0F7F4;
    color: #4A7C6F;
    border: 1px solid #E8F0ED;
}

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

.booking-success-icon {
    color: #6B9E8F;
    margin-bottom: 16px;
}

.booking-success-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.8rem;
    color: var(--color-primary, #2C3E3D);
    margin: 0 0 12px;
}

.booking-success-text {
    color: var(--color-text-light, #6B7280);
    font-size: 1rem;
    margin: 0 0 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.booking-success-details {
    background: #F0F7F4;
    border: 1px solid #E8F0ED;
    padding: 20px 24px;
    border-radius: 12px;
    display: inline-block;
    text-align: left;
}

.booking-success-details p {
    margin: 4px 0;
    color: var(--color-primary, #2C3E3D);
    font-size: 0.95rem;
}

.booking-success-details strong {
    font-weight: 600;
}

/* --- Loader / Spinner --- */
.booking-submitting {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.booking-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bookingSpin 0.6s linear infinite;
}

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

/* --- Responsive --- */
@media (max-width: 600px) {
    .soul-booking-widget {
        padding: 40px 16px;
        border-radius: 12px;
    }

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

    .booking-steps-indicator {
        gap: 4px;
    }

    .booking-step-line {
        width: 24px;
    }

    .dot-number {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .dot-label {
        font-size: 0.65rem;
    }

    .booking-calendar {
        padding: 16px;
    }

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

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

    .booking-step-actions {
        flex-direction: column;
    }

    .booking-step-actions .button-primary,
    .booking-step-actions .button-secondary {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   BOOKING MODAL — Lightbox Overlay
   ============================================ */

.booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99998;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.booking-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.booking-modal-container {
    position: relative;
    max-width: 780px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
    padding: 40px 32px 32px;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.booking-modal-overlay.active .booking-modal-container {
    transform: translateY(0) scale(1);
}

.booking-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #F3F4F6;
    color: #6B7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    font-size: 1.1rem;
    line-height: 1;
}

.booking-modal-close:hover {
    background: #E5E7EB;
    color: #374151;
    transform: rotate(90deg);
}

.booking-modal-close svg {
    width: 18px;
    height: 18px;
}

/* Modal body scroll prevention */
body.booking-modal-open {
    overflow: hidden;
}

/* Modal inner widget adjustments */
.booking-modal-container .soul-booking-widget {
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* Responsive modal */
@media (max-width: 600px) {
    .booking-modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .booking-modal-container {
        max-height: 93vh;
        border-radius: 20px 20px 0 0;
        padding: 32px 20px 20px;
    }
}

@media (max-width: 400px) {
    .booking-step-line {
        width: 16px;
    }

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