/* Public booking — standalone, iframe-safe, Workset branded. */

:root {
    --wsb-primary: #04166c;
    --wsb-primary-hover: #030d4a;
    --wsb-primary-soft: rgba(4, 22, 108, 0.08);
    --wsb-primary-mid: rgba(4, 22, 108, 0.16);
    --wsb-bg: #f3f6fb;
    --wsb-surface: #ffffff;
    --wsb-text: #12203a;
    --wsb-muted: #5b6780;
    --wsb-line: #e6eaf2;
    --wsb-line-strong: #d7dde8;
    --wsb-danger: #b42318;
    --wsb-danger-bg: #fef3f2;
    --wsb-danger-line: #f5c2c0;
    --wsb-info: #3548a5;
    --wsb-info-bg: #eef2ff;
    --wsb-info-line: #c7d2fe;
    --wsb-radius: 16px;
    --wsb-radius-sm: 10px;
    --wsb-shadow: 0 10px 40px rgba(15, 23, 42, 0.06);
    --wsb-ease: 160ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 0;
    overflow-x: hidden;
    background: var(--wsb-bg);
    color: var(--wsb-text);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

html {
    background: var(--wsb-bg);
}

.wsb {
    min-height: 0;
}

.wsb-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 28px 20px 24px;
}

.wsb-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 20px;
    text-decoration: none;
    color: var(--wsb-primary);
}

.wsb-logo img {
    display: block;
    max-height: 32px;
    max-width: 220px;
    width: auto;
}

.wsb-wordmark {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.wsb-card {
    background: var(--wsb-surface);
    border: 1px solid var(--wsb-line);
    border-radius: var(--wsb-radius);
    box-shadow: var(--wsb-shadow);
    padding: 32px;
}

.wsb-hero {
    margin-bottom: 28px;
}

.wsb-hero h1 {
    margin: 0 0 8px;
    font-size: 1.7rem;
    font-weight: 650;
    letter-spacing: -0.04em;
    color: #0d1728;
    line-height: 1.2;
}

.wsb-lead {
    margin: 0;
    color: var(--wsb-muted);
    line-height: 1.55;
    font-size: 0.98rem;
    max-width: 42rem;
}

.wsb-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.wsb-fact {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--wsb-line);
    border-radius: 12px;
    background: #f8f9fd;
}

.wsb-fact-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wsb-fact-label {
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--wsb-muted);
}

.wsb-fact-value {
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--wsb-text);
    letter-spacing: -0.02em;
}

.wsb-fact-help {
    margin-top: 2px;
    font-size: 0.82rem;
    line-height: 1.4;
    font-weight: 450;
    color: var(--wsb-muted);
}

.wsb-facts--compact {
    margin-top: 10px;
    gap: 16px 24px;
}

.wsb-facts--compact .wsb-fact {
    padding: 0;
    border: 0;
    background: transparent;
}

.wsb-facts svg,
.wsb-done-meet svg {
    flex: 0 0 auto;
    margin-top: 2px;
}

.wsb-mark--clock {
    width: 24px;
    height: 24px;
    display: block;
    border-radius: 6px;
}

.wsb-mark--meet {
    width: 24px;
    height: 20px;
    display: block;
}

.wsb-split {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(260px, 1.05fr);
    gap: 0 32px;
    align-items: start;
}

.wsb-cal-head,
.wsb-times-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 36px;
    margin-bottom: 12px;
}

.wsb-cal-head h2,
.wsb-times-head h2 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.wsb-cal-head h2 {
    flex: 1;
    text-align: center;
}

.wsb-times-sub {
    margin: 0 0 12px;
    color: var(--wsb-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.wsb-nav {
    width: 32px;
    height: 32px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--wsb-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--wsb-ease), border-color var(--wsb-ease);
}

.wsb-nav svg {
    width: 16px;
    height: 16px;
}

.wsb-nav:hover,
.wsb-nav:focus-visible {
    background: var(--wsb-primary-soft);
    border-color: var(--wsb-primary-mid);
}

.wsb-nav:focus-visible {
    outline: 2px solid var(--wsb-primary);
    outline-offset: 2px;
}

.wsb-nav:disabled {
    opacity: 0.28;
    cursor: default;
    background: transparent;
    border-color: transparent;
}

.wsb-weekdays,
.wsb-dates {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
    overflow: hidden;
}

.wsb-weekdays span {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8b95a8;
    padding: 0 0 8px;
}

.wsb-day {
    appearance: none;
    -webkit-appearance: none;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--wsb-text);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

button.wsb-day {
    cursor: pointer;
    transition: background var(--wsb-ease), color var(--wsb-ease), box-shadow var(--wsb-ease);
}

button.wsb-day:hover {
    background: var(--wsb-primary-soft);
}

button.wsb-day:focus-visible {
    outline: 2px solid var(--wsb-primary);
    outline-offset: 2px;
}

.wsb-day.is-selected {
    background: var(--wsb-primary);
    color: #fff;
}

.wsb-day.is-selected:hover {
    background: var(--wsb-primary-hover);
    color: #fff;
}

.wsb-day.is-muted,
.wsb-day.is-pad {
    color: #c5cad6;
    font-weight: 500;
    cursor: default;
}

.wsb-day.is-today::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 5px;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: var(--wsb-primary);
}

.wsb-day.is-selected.is-today::after {
    background: #fff;
}

.wsb-cal {
    position: relative;
}

.wsb-cal.is-loading .wsb-dates {
    opacity: 0.55;
}

.wsb-preview-banner {
    text-align: center;
    margin: 0 auto 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--wsb-primary);
    font-size: 0.82rem;
    font-weight: 650;
    max-width: 20rem;
}

.wsb-help {
    display: block;
    margin-top: 6px;
    color: var(--wsb-muted);
    font-size: 0.78rem;
}

.wsb-other {
    width: 100%;
    margin-top: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--wsb-line-strong);
    border-radius: var(--wsb-radius-sm);
    font: inherit;
}

.wsb-field--check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wsb-times {
    border-left: 1px solid var(--wsb-line);
    padding-left: 32px;
    min-width: 0;
}

.wsb-slots {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.wsb-slot {
    appearance: none;
    -webkit-appearance: none;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--wsb-line-strong);
    border-radius: var(--wsb-radius-sm);
    background: #fff;
    color: var(--wsb-text);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background var(--wsb-ease), border-color var(--wsb-ease), color var(--wsb-ease);
}

.wsb-slot:hover {
    background: var(--wsb-primary-soft);
    border-color: var(--wsb-primary);
    color: var(--wsb-primary);
}

.wsb-slot:focus-visible {
    outline: 2px solid var(--wsb-primary);
    outline-offset: 2px;
}

.wsb-slot.is-selected {
    background: var(--wsb-primary);
    border-color: var(--wsb-primary);
    color: #fff;
}

.wsb-status {
    margin: 0;
    color: var(--wsb-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.wsb-status.is-error {
    color: var(--wsb-danger);
}

.wsb-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.wsb-alert svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 1px;
}

.wsb-alert--error {
    background: var(--wsb-danger-bg);
    border: 1px solid var(--wsb-danger-line);
    color: #7a271a;
}

.wsb-alert--info {
    background: var(--wsb-info-bg);
    border: 1px solid var(--wsb-info-line);
    color: var(--wsb-info);
}

.wsb-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: none;
    color: var(--wsb-primary);
    padding: 0;
    margin: 0 0 18px;
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
}

.wsb-back svg {
    width: 16px;
    height: 16px;
}

.wsb-back:hover {
    text-decoration: underline;
}

.wsb-back:focus-visible {
    outline: 2px solid var(--wsb-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.wsb-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 24px;
    padding: 14px 16px;
    border: 1px solid var(--wsb-line);
    border-radius: 12px;
    background: #f8f9fd;
}

.wsb-summary-main {
    min-width: 0;
    flex: 1 1 220px;
}

.wsb-summary strong,
.wsb-host-name {
    display: block;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    color: var(--wsb-text);
}

.wsb-summary .wsb-facts {
    width: 100%;
}

.wsb-host {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.wsb-host[hidden] {
    display: none;
}

.wsb-host-photo {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--wsb-primary-soft);
    color: var(--wsb-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    overflow: hidden;
    flex: 0 0 auto;
}

.wsb-host-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wsb-host-text {
    min-width: 0;
}

.wsb-host-label {
    display: block;
    color: var(--wsb-muted);
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.wsb-host--done {
    justify-content: center;
    margin: 0 0 16px;
}

.wsb-host--done .wsb-host-text {
    text-align: left;
}

.wsb-section + .wsb-section {
    margin-top: 24px;
}

.wsb-section-title {
    margin: 8px 0 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8b95a8;
}

.wsb-fields {
    display: grid;
    gap: 14px;
}

.wsb-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.wsb-field,
.wsb-field--group {
    display: block;
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.wsb-field > span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #3b465c;
}

.wsb-field > input,
.wsb-field > textarea,
.wsb-field > select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--wsb-line-strong);
    border-radius: var(--wsb-radius-sm);
    font: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--wsb-text);
    transition: border-color var(--wsb-ease), box-shadow var(--wsb-ease);
}

.wsb-field > textarea {
    min-height: 88px;
    resize: vertical;
}

.wsb-field > input:hover,
.wsb-field > textarea:hover,
.wsb-field > select:hover {
    border-color: #b8c0d0;
}

.wsb-field > input:focus,
.wsb-field > textarea:focus,
.wsb-field > select:focus {
    outline: none;
    border-color: var(--wsb-primary);
    box-shadow: 0 0 0 3px var(--wsb-primary-soft);
}

.wsb-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.wsb-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 12px 8px 10px;
    border: 1px solid var(--wsb-line-strong);
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 550;
    color: var(--wsb-text);
    transition: background var(--wsb-ease), border-color var(--wsb-ease), color var(--wsb-ease);
    user-select: none;
}

.wsb-pill input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.wsb-pill-check {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #c5cad6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    background: #fff;
    flex: 0 0 auto;
}

.wsb-pill-check svg {
    width: 11px;
    height: 11px;
}

.wsb-pill:hover {
    border-color: var(--wsb-primary);
}

.wsb-pill:has(input:focus-visible) {
    outline: 2px solid var(--wsb-primary);
    outline-offset: 2px;
}

.wsb-pill:has(input:checked),
.wsb-pill.is-checked {
    background: var(--wsb-primary-soft);
    border-color: var(--wsb-primary);
    color: var(--wsb-primary);
}

.wsb-pill:has(input:checked) .wsb-pill-check,
.wsb-pill.is-checked .wsb-pill-check {
    background: var(--wsb-primary);
    border-color: var(--wsb-primary);
    color: #fff;
}

.wsb-submit {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    margin-top: 8px;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    background: var(--wsb-primary);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -0.02em;
    cursor: pointer;
    transition: background var(--wsb-ease), transform 120ms ease;
}

.wsb-submit svg {
    width: 16px;
    height: 16px;
}

.wsb-submit:hover {
    background: var(--wsb-primary-hover);
}

.wsb-submit:active {
    transform: translateY(1px);
}

.wsb-submit:focus-visible {
    outline: 2px solid var(--wsb-primary);
    outline-offset: 3px;
}

.wsb-submit:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.wsb-submit .wsb-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wsb-spin 0.6s linear infinite;
}

.wsb-submit.is-busy .wsb-spinner {
    display: inline-block;
}

.wsb-submit.is-busy .wsb-submit-arrow {
    display: none;
}

@keyframes wsb-spin {
    to { transform: rotate(360deg); }
}

.wsb-alert strong {
    display: block;
    font-weight: 650;
    margin-bottom: 2px;
}

.wsb-alert p {
    margin: 0;
}

.wsb-alert-action {
    display: inline-flex;
    margin-top: 10px;
    border: 0;
    background: none;
    padding: 0;
    color: inherit;
    font: inherit;
    font-weight: 650;
    text-decoration: underline;
    cursor: pointer;
}

.wsb-done {
    text-align: center;
    padding: 12px 8px 4px;
}

.wsb-done-mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--wsb-primary-soft);
    color: var(--wsb-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wsb-done-mark svg {
    width: 28px;
    height: 28px;
}

.wsb-done h1 {
    margin: 0 0 12px;
    font-size: 1.7rem;
    letter-spacing: -0.04em;
}

.wsb-done-when {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 650;
}

.wsb-done-meet {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 28rem;
    margin: 0 0 20px;
    color: var(--wsb-muted);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
}

.wsb-done-note,
.wsb-done-email {
    margin: 0;
    color: var(--wsb-muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

.wsb-done-email strong {
    display: block;
    margin-top: 4px;
    color: var(--wsb-text);
    font-weight: 650;
}

.wsb-done-link {
    display: inline-flex;
    margin-top: 24px;
    color: var(--wsb-primary);
    font-weight: 600;
    text-decoration: none;
}

.wsb-done-link:hover {
    text-decoration: underline;
}

.wsb-trust {
    margin: 20px 0 0;
    text-align: center;
    color: #8b95a8;
    font-size: 0.8rem;
    line-height: 1.5;
}

.wsb-trust p {
    margin: 0;
}

.wsb-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 800px) {
    .wsb-page {
        padding: 16px 12px 20px;
    }

    .wsb-card {
        padding: 22px 18px 20px;
        border-radius: 14px;
    }

    .wsb-hero h1,
    .wsb-done h1 {
        font-size: 1.4rem;
    }

    .wsb-split {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .wsb-times {
        border-left: 0;
        padding-left: 0;
        padding-top: 4px;
        border-top: 1px solid var(--wsb-line);
    }

    .wsb-fields-row {
        grid-template-columns: 1fr;
    }

    .wsb-slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wsb-facts {
        grid-template-columns: 1fr;
    }
}
