/**
 * booking-widget.css
 * EaseOfBiz Sprint 1 — Booking Widget + Studio Booking Setup Tab
 *
 * Uses EaseOfBiz design tokens (CSS vars defined globally):
 *   --bg: #09090b  --bg-2: #0f0f17  --bg-3: #141420
 *   --border: rgba(255,255,255,0.07)  --border-lit: rgba(255,255,255,0.14)
 *   --violet: #7c3aed  --violet-light: #a78bfa
 *   --green: #4ade80
 *   --text: #f0ece3  --text-2: #a09d96  --text-3: #6b6864
 *
 * Deploy path: eob-booking/assets/css/booking-widget.css
 * Enqueue alongside booking-widget.js on profile pages.
 */

/* ================================================================
   PUBLIC BOOKING WIDGET — .eob-booking-widget-wrap
   ================================================================ */

.eob-booking-widget-wrap {
    background: var(--bg-2, #0f0f17);
    border: 1px solid var(--border, rgba(255,255,255,0.07));
    border-radius: 16px;
    padding: 24px;
    margin-top: 24px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Step indicator */
.eob-bw-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--text-3, #6b6864);
    flex-wrap: wrap;
}

.eob-bw-steps span.active {
    color: var(--violet-light, #a78bfa);
}

.eob-bw-step {
    min-width: 0;
}

/* Session type cards */
.eob-bw-sessions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eob-bw-session-card {
    all: unset;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: var(--bg-3, #141420);
    border: 1px solid var(--border, rgba(255,255,255,0.07));
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    box-sizing: border-box;
    width: 100%;
    text-align: left;
}

.eob-bw-session-card:hover {
    border-color: var(--violet-light, #a78bfa);
    background: rgba(124,58,237,0.06);
}

.eob-bw-sc-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text, #f0ece3);
}

.eob-bw-sc-meta {
    font-size: 12px;
    color: var(--text-2, #a09d96);
}

.eob-bw-sc-desc {
    font-size: 13px;
    color: var(--text-3, #6b6864);
    margin-top: 4px;
}

/* Date tabs */
.eob-bw-date-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.eob-bw-date-tab {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-lit, rgba(255,255,255,0.14));
    background: transparent;
    color: var(--text-2, #a09d96);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.eob-bw-date-tab.active,
.eob-bw-date-tab:hover {
    border-color: var(--violet, #7c3aed);
    background: rgba(124,58,237,0.12);
    color: var(--text, #f0ece3);
}

/* Time slots */
.eob-bw-time-slots {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.eob-bw-slot {
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border, rgba(255,255,255,0.07));
    background: var(--bg-3, #141420);
    color: var(--text-2, #a09d96);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.eob-bw-slot.active,
.eob-bw-slot:hover {
    border-color: var(--violet, #7c3aed);
    background: rgba(124,58,237,0.12);
    color: var(--text, #f0ece3);
}

/* Next/Submit button row */
.eob-bw-next,
.eob-bw-submit {
    margin-top: 16px;
    width: 100%;
    justify-content: center;
}

/* Back button */
.eob-bw-back {
    all: unset;
    font-size: 13px;
    color: var(--text-3, #6b6864);
    cursor: pointer;
    margin-bottom: 16px;
    display: inline-block;
    transition: color 0.15s;
}

.eob-bw-back:hover { color: var(--text-2, #a09d96); }

/* Intake questions */
.eob-bw-question {
    margin-bottom: 16px;
}

.eob-bw-question label {
    display: block;
    font-size: 14px;
    color: var(--text, #f0ece3);
    margin-bottom: 6px;
}

.eob-bw-required {
    color: var(--violet-light, #a78bfa);
}

.eob-bw-question input[type="text"],
.eob-bw-question textarea,
.eob-bw-question select {
    width: 100%;
    background: var(--bg-3, #141420);
    border: 1px solid var(--border-lit, rgba(255,255,255,0.14));
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text, #f0ece3);
    font-size: 14px;
    box-sizing: border-box;
}

.eob-bw-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.eob-bw-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 0;
    cursor: pointer;
}

/* Step 4 — details + OTP */
.eob-bw-summary {
    background: var(--bg-3, #141420);
    border: 1px solid var(--border, rgba(255,255,255,0.07));
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-2, #a09d96);
}

.eob-bw-summary strong {
    display: block;
    color: var(--text, #f0ece3);
    margin-bottom: 4px;
}

.eob-booking-widget-wrap label {
    display: block;
    font-size: 14px;
    color: var(--text-2, #a09d96);
    margin-bottom: 12px;
}

.eob-booking-widget-wrap label input,
.eob-booking-widget-wrap label select {
    display: block;
    width: 100%;
    margin-top: 6px;
    background: var(--bg-3, #141420);
    border: 1px solid var(--border-lit, rgba(255,255,255,0.14));
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text, #f0ece3);
    font-size: 14px;
    box-sizing: border-box;
}

.eob-bw-otp {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.eob-bw-otp input {
    flex: 1;
    letter-spacing: 0.2em;
    font-size: 18px;
}

.eob-bw-verified {
    color: var(--green, #4ade80);
    font-size: 13px;
    margin: 6px 0;
}

/* Step 5 — Confirmed */
.eob-bw-confirmed {
    text-align: center;
    padding: 24px 0;
}

.eob-bw-tick {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(74,222,128,0.1);
    border: 2px solid var(--green, #4ade80);
    color: var(--green, #4ade80);
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.eob-bw-confirmed h3 {
    color: var(--text, #f0ece3);
    margin: 0 0 8px;
}

.eob-bw-confirmed p {
    color: var(--text-2, #a09d96);
    font-size: 14px;
    margin: 4px 0;
}

/* Shared */
.eob-bw-loading { color: var(--text-3, #6b6864); font-size: 13px; padding: 16px 0; }
.eob-bw-empty   { color: var(--text-3, #6b6864); font-size: 13px; padding: 16px 0; }
.eob-bw-error   { color: #f87171; font-size: 13px; margin: 8px 0; }


/* ================================================================
   STUDIO BOOKING SETUP — .eob-studio-booking
   ================================================================ */

.eob-studio-booking {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 680px;
}

.eob-bs-section {
    background: var(--bg-2, #0f0f17);
    border: 1px solid var(--border, rgba(255,255,255,0.07));
    border-radius: 12px;
    padding: 20px;
}

.eob-bs-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.eob-bs-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text, #f0ece3);
    margin: 0;
}

.eob-bs-hint {
    font-size: 13px;
    color: var(--text-3, #6b6864);
    margin: 0 0 14px;
}

/* Session cards in studio */
.eob-bs-sessions-list,
.eob-bs-questions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eob-bs-session-card,
.eob-bs-question-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-3, #141420);
    border: 1px solid var(--border, rgba(255,255,255,0.07));
    border-radius: 8px;
    box-sizing: border-box;
}

.eob-bs-session-card.is-inactive {
    opacity: 0.45;
}

.eob-bs-session-info,
.eob-bs-q-text-wrap {
    flex: 1;
    min-width: 0;
}

.eob-bs-session-title,
.eob-bs-q-text {
    display: block;
    font-size: 14px;
    color: var(--text, #f0ece3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eob-bs-session-meta,
.eob-bs-q-meta {
    display: block;
    font-size: 12px;
    color: var(--text-3, #6b6864);
    margin-top: 2px;
}

.eob-bs-session-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.eob-bs-empty {
    font-size: 13px;
    color: var(--text-3, #6b6864);
    padding: 12px 0;
}

/* Modal */
.eob-bs-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9000;
    padding: 16px;
    box-sizing: border-box;
}

.eob-bs-modal {
    background: var(--bg-2, #0f0f17);
    border: 1px solid var(--border-lit, rgba(255,255,255,0.14));
    border-radius: 14px;
    padding: 24px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.eob-bs-modal h4 {
    margin: 0 0 16px;
    font-size: 16px;
    color: var(--text, #f0ece3);
}

.eob-bs-modal label {
    display: block;
    font-size: 13px;
    color: var(--text-2, #a09d96);
    margin-bottom: 12px;
}

.eob-bs-modal input[type="text"],
.eob-bs-modal input[type="number"],
.eob-bs-modal textarea,
.eob-bs-modal select {
    display: block;
    width: 100%;
    margin-top: 6px;
    background: var(--bg-3, #141420);
    border: 1px solid var(--border-lit, rgba(255,255,255,0.14));
    border-radius: 8px;
    padding: 9px 12px;
    color: var(--text, #f0ece3);
    font-size: 14px;
    box-sizing: border-box;
}

.eob-bs-row {
    display: flex;
    gap: 12px;
}

.eob-bs-row label { flex: 1; }

.eob-bs-toggle-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding-top: 22px;
}

.eob-bs-modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
}

.eob-bs-error {
    color: #f87171;
    font-size: 13px;
    margin: 6px 0 0;
}

/* Availability days grid */
.eob-bs-days-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.eob-bs-day-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-3, #141420);
    border: 1px solid var(--border, rgba(255,255,255,0.07));
    border-radius: 8px;
    box-sizing: border-box;
}

.eob-bs-day-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-2, #a09d96);
    cursor: pointer;
    min-width: 110px;
    flex-shrink: 0;
}

.eob-bs-day-windows {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eob-bs-window-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eob-bs-window-row input[type="time"] {
    background: var(--bg-2, #0f0f17);
    border: 1px solid var(--border-lit, rgba(255,255,255,0.14));
    border-radius: 6px;
    padding: 6px 8px;
    color: var(--text, #f0ece3);
    font-size: 13px;
    width: 110px;
}

.eob-bs-window-row span {
    font-size: 12px;
    color: var(--text-3, #6b6864);
}

.eob-bs-remove-win {
    all: unset;
    cursor: pointer;
    color: var(--text-3, #6b6864);
    font-size: 14px;
    transition: color 0.15s;
    padding: 4px;
}

.eob-bs-remove-win:hover { color: #f87171; }

.eob-bs-add-win {
    align-self: flex-start;
    margin-top: 2px;
}

/* Responsive */
@media (max-width: 500px) {
    .eob-bs-row { flex-direction: column; }
    .eob-bs-toggle-label { padding-top: 0; }
    .eob-bw-date-tabs { gap: 6px; }
    .eob-bw-date-tab { font-size: 12px; padding: 5px 10px; }
}
