/* ZAAX booking page. Palette sampled from zaax.com. */

:root {
    --blue: #28648d;
    --blue-hover: #215578;
    --blue-tint: #e8f0f6;
    --blue-ring: rgba(40, 100, 141, .35);
    --navy: #0c1427;
    --text: #0c1427;
    --muted: #5b6272;
    --placeholder: #82868d;
    --page: #f2f4f6;
    --header: #f8f8fa;
    --band: #f7f9fb;
    --card: #ffffff;
    --input: #f8f7f4;
    --border: #e3e8ef;
    --grid: #e8ecf1;
    --danger: #b42318;
    --danger-bg: #fef3f2;
    --ok: #067647;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--page);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, fieldset, dl, dd { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- header and intro ---------- */

.site-header { background: var(--header); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 26px; letter-spacing: -.02em; color: var(--blue); text-decoration: none; }
.back { color: #45464c; font-weight: 500; font-size: 15px; text-decoration: none; }
.back:hover { color: var(--blue); }

.band {
    background-color: var(--band);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 56px 56px;
    border-bottom: 1px solid var(--border);
}
.intro { text-align: center; padding: 30px 24px 28px; }
.pill {
    display: inline-block;
    padding: 5px 14px;
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.intro h1 { margin-top: 14px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; }
.accent { color: var(--blue); }
.intro p { max-width: 620px; margin: 10px auto 0; color: #2a3142; font-size: 16px; }

.main { padding-top: 28px; padding-bottom: 56px; }
.notice { padding: 14px 16px; background: var(--danger-bg); border-radius: 12px; color: var(--danger); margin-bottom: 16px; }

/* ---------- card and the three panes ---------- */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 1px 2px rgba(12, 20, 39, .04), 0 12px 32px rgba(12, 20, 39, .05);
    overflow: hidden;
}

.booker { display: grid; grid-template-columns: 280px minmax(0, 1fr) 340px; }
.pane { padding: 28px; min-width: 0; }
.pane + .pane { border-left: 1px solid var(--border); }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.info h2 { margin-top: 6px; font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.info .muted { margin-top: 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.fine { margin-top: 10px; font-size: 12.5px; color: var(--muted); text-align: center; }

.fact { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-weight: 500; }
.fact svg { color: var(--blue); flex: none; }

.field { margin-top: 20px; }
.field label, .field legend {
    display: block;
    margin-bottom: 8px;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
}
.opt { font-weight: 400; color: var(--muted); margin-left: 4px; }

input[type="text"], input[type="email"], textarea, select {
    width: 100%;
    padding: 12px 14px;
    background: var(--input);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 84px; }
::placeholder { color: var(--placeholder); opacity: 1; }
select {
    appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6272' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    text-overflow: ellipsis;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-ring); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }

.err { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--danger); }

/* segmented controls (meeting length, 12h/24h) */

.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--input); border: 1px solid var(--border); border-radius: 12px; }
.seg label, .seg button { position: relative; display: block; margin: 0; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span, .seg button {
    display: block;
    min-width: 72px;
    padding: 8px 16px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: var(--muted);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.seg input:checked + span, .seg button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.seg input:focus-visible + span, .seg button:focus-visible { outline: 3px solid var(--blue-ring); outline-offset: 1px; }
.seg-small span, .seg-small button { min-width: 0; padding: 8px 14px; min-height: 36px; font-size: 13px; }

/* calendar */

.pick-head { display: flex; align-items: center; justify-content: space-between; }
.pick-head h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.nav { display: flex; gap: 6px; }
.icon-btn {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border: 1px solid var(--border); border-radius: 10px;
    background: #fff; color: var(--text); cursor: pointer;
}
.icon-btn:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.icon-btn:disabled { opacity: .4; cursor: default; }
.icon-btn:focus-visible { outline: 3px solid var(--blue-ring); outline-offset: 1px; }

.dow, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dow { margin-top: 16px; margin-bottom: 8px; }
.dow span { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.day {
    position: relative;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 15px;
    color: #a2a8b4;
    cursor: default;
}
.day.avail { background: var(--blue-tint); color: var(--blue); font-weight: 700; cursor: pointer; }
.day.avail:hover { background: #d8e6f0; }
.day.sel, .day.sel:hover { background: var(--blue); color: #fff; }
.day.today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.day:focus-visible { outline: 3px solid var(--blue-ring); outline-offset: 1px; }

/* time slots */

.slots-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.slots-head h3 { font-size: 16px; font-weight: 700; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 14px; }
.slot {
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}
.slot:hover { border-color: var(--blue); color: var(--blue); }
.slot[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.slot:focus-visible { outline: 3px solid var(--blue-ring); outline-offset: 1px; }
.slots-empty { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
#slotsNote { margin-top: 12px; }

/* details form */

.details h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.summary {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px dashed #c7d0db;
    border-radius: 12px;
    color: var(--muted);
    font-size: 14px;
}
.summary.set { border: 1px solid #c3d6e4; background: var(--blue-tint); color: var(--navy); }
.summary strong { display: block; font-size: 15px; }
.summary span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }

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

#turnstile { margin-top: 16px; }
#turnstile:empty { margin: 0; }

.status { margin-top: 16px; padding: 11px 14px; border-radius: 12px; font-size: 14px; font-weight: 500; background: var(--blue-tint); color: var(--navy); }
.status.error { background: var(--danger-bg); color: var(--danger); }

.btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    padding: 14px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.btn:hover:not(:disabled) { background: var(--blue-hover); }
.btn:disabled { opacity: .65; cursor: progress; }
.btn:focus-visible { outline: 3px solid var(--blue-ring); outline-offset: 2px; }

.details.disabled input, .details.disabled textarea, .details.disabled .btn { opacity: .55; pointer-events: none; }

/* loading */

.skeleton { background: linear-gradient(90deg, #eef1f4, #f6f8fa, #eef1f4); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.day.skeleton { height: 42px; }

/* confirmation */

.done { padding: 56px 28px 60px; max-width: 560px; margin: 0 auto; text-align: center; outline: none; }
.tick { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #ecfdf3; color: var(--ok); }
.done h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.done .muted { margin-top: 8px; }
.facts { margin: 26px 0 18px; padding: 6px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--input); text-align: left; }
.facts div { display: flex; gap: 16px; padding: 12px 0; }
.facts div + div { border-top: 1px solid var(--border); }
.facts dt { flex: none; width: 64px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.facts dd { min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.facts a { color: var(--blue); font-weight: 600; }
.link { display: inline-block; margin-top: 18px; color: var(--blue); font-weight: 600; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
    .booker { grid-template-columns: 280px minmax(0, 1fr); }
    .details { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--border); }
}

@media (max-width: 760px) {
    .wrap { padding: 0 16px; }
    .bar { height: 56px; }
    .brand { font-size: 22px; }
    .intro { padding: 22px 16px 20px; }
    .intro p { font-size: 15px; }
    .main { padding-top: 18px; padding-bottom: 36px; }
    .card { border-radius: 20px; }
    .booker { grid-template-columns: minmax(0, 1fr); }
    .pane { padding: 22px 18px; }
    .pane + .pane { border-left: 0; border-top: 1px solid var(--border); }
    .dow, .days { gap: 4px; }
    .slots { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
    .done { padding: 40px 18px 44px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* Privacy and terms pages */
.legal { max-width: 760px; padding-top: 40px; padding-bottom: 56px; line-height: 1.65; }
.legal h1 { font-size: 34px; letter-spacing: -0.02em; margin: 0 0 6px; }
.legal h2 { font-size: 19px; margin: 32px 0 8px; }
.legal p, .legal li { font-size: 15.5px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--blue); }
.site-footer { border-top: 1px solid #e3e6ea; padding: 22px 0 34px; font-size: 14px; color: #5b6572; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.fine a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal .muted { margin: 0 0 22px; }
