:root {
  --pp: #A100FF;
  --pc: #7C3AED;
  --ps: #9333EA;
  --pl: #C4B5FD;
  --deep: #1A0533;
  --navy: #0F0A2A;
  --ink: #0A0618;
  --w: #FFFFFF;
  --s2: #E2E8F0;
  --s3: #CBD5E1;
  --s4: #94A3B8;
  --s5: #64748B;
  --s6: #475569;
  --bd: rgba(255, 255, 255, 0.08);
  --bd2: rgba(255, 255, 255, 0.14);
  --sf: rgba(255, 255, 255, 0.03);
  --sf2: rgba(255, 255, 255, 0.05);
  --danger: #FF7A7A;
  --radius: 14px;
  --ease: cubic-bezier(.2, .85, .2, 1);
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--w);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--ink);
}

body.booking-visible {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(161, 0, 255, .46), transparent 34%),
    radial-gradient(circle at 88% 84%, rgba(124, 58, 237, .40), transparent 36%),
    radial-gradient(circle at 52% 48%, rgba(76, 29, 149, .28), transparent 34%),
    var(--ink);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .9;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/></svg>");
  background-size: 72px 72px, 72px 72px, 200px 200px;
  mask-image: radial-gradient(ellipse at center, black 36%, transparent 86%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.progress-track {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  height: 3px;
  background: rgba(255, 255, 255, .08);
}

.progress-track span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #E0F2FE, var(--pl) 38%, var(--pp));
  box-shadow: 0 0 24px rgba(161, 0, 255, .55);
  transition: width .35s var(--ease);
}

.topbar,
.controlbar {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px clamp(22px, 6vw, 96px);
}

.topbar {
  top: 0;
}

.controlbar {
  bottom: 0;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  display: block;
  width: auto;
  height: 26px;
  opacity: .95;
}

.brand small {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  border-left: 1px solid var(--bd2);
  padding-left: 18px;
  color: var(--s4);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.step-text,
.progress-text,
.section-pill {
  color: var(--s4);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ghost-button,
.nav-button {
  border: 1px solid var(--bd2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .018));
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}

.ghost-button {
  min-height: 38px;
  padding: 0 14px;
  color: var(--s4);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ghost-button:hover,
.nav-button:hover {
  transform: translateY(-1px);
  border-color: rgba(196, 181, 253, .34);
  background: linear-gradient(180deg, rgba(161, 0, 255, .10), rgba(255, 255, 255, .025));
  box-shadow: 0 0 30px rgba(161, 0, 255, .14);
}

.typeform-shell {
  position: relative;
  z-index: 5;
  min-height: 100vh;
}

.typeform,
.slides {
  min-height: 100vh;
}

.slide {
  position: fixed;
  inset: 0;
  display: grid;
  align-content: center;
  min-height: 100vh;
  padding: 122px clamp(24px, 8vw, 128px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(22px) scale(.988);
  transition: opacity .4s ease, transform .4s var(--ease), visibility .4s ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.slide-inner {
  position: relative;
  width: min(980px, 100%);
}

.question-slide.many-options {
  align-content: start;
  padding-top: 96px;
  padding-bottom: 112px;
}

.question-slide.many-options .slide-inner {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 208px);
  min-height: 0;
}

.question-slide.many-options .question-number {
  margin-bottom: 10px;
}

.question-slide.many-options .kicker {
  margin-bottom: 14px;
}

.question-slide.many-options h2 {
  max-width: 1000px;
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1.08;
}

.question-slide.many-options .field-wrap {
  min-height: 0;
  margin-top: 22px;
}

.question-slide.file-question {
  align-content: start;
  padding-top: 98px;
  padding-bottom: 112px;
}

.question-slide.file-question .slide-inner {
  width: min(1040px, 100%);
}

.question-slide.file-question .question-number {
  margin-bottom: 10px;
}

.question-slide.file-question .kicker {
  margin-bottom: 14px;
}

.question-slide.file-question h2 {
  max-width: 1010px;
  font-size: clamp(30px, 3.7vw, 50px);
  line-height: 1.08;
}

.question-slide.file-question .field-wrap {
  margin-top: 24px;
}

.intro-slide .slide-inner,
.submit-slide .slide-inner {
  width: min(1060px, 100%);
}

.submit-slide.booking-complete {
  align-content: center;
  padding: 122px calc(min(720px, 56vw) + clamp(28px, 5vw, 74px)) 96px clamp(28px, 5vw, 74px);
}

.submit-slide.booking-complete .slide-inner {
  width: min(500px, 100%);
}

.submit-slide.booking-complete h2 {
  max-width: 500px;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1.02;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  color: var(--pp);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pp);
  box-shadow: 0 0 10px var(--pp);
}

.question-number {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--s4);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .12em;
}

h1,
h2 {
  margin: 0;
  font-family: "Inter Tight", sans-serif;
  color: var(--w);
}

h1 {
  max-width: 980px;
  font-size: clamp(52px, 7.4vw, 96px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.02;
}

h1 em {
  font-family: inherit;
  font-style: normal;
  font-weight: 800;
  background: linear-gradient(135deg, #E0F2FE, var(--pl) 40%, var(--pp));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  max-width: 940px;
  font-size: clamp(34px, 4.8vw, 64px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.06;
}

h2 span[aria-hidden="true"] {
  color: var(--pp);
}

.question-description {
  max-width: 820px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .68);
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 300;
  line-height: 1.55;
}

.question-description + .field-wrap {
  margin-top: 26px;
}

.lead {
  max-width: 820px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: clamp(17px, 1.75vw, 21px);
  font-weight: 300;
  line-height: 1.55;
}

.field-wrap {
  margin-top: 36px;
}

.question-input {
  width: min(800px, 100%);
  border: 0;
  border-bottom: 1.5px solid rgba(196, 181, 253, .28);
  border-radius: 0;
  outline: 0;
  color: var(--w);
  background: transparent;
  padding: 16px 0 18px;
  font-family: "Inter Tight", sans-serif;
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.18;
}

.question-input::placeholder {
  color: rgba(203, 213, 225, .34);
}

.question-input:focus {
  border-color: var(--pp);
  box-shadow: 0 10px 22px -22px rgba(161, 0, 255, .9);
}

textarea.question-input {
  min-height: 182px;
  resize: none;
}

.textarea-file-control {
  display: grid;
  gap: 18px;
  width: min(840px, 100%);
}

.textarea-file-control .question-input {
  width: 100%;
}

.file-drop {
  display: block;
  width: min(640px, 100%);
  cursor: pointer;
}

.file-drop input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.file-drop span {
  display: grid;
  gap: 4px;
  border: 1px dashed rgba(196, 181, 253, .34);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(161, 0, 255, .08), rgba(124, 58, 237, .025));
  padding: 18px 20px;
  color: var(--s2);
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}

.file-drop span::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 6px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--pp), var(--pc));
  color: var(--w);
  font-family: "JetBrains Mono", monospace;
}

.file-drop strong {
  font-family: "Inter Tight", sans-serif;
  font-size: 18px;
  letter-spacing: -.01em;
}

.file-drop small {
  color: var(--s4);
  font-size: 13px;
  line-height: 1.45;
}

.file-drop:hover span,
.file-drop:focus-within span {
  transform: translateY(-1px);
  border-color: rgba(161, 0, 255, .58);
  background: linear-gradient(180deg, rgba(161, 0, 255, .12), rgba(124, 58, 237, .04));
  box-shadow: 0 0 34px rgba(161, 0, 255, .14);
}

.question-slide.file-question .textarea-file-control {
  gap: 14px;
  width: min(900px, 100%);
}

.question-slide.file-question .question-input {
  width: 100%;
}

.question-slide.file-question textarea.question-input {
  min-height: 118px;
  padding: 10px 0 14px;
  font-size: clamp(22px, 2.5vw, 32px);
  line-height: 1.22;
}

.question-slide.file-question .file-drop {
  width: min(900px, 100%);
}

.question-slide.file-question .file-drop span {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  column-gap: 14px;
  row-gap: 2px;
  min-height: 66px;
  padding: 12px 16px;
}

.question-slide.file-question .file-drop span::before {
  grid-row: 1 / span 2;
  margin-bottom: 0;
}

.question-slide.file-question .file-drop strong {
  font-size: 16px;
}

.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 840px;
}

.file-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  border: 1px solid rgba(161, 0, 255, .28);
  border-radius: 999px;
  background: rgba(161, 0, 255, .08);
  color: var(--s2);
  padding: 7px 11px;
  font-size: 12px;
}

.file-pill strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-pill small {
  color: var(--s4);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
}

.options {
  display: grid;
  gap: 10px;
  width: min(800px, 100%);
}

.options-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(1000px, 100%);
  max-height: min(50vh, 366px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 10px 2px 0;
  scrollbar-color: rgba(196, 181, 253, .42) rgba(255, 255, 255, .05);
  scrollbar-width: thin;
}

.dense-options .options-compact {
  max-height: min(48vh, 340px);
}

.options-compact::-webkit-scrollbar {
  width: 8px;
}

.options-compact::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, .05);
  border-radius: 999px;
}

.options-compact::-webkit-scrollbar-thumb {
  background: rgba(196, 181, 253, .38);
  border-radius: 999px;
}

.option {
  display: block;
  cursor: pointer;
}

.option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option span {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  border: 1px solid var(--bd);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .012));
  padding: 11px 15px;
  color: var(--s2);
  font-size: 16px;
  line-height: 1.35;
  transition: transform .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}

.options-compact .option span {
  min-height: 48px;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 14.5px;
}

.options-compact .option span::before {
  width: 28px;
  height: 28px;
}

.option span::before {
  content: attr(data-key);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(161, 0, 255, .32);
  border-radius: 9px;
  color: var(--pl);
  background: rgba(161, 0, 255, .08);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.option:hover span {
  transform: translateX(4px);
  border-color: rgba(161, 0, 255, .38);
  background: linear-gradient(180deg, rgba(161, 0, 255, .09), rgba(124, 58, 237, .018));
  box-shadow: 0 0 34px rgba(161, 0, 255, .10);
}

.option input:checked + span {
  color: var(--w);
  border-color: rgba(161, 0, 255, .62);
  background: linear-gradient(135deg, rgba(161, 0, 255, .32), rgba(124, 58, 237, .16));
  box-shadow: 0 0 38px rgba(161, 0, 255, .18), inset 0 1px 0 rgba(255, 255, 255, .13);
}

.option input:checked + span::before {
  border-color: rgba(255, 255, 255, .26);
  color: var(--w);
  background: linear-gradient(135deg, var(--pp), var(--pc));
}

.note-card {
  width: min(800px, 100%);
  border: 1px solid rgba(161, 0, 255, .35);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(161, 0, 255, .08), rgba(124, 58, 237, .02));
  padding: 20px;
  color: var(--s2);
  line-height: 1.62;
  box-shadow: 0 0 40px rgba(161, 0, 255, .10), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.microcopy,
.error-text {
  margin-top: 14px;
  min-height: 22px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .06em;
}

.microcopy {
  color: var(--s5);
}

.error-text {
  color: var(--danger);
}

.section-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: min(48vw, 420px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(161, 0, 255, .28);
  border-radius: 999px;
  background: rgba(161, 0, 255, .08);
  color: #E9D5FF;
  padding: 0 13px;
  margin-right: 10px;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 50px;
  min-height: 50px;
  padding: 0 16px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.nav-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-button.primary {
  color: var(--w);
  border-color: rgba(255, 255, 255, .12);
  background: linear-gradient(135deg, var(--pp), var(--pc));
  box-shadow: 0 0 30px rgba(161, 0, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.nav-button:disabled {
  opacity: .38;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
  width: min(820px, 100%);
  margin-top: 30px;
  color: var(--s3);
  line-height: 1.55;
}

.consent input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--pp);
}

.submit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.booking-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 24;
  width: min(720px, 56vw);
  margin: 0;
  overflow: hidden;
  border-left: 1px solid rgba(196, 181, 253, .24);
  border-radius: 0;
  background: var(--w);
  box-shadow: -28px 0 90px rgba(0, 0, 0, .32), -8px 0 42px rgba(161, 0, 255, .16);
}

.booking-panel iframe {
  display: block;
  width: 100%;
  height: 100dvh;
  border: 0;
  background: var(--w);
}

body.booking-visible .controlbar {
  display: none;
}

body.booking-visible .top-actions {
  display: none;
}

.status-box {
  position: fixed;
  left: clamp(22px, 6vw, 96px);
  right: clamp(22px, 6vw, 96px);
  bottom: 102px;
  z-index: 35;
  display: none;
  max-width: 840px;
  border-radius: 14px;
  padding: 15px 16px;
  color: var(--s2);
  line-height: 1.5;
  backdrop-filter: blur(18px);
}

.status-box.show {
  display: block;
}

.status-box.success {
  border: 1px solid rgba(196, 181, 253, .38);
  background: rgba(161, 0, 255, .16);
}

.status-box.error {
  border: 1px solid rgba(255, 122, 122, .38);
  background: rgba(255, 122, 122, .13);
}

.status-box a {
  color: var(--pl);
}

@media (max-width: 720px) {
  body {
    overflow: auto;
  }

  .topbar,
  .controlbar {
    padding: 20px;
  }

  .topbar {
    align-items: flex-start;
  }

  .brand {
    gap: 12px;
  }

  .brand img {
    height: 22px;
  }

  .brand small {
    padding-left: 12px;
    font-size: 9.5px;
  }

  .ghost-button {
    display: none;
  }

  .slide {
    position: absolute;
    min-height: 100dvh;
    padding: 112px 20px 118px;
  }

  .question-slide.many-options {
    padding-top: 92px;
    padding-bottom: 104px;
  }

  .question-slide.many-options .slide-inner {
    max-height: calc(100dvh - 196px);
  }

  .question-slide.many-options h2 {
    font-size: clamp(25px, 7vw, 34px);
  }

  .question-slide.many-options .field-wrap {
    margin-top: 16px;
  }

  .question-slide.file-question {
    padding-top: 92px;
    padding-bottom: 104px;
  }

  .question-slide.file-question h2 {
    font-size: clamp(26px, 7.6vw, 36px);
  }

  .question-slide.file-question .field-wrap {
    margin-top: 18px;
  }

  .question-slide.file-question textarea.question-input {
    min-height: 104px;
    font-size: clamp(21px, 7vw, 30px);
  }

  .question-slide.file-question .file-drop span {
    min-height: 62px;
    padding: 11px 14px;
  }

  body.booking-visible {
    overflow: auto;
  }

  .submit-slide.booking-complete {
    position: absolute;
    align-content: start;
    padding: 92px 20px 32px;
  }

  .submit-slide.booking-complete .slide-inner {
    width: 100%;
  }

  .submit-slide.booking-complete h2 {
    font-size: clamp(32px, 10vw, 44px);
  }

  .booking-panel {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 22px;
    border: 1px solid rgba(196, 181, 253, .24);
    border-radius: 14px;
  }

  .booking-panel iframe {
    height: 620px;
  }

  h1 {
    font-size: clamp(44px, 14vw, 64px);
    line-height: 1.02;
  }

  h2 {
    font-size: clamp(29px, 9vw, 42px);
  }

  .question-input {
    font-size: clamp(22px, 8vw, 32px);
  }

  .options-compact {
    grid-template-columns: 1fr;
    max-height: min(48vh, 340px);
    padding-right: 8px;
  }

  .options-compact .option span {
    min-height: 46px;
    font-size: 14px;
  }

  .controlbar {
    align-items: flex-end;
  }

  .section-pill {
    display: none;
  }

  .step-text {
    display: block;
    max-width: 132px;
  }

  .nav-button.primary {
    min-width: 120px;
  }

  .status-box {
    left: 20px;
    right: 20px;
    bottom: 92px;
  }
}
