:root {
    color-scheme: dark;
    --bg: #11110f;
    --panel: #191917;
    --panel-hover: #22221f;
    --text: #f6f3eb;
    --muted: #a7a49c;
    --line: #34332f;
    --accent: #4d1cc9;
    --accent-soft: #ab98df;
    --accent-contrast: #fff;
    --danger: #ff8e82;
    --radius: 18px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: transparent;
    color: var(--text);
}

button, input { font: inherit; }

.booking-shell {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: clamp(22px, 5vw, 48px);
    overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 2%, rgba(77, 28, 201, .27), transparent 31%),
        var(--bg);
}

.booking-header { margin-bottom: 34px; }

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent-soft);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1, h2 { margin: 0; line-height: 1.06; letter-spacing: -.035em; }
h1 { max-width: 580px; font-size: clamp(32px, 7vw, 54px); }
h2 { font-size: clamp(28px, 5vw, 40px); }
.booking-header > p:last-child, .success > p { color: var(--muted); line-height: 1.55; }
.booking-header > p:last-child { margin: 14px 0 0; }

form { display: grid; gap: 30px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 750;
}
legend span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--accent-soft);
    font-size: 12px;
}

.choice-grid, .contact-grid, .date-duration-row { display: grid; gap: 12px; }
.choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-card { cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-body {
    display: grid;
    gap: 5px;
    min-height: 92px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    transition: border-color .18s, background .18s, transform .18s;
}
.choice-card:hover .choice-body { background: var(--panel-hover); transform: translateY(-1px); }
.choice-card input:checked + .choice-body { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice-card input:focus-visible + .choice-body { outline: 3px solid rgba(77,28,201,.32); outline-offset: 2px; }
.choice-body strong { font-size: 17px; }
.choice-body small { color: var(--muted); line-height: 1.35; }

.date-duration-row { grid-template-columns: minmax(190px, .9fr) minmax(250px, 1.1fr); }
.contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: grid; gap: 8px; min-width: 0; }
.field > span { color: var(--muted); font-size: 13px; font-weight: 650; }
.field input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 13px;
    outline: 0;
    background: var(--panel);
    color: var(--text);
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77,28,201,.18); }
.field input::placeholder { color: #6f6d67; }
.field input[type="date"] { color-scheme: dark; }
.website-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.segment { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.segment label { cursor: pointer; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment span {
    display: grid;
    place-items: center;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--panel);
    font-weight: 750;
}
.segment input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--accent-contrast); }
.segment input:focus-visible + span { outline: 3px solid rgba(77,28,201,.32); outline-offset: 2px; }

.field-hint { margin: -6px 0 13px; color: var(--muted); font-size: 13px; }
.equipment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.equipment-card { cursor: pointer; }
.equipment-card input { position: absolute; opacity: 0; pointer-events: none; }
.equipment-card span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--panel);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}
.equipment-card span::before {
    content: "";
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    border: 1px solid #5a5852;
    border-radius: 5px;
}
.equipment-card:hover span { border-color: var(--accent-soft); }
.equipment-card input:checked + span { border-color: var(--accent); background: rgba(77,28,201,.16); }
.equipment-card input:checked + span::before {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: inset 0 0 0 4px var(--panel);
}
.equipment-card input:focus-visible + span { outline: 3px solid rgba(77,28,201,.32); outline-offset: 2px; }

.time-status {
    padding: 19px;
    border: 1px dashed var(--line);
    border-radius: 14px;
    color: var(--muted);
    text-align: center;
}
.time-status.loading::after {
    content: "";
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-left: 9px;
    border: 2px solid var(--line);
    border-top-color: var(--accent);
    border-radius: 50%;
    vertical-align: -2px;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.time-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.time-slot {
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--panel);
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
}
.time-slot:hover { border-color: var(--accent); }
.time-slot.selected { border-color: var(--accent); background: var(--accent); color: var(--accent-contrast); }

.form-message { padding: 13px 15px; border-radius: 12px; background: rgba(255,142,130,.12); color: var(--danger); }
.submit-button, .secondary-button {
    min-height: 56px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 800;
}
.submit-button { background: var(--accent); color: var(--accent-contrast); }
.submit-button:disabled { cursor: not-allowed; opacity: .35; }
.submit-button:not(:disabled):hover { filter: brightness(1.05); transform: translateY(-1px); }
.fine-print { margin: -19px 0 0; color: #77746d; font-size: 11px; line-height: 1.45; text-align: center; }

.success { padding: clamp(22px, 5vw, 48px) 0; text-align: center; }
.success-mark {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-contrast);
    font-size: 30px;
    font-weight: 900;
}
.success .eyebrow { margin-top: 0; }
.success h2 + p { margin-top: 18px; color: var(--text); font-weight: 700; }
.secondary-button { margin-top: 14px; padding: 0 24px; background: var(--panel-hover); color: var(--text); }

@media (max-width: 620px) {
    .booking-shell { padding: 24px 18px 30px; border-radius: 0; }
    .choice-grid, .contact-grid, .date-duration-row { grid-template-columns: 1fr; }
    .equipment-grid { grid-template-columns: 1fr; }
    .time-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 370px) {
    .time-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
