:root {
      --bg: #11141c;
      --panel: rgba(35, 40, 54, 0.86);
      --line: rgba(255,255,255,0.12);
      --text: #f4f5f8;
      --muted: #b8bfcc;
      --orange: #ee4400;
      --green: #49b894;
      --blue: #58a9c9;
      --shadow: 0 20px 60px rgba(0,0,0,0.36);
      --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    * { box-sizing: border-box; }
    a, button, input, select, textarea, [role="button"] { -webkit-tap-highlight-color: transparent; }
    body {
      margin: 0;
      min-height: 100vh;
      font-family: var(--font);
      color: var(--text);
      background:
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.026) 1px, transparent 1px),
        radial-gradient(circle at top left, rgba(238,68,0,0.12), transparent 28rem),
        radial-gradient(circle at bottom right, rgba(73,184,148,0.10), transparent 30rem),
        linear-gradient(135deg, #0d1017 0%, #171b25 48%, #10131a 100%);
      background-size: 64px 64px, 64px 64px, auto, auto, auto;
    }
    a { color: inherit; text-decoration: none; }
    button, input, select, textarea { font: inherit; }
    button { cursor: pointer; }
    [hidden] { display: none !important; }
    .page {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
      min-height: 100vh;
      display: grid;
      grid-template-rows: auto 1fr;
      gap: 28px;
      padding: 24px 0 42px;
    }
    .topbar {
      height: 68px;
      border: 1px solid var(--line);
      border-radius: 16px;
      background: rgba(26,30,41,0.82);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 18px;
      box-shadow: var(--shadow);
      backdrop-filter: blur(18px);
    }
    .brand { display: flex; align-items: center; gap: 13px; }
    .brand-mark {
      width: 46px;
      height: 46px;
      border-radius: 15px;
      display: grid;
      place-items: center;
      color: var(--orange);
      border: 0;
      background: transparent;
      font-weight: 850;
      line-height: 0.86;
      overflow: hidden;
    }
    .brand-logo {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .brand-title { font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 760; white-space: nowrap; }
    .brand-title span { font-weight: 420; margin-left: 0; }
    .btn {
      min-height: 42px;
      border-radius: 8px;
      padding: 0 16px;
      border: 1px solid rgba(255,255,255,0.14);
      background: rgba(255,255,255,0.08);
      color: var(--text);
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      white-space: nowrap;
    }
    .btn.primary { border: 0; background: var(--orange); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14); }
    .funnel {
      display: block;
    }
    .booking-layout {
      display: grid;
      grid-template-columns: minmax(0, 3fr) minmax(340px, 2fr);
      grid-template-areas:
        "calendar form"
        "points form";
      align-items: start;
      column-gap: clamp(24px, 4vw, 48px);
      row-gap: 18px;
      margin-top: 22px;
    }
    .intro h1 {
      margin: 0 0 16px;
      max-width: 920px;
      font-size: clamp(2.2rem, 4.5vw, 3.8rem);
      line-height: 1;
    }
    .intro p { margin: 0; max-width: 900px; color: var(--muted); font-size: clamp(1.02rem, 1.8vw, 1.25rem); line-height: 1.48; }
    .points {
      grid-area: points;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }
    .point {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: rgba(255,255,255,0.055);
      padding: 16px;
      min-height: 126px;
    }
    .point b { display: block; margin-bottom: 8px; }
    .point p { font-size: 0.94rem; line-height: 1.38; }
    .preview-board {
      grid-area: calendar;
      border: 1px solid var(--line);
      border-radius: 8px;
      background:
        linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035)),
        rgba(26,30,41,0.72);
      overflow: hidden;
      box-shadow: 0 14px 36px rgba(0,0,0,0.22);
    }
    .preview-head {
      min-height: 48px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 0 16px;
      border-bottom: 1px solid var(--line);
    }
    .preview-head b { display: flex; align-items: center; gap: 8px; font-size: 0.94rem; }
    .preview-head span { color: var(--muted); font-size: 0.86rem; }
    .calendar-nav {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    .calendar-nav button {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.055);
      color: var(--text);
      display: grid;
      place-items: center;
      line-height: 1;
      transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, opacity 160ms ease;
    }
    .calendar-nav button:hover:not(:disabled) {
      transform: translateY(-1px);
      border-color: rgba(238,68,0,0.38);
      background: rgba(238,68,0,0.13);
    }
    .calendar-nav button:disabled {
      cursor: not-allowed;
      opacity: 0.36;
    }
    .chevron {
      width: 18px;
      height: 18px;
      display: block;
      background: currentColor;
      mask: center / contain no-repeat;
      -webkit-mask: center / contain no-repeat;
    }
    .chevron-left {
      mask-image: url("chevron-left.svg");
      -webkit-mask-image: url("chevron-left.svg");
    }
    .chevron-right {
      mask-image: url("chevron-right.svg");
      -webkit-mask-image: url("chevron-right.svg");
    }
    .preview-grid {
      display: grid;
      grid-template-columns: minmax(0, 3fr) minmax(190px, 2fr);
      gap: 1px;
      background: var(--line);
    }
    .preview-column {
      background: rgba(21,25,34,0.82);
      padding: 16px;
    }
    .mini-calendar {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      grid-auto-rows: minmax(30px, auto);
      gap: 3px 5px;
    }
    .mini-calendar span,
    .mini-calendar button {
      border-radius: 6px;
      display: grid;
      place-items: center;
      color: var(--muted);
      background: transparent;
      font-size: 0.8rem;
      border: 0;
    }
    .mini-calendar button {
      width: 100%;
      padding: 0;
      min-height: 32px;
      transition: background 160ms ease, color 160ms ease, opacity 160ms ease;
    }
    .mini-calendar button:not(:disabled):hover {
      color: #fff;
      background: rgba(238,68,0,0.24);
    }
    .mini-calendar .weekday {
      aspect-ratio: auto;
      min-height: 20px;
      color: #eef1f7;
      background: transparent;
      font-weight: 800;
      text-transform: uppercase;
      font-size: 0.68rem;
    }
    .mini-calendar[data-start-offset="1"] .calendar-day:first-of-type { grid-column-start: 2; }
    .mini-calendar[data-start-offset="2"] .calendar-day:first-of-type { grid-column-start: 3; }
    .mini-calendar[data-start-offset="3"] .calendar-day:first-of-type { grid-column-start: 4; }
    .mini-calendar[data-start-offset="4"] .calendar-day:first-of-type { grid-column-start: 5; }
    .mini-calendar[data-start-offset="5"] .calendar-day:first-of-type { grid-column-start: 6; }
    .mini-calendar[data-start-offset="6"] .calendar-day:first-of-type { grid-column-start: 7; }
    .mini-calendar .today {
      color: #ffc39a;
      font-weight: 900;
      box-shadow: inset 0 0 0 1px rgba(255,195,154,0.5);
    }
    .mini-calendar .selected {
      background: var(--orange);
      color: #fff;
      font-weight: 900;
      box-shadow: 0 4px 14px rgba(238,68,0,0.32);
    }
    .mini-calendar .blocked {
      cursor: not-allowed;
      color: rgba(184,191,204,0.38);
    }
    .mini-calendar .blocked.past { opacity: 0.46; }
    .mini-calendar .blocked.weekend { background: rgba(255,255,255,0.035); }
    .mini-calendar .blocked.unavailable {
      background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.035) 0 4px, transparent 4px 8px);
    }
    .mini-calendar button {
      position: relative;
    }
    .calendar-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 14px;
      margin-top: 12px;
      padding-top: 10px;
      border-top: 1px solid rgba(255,255,255,0.08);
      color: var(--muted);
      font-size: 0.72rem;
    }
    .calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
    .legend-dot {
      width: 10px;
      height: 10px;
      border-radius: 3px;
      background: rgba(255,255,255,0.12);
    }
    .legend-dot.past { opacity: 0.45; }
    .legend-dot.weekend { background: rgba(255,255,255,0.20); }
    .legend-dot.unavailable {
      background: repeating-linear-gradient(-45deg, rgba(255,255,255,0.28) 0 2px, transparent 2px 4px);
      box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
    }
    .booking-controls {
      display: grid;
      align-content: start;
      gap: 12px;
      padding: 16px;
      background: rgba(17,20,28,0.92);
    }
    .time-heading {
      display: grid;
      gap: 3px;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(255,255,255,0.09);
    }
    .time-heading b { font-size: 0.95rem; }
    .time-heading span { color: var(--muted); font-size: 0.76rem; }
    .slot-note {
      margin: 0;
      color: var(--muted);
      font-size: 0.8rem;
      line-height: 1.4;
    }
    .selection-summary {
      display: grid;
      gap: 3px;
      border: 1px solid rgba(255,111,55,0.72);
      border-radius: 8px;
      background: rgba(238,68,0,0.24);
      color: #ffffff;
      padding: 11px 12px;
      font-weight: 400;
      line-height: 1.35;
    }
    .selection-summary strong { font-weight: 800; }
    .selection-summary span { color: #ffe4d8; }
    .selection-summary.is-invalid {
      border-color: #ff8a61;
      box-shadow: 0 0 0 3px rgba(238,68,0,0.16);
    }
    .panel {
      grid-area: form;
      align-self: start;
      position: relative;
      border: 1px solid rgba(255,255,255,0.16);
      border-radius: 8px;
      background:
        linear-gradient(180deg, rgba(255,255,255,0.07), transparent 110px),
        var(--panel);
      box-shadow: var(--shadow);
      padding: clamp(22px, 4vw, 34px);
      overflow: hidden;
    }
    .panel::before {
      content: "";
      position: absolute;
      inset: 0 0 auto;
      height: 4px;
      background: var(--orange);
    }
    .panel h2 { margin: 0 0 8px; font-size: 1.65rem; }
    .panel > p { margin: 0 0 22px; color: var(--muted); line-height: 1.45; }
    .form-grid { display: grid; gap: 14px; }
    .split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    label { display: grid; gap: 7px; color: var(--muted); font-size: 0.92rem; }
    .field-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
    .required-mark,
    .optional-mark {
      font-size: 0.68rem;
      font-weight: 800;
      letter-spacing: 0.02em;
      text-transform: uppercase;
    }
    .required-mark { color: #ffc39a; }
    .optional-mark { color: #929baa; font-weight: 650; }
    .field, .select, textarea {
      width: 100%;
      border-radius: 8px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.06);
      color: var(--text);
      padding: 10px 12px;
      outline: none;
      min-height: 44px;
    }
    .select option {
      background: #ffffff;
      color: #111827;
    }
    .field::placeholder,
    textarea::placeholder {
      color: #c4cad5;
      opacity: 1;
    }
    textarea { min-height: 96px; resize: vertical; }
    .field:focus, .select:focus, textarea:focus { border-color: rgba(238,68,0,0.62); }
    .field[aria-invalid="true"],
    .select[aria-invalid="true"],
    textarea[aria-invalid="true"] {
      border-color: #ff7a4d;
      box-shadow: 0 0 0 3px rgba(238,68,0,0.14);
    }
    .field-error {
      color: #ffb196;
      font-size: 0.78rem;
      line-height: 1.35;
    }
    .submit-note {
      margin: -3px 0 0;
      color: var(--muted);
      font-size: 0.8rem;
      line-height: 1.4;
      text-align: center;
    }
    footer {
      padding: 0 0 34px;
      color: var(--muted);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 18px;
      font-size: 0.92rem;
    }
    .footer-links {
      display: flex;
      justify-content: flex-end;
      flex-wrap: wrap;
      gap: 14px;
      margin-left: auto;
    }
    footer a:hover { color: var(--text); }
    @media (max-width: 940px) {
      .booking-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
          "calendar"
          "form"
          "points";
      }
      .points { grid-template-columns: 1fr; }
    }
    @media (max-width: 620px) {
      .page { width: 100%; padding-top: 0; }
      .topbar { border-radius: 0; border-left: 0; border-right: 0; padding-inline: 12px; }
      .funnel { padding: 0 16px; }
      .split { grid-template-columns: 1fr; }
      .preview-grid { grid-template-columns: 1fr; }
      .preview-head {
        min-height: 0;
        padding: 11px 14px;
        flex-wrap: wrap;
      }
      .preview-head > b { width: 100%; }
      .calendar-nav { width: 100%; justify-content: space-between; }
      .calendar-nav > span { flex: 1; text-align: center; }
      .preview-column,
      .booking-controls { padding: 14px; }
      .mini-calendar { gap: 3px; }
      .mini-calendar button { min-height: 40px; }
      footer { padding-inline: 16px; align-items: flex-start; }
      .footer-links { gap: 12px; }
    }
    @media (max-width: 420px) {
      .brand-title span { display: none; }
      .topbar > .btn { padding-inline: 12px; }
    }
