/* Nightingale Events — inquiry page.
 * One question at a time, full screen (modelled on the EDA application form), in the textile palette. */
:root {
  --linen: #faf6ee;
  --linen-2: #eceed9;
  --mauve: #d29e9e;
  --slate: #878557;
  --khaki: #5d593c;
  --mustard: #beb06c;
  --wine: #ab6a6a;
  --mahogany: #5d593c;
  --coffee: #3f3c28;
  --ink: var(--coffee);
  --ink-soft: #6d6650;
  --line: #3f3c282b;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
body.qf-page {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  background: var(--linen);
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.qf-page__glow {
  position: fixed;
  right: -20vw;
  bottom: -40vh;
  width: 80vw;
  height: 80vw;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, #d29e9e52, #beb06c1f 45%, #0000 70%);
}

/* progress + top bar */
.qf-page__progress { position: fixed; inset: 0 0 auto; height: 4px; background: #3f3c280f; z-index: 60; }
.qf-page__progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--wine), var(--mustard)); transition: width .6s var(--ease); }
.qf-page__top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 44px);
}
.qf-page__brand { font: 400 1.45rem/1 var(--serif); color: var(--coffee); text-decoration: none; letter-spacing: -.01em; }
.qf-page__count { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

/* stage */
.qf-page__stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding: 110px clamp(20px, 6vw, 80px);
}
.qf { width: 100%; max-width: 720px; }
.qf__progress { display: none; }
.qf__panel { animation: qf-in .55s var(--ease) both; }
.qf__panel--back { animation-name: qf-in-back; }
.qf__panel--shake { animation: qf-shake .35s; }
@keyframes qf-in { from { opacity: 0; transform: translateX(60px); } }
@keyframes qf-in-back { from { opacity: 0; transform: translateX(-60px); } }
@keyframes qf-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* questions */
.qf__count { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--wine); }
.qf__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wine);
}
.qf__eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.qf__q { margin: 0; font: 400 clamp(32px, 4.4vw, 52px)/1.08 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.qf__q em { font-style: italic; color: var(--wine); }
.qf__q--big { font-size: clamp(42px, 6.4vw, 84px); line-height: 1; max-width: 13ch; }
.qf__sub { margin: 14px 0 0; max-width: 56ch; font-size: clamp(16px, 1.5vw, 18px); color: var(--ink-soft); }
.qf__points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: var(--ink-soft); }
.qf__points li { position: relative; padding-left: 26px; }
.qf__points li::before { content: "✦"; position: absolute; left: 0; top: 2px; font-size: 12px; color: var(--mustard); }

/* text inputs */
.qf__input {
  width: 100%;
  margin-top: 34px;
  padding: 8px 0 12px;
  font: 400 clamp(26px, 3.2vw, 38px) var(--serif);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 2px solid #3f3c2833;
  border-radius: 0;
  outline: none;
  transition: border-color .3s;
  color-scheme: light;
}
.qf__input::placeholder { color: #6d665073; }
.qf__input:focus { border-bottom-color: var(--wine); }
.qf__input[type=number]::-webkit-inner-spin-button { display: none; }
.qf__pair { display: grid; grid-template-columns: 3fr 2fr; gap: 26px; margin-top: 30px; }
.qf__pair .qf__input { margin-top: 4px; font-size: clamp(22px, 2.6vw, 30px); }
.qf__field { display: block; }
.qf__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }

/* choices */
.qf__options { display: grid; gap: 10px; max-width: 560px; margin-top: 30px; }
.qf__option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 13px 16px;
  font: 500 17px var(--sans);
  text-align: left;
  color: var(--ink);
  background: #ffffff8c;
  border: 1px solid #3f3c2824;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.qf__option:hover { background: #fff; border-color: #ab6a6a8c; }
.qf__option:focus-visible, .qf__tile:focus-visible { outline: 3px solid var(--wine); outline-offset: 2px; }
.qf__option[aria-checked=true] { background: #fff; border-color: transparent; box-shadow: 0 0 0 2px var(--wine), 0 14px 30px -18px #ab6a6a99; }
.qf__key {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--linen);
  border: 1px solid #3f3c2833;
  border-radius: 7px;
}
[aria-checked=true] .qf__key { color: #fff; background: var(--wine); border-color: var(--wine); }
.qf__optlabel { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.qf__optlabel small { font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.qf__price { font-size: 14px; font-weight: 600; color: var(--wine); white-space: nowrap; }

/* photo choices */
.qf__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.qf__tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px 8px 14px;
  font: 500 16px var(--sans);
  text-align: left;
  color: var(--ink);
  background: #ffffff8c;
  border: 1px solid #3f3c2824;
  border-radius: 18px;
  cursor: pointer;
  transition: border-color .25s, background .25s, box-shadow .25s, transform .25s var(--ease);
}
.qf__tile:hover { background: #fff; border-color: #ab6a6a8c; transform: translateY(-2px); }
.qf__tile[aria-checked=true] { background: #fff; border-color: transparent; box-shadow: 0 0 0 2px var(--wine), 0 14px 30px -18px #ab6a6a99; }
.qf__img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 12px; }
.qf__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qf__img--1 { background: linear-gradient(165deg, #f6e9e4, #d29e9e); }
.qf__img--2 { background: linear-gradient(165deg, #d29e9e, #878557); }
.qf__img--3 { background: linear-gradient(165deg, #ab6a6a, #5d593c); }
.qf__ph { position: absolute; inset: auto 10px 10px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fffd; }
.qf__tilemeta { display: flex; gap: 10px; align-items: flex-start; padding: 0 6px; }

/* actions */
.qf__nav { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  font: 600 16px var(--sans);
  text-decoration: none;
  color: #fbf6ee;
  background: var(--wine);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 14px 30px -16px #ab6a6ab3;
  transition: background .25s, transform .25s var(--ease);
}
.button:hover { background: var(--mahogany); transform: translateY(-1px); }
.button[disabled] { opacity: .6; cursor: wait; transform: none; }
.button--lg { padding: 17px 30px; font-size: 17px; }
.qf__hint { font-size: 13px; color: var(--ink-soft); }
.qf__back { margin-left: auto; padding: 6px 0; font: 600 13px var(--sans); color: var(--ink-soft); background: none; border: 0; cursor: pointer; }
.qf__back:hover { color: var(--ink); }
.qf__link { font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; }
.qf__link:hover { color: var(--ink); }
.qf__error { min-height: 1.4em; margin: 16px 0 0; font-size: 14px; font-weight: 500; color: #a3302a; }
.qf__error:empty { min-height: 0; margin: 0; }

/* result */
.qf__total { margin: 18px 0 22px; font: 400 clamp(56px, 8vw, 96px)/1 var(--serif); letter-spacing: -.02em; color: var(--wine); }
.qf__approx { font: italic 400 .32em var(--serif); color: var(--ink-soft); vertical-align: middle; }
.qf__lines { list-style: none; padding: 0; margin: 0 0 18px; max-width: 600px; border-top: 1px solid var(--line); }
.qf__lines li { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.qf__lines li span:last-child { font-weight: 600; white-space: nowrap; }
.qf__nav--result { margin-top: 26px; }
.qf__note { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--khaki); }
.qf__note--warn { font-weight: 400; color: var(--ink); }
.qf__note--warn a { color: var(--wine); }

/* below the minimum */
.qf__min { max-width: 600px; margin: 0 0 28px; padding: 22px; background: #ffffff8c; border: 1px solid #3f3c2824; border-radius: 18px; }
.qf__minhead { margin: 0 0 14px; font: 400 clamp(22px, 2.4vw, 28px)/1.2 var(--serif); }
.qf__meter { height: 6px; margin-bottom: 16px; border-radius: 99px; background: #3f3c2814; overflow: hidden; }
.qf__meter span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--wine), var(--mustard)); transform-origin: left; transition: transform .8s var(--ease); }
.qf__min .qf__sub { margin: 0 0 6px; font-size: 15px; }
.qf__ideas { max-width: none; margin-top: 12px; }
.qf__ideas .qf__optlabel small { color: var(--wine); font-weight: 600; }

/* inspiration upload */
.qf__inspo { max-width: 600px; margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }
.qf__inspo .qf__count { margin-bottom: 6px; }
.qf__inspo .qf__field { margin: 18px 0 20px; }
.qf__inspo .qf__input { margin-top: 4px; font: 400 18px var(--sans); }
.qf__drop {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #ffffff8c;
  border: 1px dashed #3f3c2840;
  border-radius: 14px;
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.qf__drop span:last-child { display: flex; flex-direction: column; gap: 2px; font-weight: 500; }
.qf__drop small { font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.qf__drop:hover, .qf__drop.is-over { background: #fff; border-color: var(--wine); }
.qf__drop:focus-within { outline: 3px solid var(--wine); outline-offset: 2px; }
.qf__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 14px 0 0; }
.qf__thumbs li { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #3f3c2814; }
.qf__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qf__remove { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: #3f3c28cc; color: #fff; font-size: 15px; line-height: 1; cursor: pointer; }

/* bottom-right arrows */
.qf-page__arrows {
  position: fixed;
  right: clamp(20px, 4vw, 44px);
  bottom: clamp(20px, 4vh, 36px);
  z-index: 50;
  display: flex;
  gap: 2px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 12px 30px -16px #3f3c2880;
}
.qf-page__arrows button { display: grid; place-items: center; width: 42px; height: 38px; color: var(--linen); background: var(--coffee); border: 0; cursor: pointer; transition: background .25s; }
.qf-page__arrows button:hover:not(:disabled) { background: var(--wine); }
.qf-page__arrows button:disabled { opacity: .4; cursor: default; }
.qf-page__arrows svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 640px) {
  .qf-page__top { padding: 16px 20px; background: linear-gradient(var(--linen) 60%, #faf6ee00); }
  .qf-page__stage { align-items: flex-start; padding: 92px 20px 110px; }
  .qf__pair { grid-template-columns: 1fr; }
  .qf__tiles { grid-template-columns: 1fr; }
  .qf__img { aspect-ratio: 16 / 9; }
  .qf__option { padding: 12px 14px; font-size: 16px; }
  .qf__hint { display: none; }
  .qf-page__arrows { right: 18px; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .qf__panel, .qf__panel--back, .qf__panel--shake { animation: none; }
}

/* wide choices: horizontal renders, one row each (the backdrop question) */
.qf:has(.qf__tiles--wide) { max-width: 960px; }
.qf__tiles--wide { grid-template-columns: 1fr; gap: 12px; }
.qf__tiles--wide .qf__tile { display: grid; grid-template-columns: 1.7fr 1fr; align-items: center; gap: 20px; padding: 8px; }
.qf__tiles--wide .qf__img { aspect-ratio: 1536 / 800; border-radius: 12px; background: var(--linen); }
.qf__tiles--wide .qf__img img { mix-blend-mode: multiply; } /* the renders' paper melts into the page */
.qf__tiles--wide .qf__tilemeta { padding: 0 8px 0 0; }
.qf__tiles--wide .qf__optlabel { font-size: 18px; }
@media (max-width: 640px) {
  .qf__tiles--wide .qf__tile { grid-template-columns: 1fr; gap: 10px; }
  .qf__tiles--wide .qf__img { aspect-ratio: 1536 / 800; }
}

/* "Book a call anyway" is a button styled as a link */
.qf__linkbtn { padding: 0; background: none; border: 0; cursor: pointer; }

/* ---------- after booking: the celebration ---------- */
.qf__booked { position: relative; }
.qf__seal {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin-bottom: 26px;
  font-size: 30px;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #f3d6d2, var(--mauve) 55%, var(--wine));
  border-radius: 50%;
  box-shadow: 0 0 0 10px #d29e9e26, 0 22px 50px -18px #ab6a6acc;
  animation: qf-seal 1.1s var(--ease) both, qf-glow 3.2s ease-in-out 1.1s infinite;
}
@keyframes qf-seal { from { opacity: 0; transform: scale(.6) rotate(-20deg); } }
@keyframes qf-glow { 50% { box-shadow: 0 0 0 18px #d29e9e14, 0 22px 60px -14px #ab6a6aee; } }
.qf__booked .qf__q--big { max-width: 15ch; }
.qf__next { list-style: none; counter-reset: n; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; max-width: 560px; }
.qf__next li { counter-increment: n; position: relative; padding-left: 46px; color: var(--ink-soft); }
.qf__next li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font: 400 17px var(--serif);
  color: var(--wine);
  border: 1px solid #ab6a6a59;
  border-radius: 50%;
}
.qf__next b { color: var(--ink); font-weight: 600; }
/* soft gold shimmer drifting upward behind the message */
.qf__sparkles { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.qf__sparkles i {
  position: absolute;
  bottom: -20px;
  left: calc(var(--k) * 5.6% + 1%);
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #fff6d8, #e3c27a 45%, #e3c27a00 70%);
  border-radius: 50%;
  opacity: 0;
  animation: qf-rise calc(7s + var(--k) * .35s) linear calc(var(--k) * .45s) infinite;
}
.qf__sparkles i:nth-child(3n) { width: 10px; height: 10px; }
.qf__sparkles i:nth-child(4n+1) { background: radial-gradient(circle, #fff, #f3d6d2 45%, #f3d6d200 70%); }
@keyframes qf-rise {
  10% { opacity: .9; }
  80% { opacity: .6; }
  100% { opacity: 0; transform: translate(calc((var(--k) - 9) * 4px), -105vh); }
}
@media (prefers-reduced-motion: reduce) {
  .qf__sparkles { display: none; }
  .qf__seal { animation: none; }
}
