/* ═══════════════════════════════════════════════════════════════
   termin-book.css — Call booking page
   Design: minimal, monochrome + orange CTA, two-column layout
   ═══════════════════════════════════════════════════════════════ */

/* ── Page wrapper ──────────────────────────────────────────────── */
.tb-wrap {
    display: flex;
    min-height: calc(100vh - 64px);
    background: #f7f7f7;
}

/* ── LEFT PANEL — brand & event info ──────────────────────────── */
.tb-left {
    flex: 0 0 340px;
    background: #0f0f0f;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 48px 36px 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
    scrollbar-width: none;
}
.tb-left::-webkit-scrollbar { display: none; }

.tb-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}
.tb-brand-mark {
    width: 34px;
    height: 34px;
    background: #e06400;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tb-brand-mark svg { display: block; }
.tb-brand-name {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
}

.tb-divider {
    width: 32px;
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 0 0 32px;
}

.tb-event-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #e06400;
    margin: 0 0 10px;
}
.tb-event-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin: 0 0 28px;
}

.tb-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}
.tb-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}
.tb-meta-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #e06400;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tb-meta-icon svg { display: block; width: 15px; height: 15px; }
.tb-meta-text {
    font-size: 13px;
    color: rgba(255,255,255,0.72);
    line-height: 1.5;
}
.tb-meta-text strong {
    font-weight: 700;
    color: rgba(255,255,255,0.9);
}

.tb-desc {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin: 0 0 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
}

.tb-note {
    margin-top: auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
}
.tb-note-icon {
    width: 16px; height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    color: rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
}
.tb-note-icon svg { display: block; width: 14px; height: 14px; }
.tb-note-text {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    line-height: 1.6;
}

/* ── RIGHT PANEL — booking flow ───────────────────────────────── */
.tb-right {
    flex: 1;
    min-width: 0;
    padding: 48px 56px 72px;
    display: flex;
    flex-direction: column;
}

/* ── Step indicator ───────────────────────────────────────────── */
.tb-steps {
    display: flex;
    align-items: center;
    margin-bottom: 36px;
    gap: 0;
}
.tb-step {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.3;
    transition: opacity 0.22s;
    cursor: default;
}
.tb-step.active { opacity: 1; }
.tb-step.done   { opacity: 0.55; cursor: pointer; }
.tb-step-num {
    width: 26px; height: 26px;
    border: 2px solid #111;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 800;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.tb-step.active .tb-step-num {
    background: #e06400; border-color: #e06400; color: #fff;
}
.tb-step.done .tb-step-num {
    background: #111; border-color: #111; color: #fff;
}
.tb-step-lbl {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #111;
}
.tb-step-sep {
    flex: 1;
    min-width: 24px;
    height: 1px;
    background: #ddd;
    margin: 0 10px;
}
.tb-step-sep.done { background: #111; }

/* ── Card shell (each step panel) ────────────────────────────── */
.tb-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    animation: tb-fadein 0.22s ease;
}
@keyframes tb-fadein {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tb-card-head {
    padding: 28px 32px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 0;
}
.tb-card-head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
}
.tb-card-title {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    margin: 0;
}
.tb-card-subtitle {
    font-size: 12px;
    color: #999;
    margin: 4px 0 0;
}
.tb-card-body { padding: 28px 32px 32px; }

/* ── Back button ─────────────────────────────────────────────── */
.tb-back-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s;
}
.tb-back-btn:hover { color: #111; }
.tb-back-btn svg { width: 13px; height: 13px; }

/* ── Selected slot badge ─────────────────────────────────────── */
.tb-slot-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #f7f7f7;
    border: 1px solid #e8e8e8;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #111;
}
.tb-slot-badge-sep {
    width: 1px; height: 14px; background: #ddd;
}

/* ── Calendar nav ────────────────────────────────────────────── */
.tb-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.tb-cal-nav-btn {
    background: none;
    border: 1px solid #e0e0e0;
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #555;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.tb-cal-nav-btn:hover:not(:disabled) { border-color: #111; color: #111; }
.tb-cal-nav-btn:disabled { opacity: 0.25; cursor: default; }
.tb-cal-nav-btn svg { width: 14px; height: 14px; }
.tb-cal-month-lbl {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    letter-spacing: 0.02em;
    text-transform: capitalize;
}

/* ── Weekday header ──────────────────────────────────────────── */
.tb-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #111;
    margin-bottom: 0;
}
.tb-cal-weekdays span {
    padding: 7px 0;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

/* ── Day grid ────────────────────────────────────────────────── */
.tb-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-left: 1px solid #eeeeee;
    border-top: 1px solid #eeeeee;
    min-height: 220px;
    position: relative;
}
.tb-cal-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px;
}

/* ── Spinner ─────────────────────────────────────────────────── */
.tb-spinner {
    width: 22px; height: 22px;
    border: 2px solid #e8e8e8;
    border-top-color: #e06400;
    border-radius: 50%;
    animation: tb-spin 0.7s linear infinite;
    display: inline-block;
}
.tb-spinner-sm { width: 15px; height: 15px; }
@keyframes tb-spin { to { transform: rotate(360deg); } }

/* ── Day cells ───────────────────────────────────────────────── */
.tb-day {
    border-right: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    min-height: 66px;
    padding: 8px 8px 6px;
    position: relative;
    cursor: default;
    transition: background 0.12s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.tb-day-num {
    font-size: 12px;
    font-weight: 700;
    color: #cccccc;
    line-height: 1;
}
.tb-day.tb-other-month { background: #fafafa; }
.tb-day.tb-past        { background: #fafafa; opacity: 0.45; pointer-events: none; }

/* Available day */
.tb-day.tb-has-slots { cursor: pointer; }
.tb-day.tb-has-slots .tb-day-num { color: #111; }
.tb-day.tb-has-slots:hover { background: #fff5ed; }

/* Today */
.tb-day.tb-today .tb-day-num {
    color: #e06400;
    position: relative;
}

/* Selected */
.tb-day.tb-selected             { background: #e06400 !important; }
.tb-day.tb-selected .tb-day-num { color: #fff; }
.tb-day.tb-selected .tb-dot     { background: rgba(255,255,255,0.45); }

/* Availability dot */
.tb-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #e06400;
    margin-top: auto;
    margin-bottom: 2px;
    flex-shrink: 0;
}

/* ── Time slot grid ──────────────────────────────────────────── */
.tb-time-hint {
    font-size: 12px;
    color: #999;
    margin: 0 0 20px;
    line-height: 1.5;
}
.tb-time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
}
.tb-slot-btn {
    border: 1px solid #e0e0e0;
    background: #fff;
    padding: 14px 8px 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.tb-slot-btn:hover {
    border-color: #e06400;
    background: #fff8f2;
}
.tb-slot-btn.selected {
    border-color: #e06400;
    background: #e06400;
    color: #fff;
}
.tb-slot-time {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
}
.tb-slot-dur {
    font-size: 10px;
    color: #bbb;
    margin-top: 3px;
    font-weight: 600;
}
.tb-slot-btn.selected .tb-slot-dur { color: rgba(255,255,255,0.6); }
.tb-slot-empty {
    font-size: 13px;
    color: #bbb;
    padding: 16px 0;
    grid-column: 1 / -1;
}

/* ── Booking form ────────────────────────────────────────────── */
.tb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
    margin-bottom: 24px;
}
.tb-field { display: flex; flex-direction: column; gap: 6px; }
.tb-field--full { grid-column: 1 / -1; }
.tb-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #777;
}
.tb-req { color: #e06400; margin-left: 1px; }
.tb-input {
    border: 1px solid #ddd;
    background: #fff;
    padding: 11px 14px;
    font-size: 14px;
    color: #111;
    outline: none;
    font-family: inherit;
    border-radius: 0;
    -webkit-appearance: none;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}
.tb-input:focus { border-color: #111; }
.tb-input::placeholder { color: #ccc; }
.tb-form-error {
    background: #fff2f2;
    border-left: 3px solid #e00;
    padding: 10px 14px;
    font-size: 13px;
    color: #c00;
    margin-bottom: 20px;
    line-height: 1.5;
}
.tb-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e06400;
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s;
    font-family: inherit;
}
.tb-submit:hover   { background: #c85a00; }
.tb-submit:disabled { background: #ccc; cursor: default; }
.tb-form-note {
    font-size: 12px;
    color: #bbb;
    margin: 14px 0 0;
    line-height: 1.6;
}

/* ── Confirmation ────────────────────────────────────────────── */
.tb-conf {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0 8px;
}
.tb-conf-check {
    width: 52px; height: 52px;
    background: #f0faf3;
    border: 1px solid #c3e6cb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}
.tb-conf-check svg { color: #1a8c3f; }
.tb-conf-title {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    margin: 0 0 10px;
}
.tb-conf-lead {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 380px;
}
.tb-conf-card {
    border: 1px solid #e8e8e8;
    background: #fafafa;
    padding: 18px 28px;
    text-align: left;
    min-width: 240px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tb-conf-card-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #111;
}
.tb-conf-card-row svg { flex-shrink: 0; margin-top: 1px; color: #e06400; }
.tb-conf-note {
    font-size: 11px;
    color: #bbb;
    margin: 0 0 28px;
    line-height: 1.6;
}
.tb-conf-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid #ddd;
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #555;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    font-family: inherit;
}
.tb-conf-home:hover { border-color: #111; color: #111; }
.tb-conf-home svg { width: 13px; height: 13px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .tb-left   { flex: 0 0 280px; padding: 40px 28px 32px; }
    .tb-right  { padding: 40px 36px 60px; }
    .tb-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .tb-wrap   { flex-direction: column; }
    .tb-left   {
        flex: none;
        position: static;
        height: auto;
        padding: 32px 20px 28px;
    }
    .tb-right  { padding: 28px 16px 56px; }
    .tb-steps  { gap: 0; }
    .tb-step-lbl { display: none; }
    .tb-card-head, .tb-card-body { padding-left: 18px; padding-right: 18px; }
    .tb-time-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
    .tb-cal-grid  { min-height: 180px; }
    .tb-day       { min-height: 48px; padding: 5px 5px 4px; }
    .tb-day-num   { font-size: 11px; }
}

/* The topic field on step 3: same skin as the inputs, grows with the text. */
.tb-textarea { resize: vertical; min-height: 84px; line-height: 1.45; }

/* ══ Invite mode ═══════════════════════════════════════════════════
   The page a checkout recovery letter links to. The left panel answers
   "what is this call about" with the customer's own booking instead of
   the generic pitch, and the right side is a calendar and nothing else:
   every field the /termin form asks for is already on the case, so the
   click on a time is the booking.                                    */

.tb-invite-about {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 22px;
    margin-bottom: 26px;
}
.tb-invite-about-label {
    font-size: 11px;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin: 0 0 8px;
}
.tb-invite-tour {
    font-size: 15px;
    line-height: 1.45;
    color: #fff;
    font-weight: 600;
    margin: 0 0 6px;
}
.tb-invite-tour a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tb-invite-tour a:hover { color: #FF6A00; }
.tb-invite-facts {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tb-invite-dot { color: rgba(255,255,255,0.25); }

.tb-invite-who {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 22px;
    margin-bottom: 26px;
}
.tb-invite-who-label {
    font-size: 11px;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin: 0 0 8px;
}
.tb-invite-who-line {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}
.tb-invite-who-line strong { color: #fff; font-weight: 600; }
.tb-invite-edit {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: 12px;
    color: #FF6A00;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.tb-invite-phone-edit { margin-top: 12px; }
.tb-invite-phone-edit .tb-label {
    display: block;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 6px;
}
.tb-invite-phone-edit .tb-input--error { border-color: #e00; }
.tb-invite-phone-actions { display: flex; gap: 10px; margin-top: 10px; }
.tb-invite-save,
.tb-invite-cancel {
    font: inherit;
    font-size: 12px;
    padding: 7px 14px;
    cursor: pointer;
    border-radius: 0;
    border: 1px solid transparent;
}
.tb-invite-save { background: #FF6A00; color: #fff; }
.tb-invite-save:hover { background: #e05e00; }
.tb-invite-cancel {
    background: transparent;
    color: rgba(255,255,255,0.55);
    border-color: rgba(255,255,255,0.2);
}
.tb-invite-cancel:hover { color: #fff; border-color: rgba(255,255,255,0.45); }

/* Booking happens on the click, so the pressed slot has to say so. */
.tb-slot-btn.is-booking { opacity: .55; pointer-events: none; }
.tb-slot-btn:disabled   { opacity: .4; cursor: default; }

/* The expired-link page: one card, centred, no side panel. */
.tb-wrap--single {
    align-items: flex-start;
    justify-content: center;
    padding: 64px 20px;
}
.tb-card--standalone { max-width: 520px; width: 100%; }
