/* Shared chrome for the two booking-page landing screens:
   /booking-pages/new (personal) and /booking-pages/new/team.

   Everything here is used by BOTH templates -- the hero, the product preview
   mock, the benefit rows, and the form/button/connect primitives around them.
   Rules that only the multi-step wizard needs stay inline in
   event_type_setup.html; anything that lands in both belongs here rather than
   being forked into a second ~200-line <style> block. */

/* ===== Base ===== */
.wizard-container {
    width: 100%; max-width: 560px; margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
@media (max-width: 640px) {
    .wizard-container { padding: 0 4px; }
}


/* ===== Step 0 landing ===== */
.setup-hero { text-align: center; margin: 4px auto 24px; max-width: 500px; }
.setup-hero-title {
    font-size: 2rem; font-weight: 700; color: #111; letter-spacing: -0.04em;
    line-height: 1.08; margin: 0 0 10px;
}
.setup-hero-copy { max-width: 440px; margin: 0 auto; color: #6b7280; font-size: 0.95rem; line-height: 1.55; }

/* One composed product preview. Motion is limited to real UI state changes:
   a selected time and a confirmation appearing in their own reserved space. */
.setup-preview {
    margin-bottom: 20px; overflow: hidden; background: #fff;
    border: 1.5px solid #e5e7eb; border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.setup-preview-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(190px, 0.95fr); }
.setup-preview-profile { padding: 22px; border-right: 1px solid #eef0f2; }
.setup-preview-avatar {
    width: 52px; height: 52px; margin-bottom: 12px; overflow: hidden;
    border-radius: 50%; background: #f3f4f6;
}
.setup-preview-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.setup-preview-name { margin: 0; color: #111; font-size: 0.95rem; font-weight: 700; }
.setup-preview-bio { margin: 3px 0 14px; color: #9ca3af; font-size: 0.7rem; line-height: 1.45; }
.setup-preview-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-radius: 9px; background: #111; }
.setup-preview-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.setup-preview-play {
    position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%);
    display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    border-radius: 50%; background: rgba(255,255,255,0.94); color: #111;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.setup-preview-play svg { width: 12px; height: 12px; margin-left: 2px; fill: currentColor; }
.setup-preview-caption { margin: 7px 0 0; color: #6b7280; font-size: 0.66rem; }
.setup-preview-type { margin-bottom: 18px; }
.setup-preview-type strong { display: block; color: #111; font-size: 0.78rem; }
.setup-preview-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 5px; color: #6b7280; font-size: 0.65rem; }
.setup-preview-meta svg { width: 11px; height: 11px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.setup-preview-calendar { padding: 22px; }
.setup-preview-month { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.setup-preview-month strong { color: #111; font-size: 0.78rem; }
.setup-preview-month span { color: #9ca3af; font-size: 0.62rem; }
.setup-preview-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 12px; }
.setup-preview-day { padding: 4px 0; border-radius: 5px; color: #9ca3af; font-size: 0.62rem; text-align: center; }
.setup-preview-day.available { color: #374151; background: #f3f4f6; }
.setup-preview-day.selected { color: #fff; background: #111; font-weight: 700; }
.setup-preview-slots { display: grid; gap: 6px; }
.setup-preview-slot { padding: 6px; border: 1px solid #e5e7eb; border-radius: 7px; color: #374151; font-size: 0.68rem; text-align: center; }
.setup-preview-slot.selected { animation: setupSlotSelect 7s ease-in-out infinite; }
@keyframes setupSlotSelect {
    0%, 18%, 100% { color: #374151; border-color: #e5e7eb; background: #fff; }
    30%, 82% { color: #fff; border-color: #111; background: #111; }
}

.setup-section-head { margin: 34px 0 8px; text-align: center; }
.setup-section-head h2 { margin: 0 0 6px; color: #111; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em; }
.setup-section-head p { margin: 0 auto; max-width: 430px; color: #6b7280; font-size: 0.82rem; line-height: 1.5; }
.setup-benefit-list { display: grid; margin: 0 0 24px; }
.setup-benefit-row {
    display: flex; align-items: center; gap: 14px; padding: 14px 0;
    background: #fff; border-bottom: 1px solid #f3f4f6;
}
.setup-benefit-row:last-child { border-bottom: 0; }
.setup-benefit-icon {
    display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    border-radius: 8px; background: #f3f4f6; color: #111; flex-shrink: 0;
}
.setup-benefit-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.setup-benefit-copy h3 { margin: 0; color: #111; font-size: 0.85rem; font-weight: 600; }
.setup-benefit-copy p { margin: 2px 0 0; color: #6b7280; font-size: 0.78rem; line-height: 1.45; }

@media (max-width: 520px) {
    .setup-hero-title { font-size: 1.8rem; }
    .setup-preview-body { grid-template-columns: 1fr; }
    .setup-preview-profile { border-right: 0; border-bottom: 1px solid #eef0f2; }
    .setup-preview-profile, .setup-preview-calendar { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .setup-preview-slot.selected { animation: none; }
    .setup-preview-slot.selected { color: #fff; border-color: #111; background: #111; }
}


/* ===== Form controls ===== */
.field-label { display: block; font-size: 0.8rem; font-weight: 600; color: #374151; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.03em; }
.field-input {
    width: 100%; padding: 10px 14px; border: 1.5px solid #e5e7eb; border-radius: 10px;
    font-size: 0.9rem; outline: none; transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff; color: #111;
}
.field-input:focus { border-color: #000; box-shadow: 0 0 0 3px rgba(0,0,0,0.06); }
.field-input::placeholder { color: #9ca3af; }
select.field-input { cursor: pointer; }

.field-hint { font-size: 0.78rem; color: #9ca3af; margin-top: 4px; }

/* ===== Buttons ===== */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; background: #000; color: #fff; border: none;
    border-radius: 10px; font-size: 0.9rem; font-weight: 600;
    cursor: pointer; transition: all 0.15s; min-width: 140px;
}
.btn-primary:hover { background: #1a1a1a; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; background: #fff; color: #374151; border: 1.5px solid #e5e7eb;
    border-radius: 10px; font-size: 0.9rem; font-weight: 500;
    cursor: pointer; transition: all 0.15s;
}
.btn-secondary:hover { border-color: #9ca3af; background: #f9fafb; }


/* ===== Calendar connect prompt ===== */
.connect-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; border: 1.5px solid #e5e7eb; border-radius: 10px;
    text-decoration: none; color: #374151; font-size: 0.9rem; font-weight: 500;
    transition: all 0.15s;
}
.connect-card:hover { border-color: #9ca3af; background: #f9fafb; }
.connect-card img { width: 20px; height: 20px; flex-shrink: 0; }

/* ===== Error ===== */
.form-error {
    display: none; padding: 10px 14px; background: #fef2f2; border: 1px solid #fecaca;
    border-radius: 8px; color: #dc2626; font-size: 0.85rem; margin-bottom: 1rem;
    /* describeApiError joins one line per rejected field; without this they
       run together into a single unreadable sentence. */
    white-space: pre-line;
}
.form-error.show { display: block; }

/* ===== For me / For my team ===== */
.setup-audience {
    display: flex; gap: 4px; width: fit-content; margin: 0 auto 22px;
    padding: 4px; border: 1.5px solid #e5e7eb; border-radius: 999px; background: #f9fafb;
}
.setup-audience-option {
    padding: 7px 18px; border-radius: 999px; color: #6b7280;
    font-size: 0.82rem; font-weight: 600; text-decoration: none;
    transition: color 0.15s, background 0.15s;
}
.setup-audience-option:hover { color: #111; }
.setup-audience-option.selected { color: #fff; background: #111; }

/* ===== Team landing extras ===== */

/* The team preview mirrors the REAL booking page (templates/event_type.html):
   a 38% info panel on #fafafa, then the date step. Scoped under .book so the
   personal landing's composite mock keeps the layout it shipped with. */
.setup-preview.book .setup-preview-body { grid-template-columns: 38% minmax(0, 1fr); }
.setup-book-info { padding: 22px; background: #fafafa; border-right: 1px solid #f3f4f6; }
.setup-book-eyebrow { margin: 0 0 4px; color: #6b7280; font-size: 0.72rem; }
.setup-book-title { margin: 0 0 12px; color: #111; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.setup-book-meta {
    display: flex; align-items: center; gap: 7px; margin: 0 0 6px;
    color: #6b7280; font-size: 0.72rem;
}
.setup-book-meta svg { width: 12px; height: 12px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; }
.setup-book-steps { padding: 22px; }
.setup-book-heading { margin: 0 0 12px; color: #111; font-size: 0.82rem; font-weight: 600; }
/* Weekday header row, uppercase and muted like the live calendar. */
.setup-preview-day.dow { color: #9ca3af; font-size: 0.58rem; font-weight: 600; text-transform: uppercase; }
/* Days outside the shown month read as absent, not merely unavailable. */
.setup-preview-day.out { color: #e5e7eb; }

/* ===== URL preview =====
   One continuous field: a muted prefix and a transparent inline input, so what
   you type reads as the actual URL rather than a label sitting next to a box.
   Shared with the wizard's "Your booking URL" step -- same control, one copy. */
.url-box {
    display: flex; align-items: center; gap: 0;
    background: #f9fafb; border: 1.5px solid #e5e7eb; border-radius: 10px;
    overflow: hidden; font-size: 0.85rem; margin-top: 6px;
}
.url-prefix {
    padding: 10px 0 10px 14px; color: #9ca3af; white-space: nowrap;
    font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.8rem;
}
.url-editable {
    flex: 1; border: none; background: transparent; padding: 10px 14px 10px 0;
    font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.8rem;
    color: #111; outline: none;
}
@media (max-width: 520px) {
    .setup-preview.book .setup-preview-body { grid-template-columns: 1fr; }
    .setup-book-info { border-right: 0; border-bottom: 1px solid #f3f4f6; }
}
