/* Contact survey: one step at a time on the left; a coach bubble and a live project brief on the right. */
.survey { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(28px, 4vw, 56px) clamp(72px, 9vw, 120px); }
.survey::before { content: ""; position: absolute; right: -20vmax; top: -30vmax; z-index: -1; width: 70vmax; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 165, 38, .2), transparent); }
.survey__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.survey .crumbs { margin-bottom: 24px; }
.survey h1 { font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.04em; line-height: .98; }
.survey__lede { margin-top: 16px; max-width: 46ch; font-size: 1.15rem; color: var(--muted); }
.survey__progress { height: 6px; margin-top: 36px; border-radius: 99px; background-color: var(--bg-3); overflow: hidden; }
.survey__progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--amber-hi), var(--amber-deep)); transform: scaleX(.125); transform-origin: left; transition: transform .6s var(--ease); }
.survey__count { margin-top: 10px; font-size: .9rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.survey__form { position: relative; margin-top: 18px; padding: clamp(24px, 3.4vw, 40px); border: 1px solid var(--line); border-radius: 28px; background-color: var(--bg-2); box-shadow: 0 30px 70px rgba(94, 58, 0, .08); }

/* steps: only the current one shows once JS runs; it slides in */
.q { display: grid; gap: 18px; min-width: 0; border: 0; }
.q legend { padding: 0; margin-bottom: 18px; font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.q:focus { outline: none; }
.q__sub { margin-top: 8px; font-weight: 700; }
.survey__form:not(.is-js) .q + .q { margin-top: 40px; }
.survey__form.is-js .q:not(.is-on) { display: none; }
.survey__form.is-js .q.is-on { animation: stepIn .55s var(--ease) both; }
@keyframes stepIn { from { transform: perspective(1000px) rotateY(-10deg) translateX(40px); filter: opacity(0) blur(4px); } }

/* choices: real radios / checkboxes, drawn as pills and cards */
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opts--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.opt { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px; background-color: var(--bg-2); font-weight: 600; cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.opt input { position: absolute; inset: 0; z-index: 1; margin: 0; opacity: 0; cursor: pointer; }
.opt:hover { border-color: var(--amber); }
.opt:active { transform: scale(.97); }
.opt:has(input:checked) { border-color: var(--amber-deep); background-color: #FFF4DE; animation: pick .4s var(--ease); }
@keyframes pick { 40% { transform: scale(1.07); } }
.opt[hidden], .qgroup[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) { .opt:not(.opt--orb):hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(94, 58, 0, .12); } }
.opt:has(input:checked)::after { content: ""; width: 9px; height: 15px; margin: -3px 0 0 2px; border: solid var(--gold); border-width: 0 3px 3px 0; rotate: 45deg; }
.opt:has(input:focus-visible) { outline: 3px solid var(--amber-deep); outline-offset: 3px; }
.opt--card { flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 132px; padding: 18px; border-radius: 20px; }
.opt--card:has(input:checked)::after { position: absolute; right: 18px; top: 18px; }
.opt__ico { display: inline-flex; }
.opt__ico svg { width: 55px; height: 55px; transition: transform .4s var(--ease); }
.opt--card:has(input:checked) .opt__ico svg { transform: translateY(-3px) rotate(-6deg) scale(1.08); }

/* the wheel: services sit around a hub; picking one lights its ray, the hub counts and lists the picks */
.wheel { --r: min(205px, 34vw); --rx: 0; --ry: 0; position: relative; width: calc(var(--r) * 2 + 140px); aspect-ratio: 1; margin: 10px auto 0; transform: perspective(1200px) rotateX(calc(var(--rx) * -10deg)) rotateY(calc(var(--ry) * 10deg)); transition: transform .6s var(--ease); }
.wheel::before { content: ""; position: absolute; inset: 70px; border: 1.5px dashed var(--line); border-radius: 50%; animation: wspin 60s linear infinite; }
@keyframes wspin { to { rotate: 360deg; } }
.wheel__ray { position: absolute; left: 50%; top: 50%; width: calc(var(--r) - 62px); height: 2px; margin-left: 62px; transform-origin: -62px 50%; rotate: var(--a); background: linear-gradient(90deg, var(--line), transparent); transition: background .4s; }
.wheel__ray.is-on { background: linear-gradient(90deg, #FFD23F, var(--amber-deep)); box-shadow: 0 0 10px rgba(242, 165, 38, .6); }
.wheel__hub { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; align-content: center; width: 124px; height: 124px; translate: -50% -50%; border-radius: 50%; background-color: #0A0C0E; color: #F4F2ED; text-align: center; box-shadow: 0 0 0 10px rgba(242, 165, 38, .12), 0 24px 50px rgba(10, 12, 14, .25); transition: box-shadow .5s var(--ease); }
.wheel.has-picks .wheel__hub { box-shadow: 0 0 0 10px rgba(242, 165, 38, .3), 0 0 40px rgba(242, 165, 38, .45); animation: hub 2.6s ease-in-out infinite; }
@keyframes hub { 50% { scale: 1.04; } }
.wheel__hub b { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: #FFD23F; }
.wheel__hub span { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.wheel__hub small { max-width: 104px; margin-top: 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .68rem; line-height: 1.2; color: #C3C8CD; }
.opt--orb { position: absolute; left: 50%; top: 50%; flex-direction: column; justify-content: center; gap: 6px; width: 124px; height: 124px; margin: -62px 0 0 -62px; padding: 12px; border-radius: 50%; translate: calc(cos(var(--a)) * var(--r)) calc(sin(var(--a)) * var(--r)); text-align: center; font-size: .82rem; line-height: 1.15; box-shadow: 0 10px 24px rgba(94, 58, 0, .08); transition: transform .4s var(--ease), border-color .3s, background-color .3s, box-shadow .4s; animation: orbIn .7s var(--ease) calc(var(--i) * 70ms) both; }
@keyframes orbIn { from { transform: scale(.6); filter: opacity(0); } }
.opt--orb .opt__ico svg { width: 40px; height: 40px; }
@media (hover: hover) and (pointer: fine) { .opt--orb:hover { transform: scale(1.1); box-shadow: 0 18px 40px rgba(94, 58, 0, .18); z-index: 2; } }
.opt--orb:has(input:checked) { transform: scale(1.06); border-color: var(--amber-deep); background: radial-gradient(circle at 35% 30%, #FFF8E6, #FFE7A8); box-shadow: 0 0 0 5px rgba(242, 165, 38, .25), 0 18px 40px rgba(224, 121, 28, .3); animation: none; }
.opt--orb:has(input:checked)::after { position: absolute; right: 16px; top: 14px; margin: 0; }
@media (max-width: 640px) {
  .wheel { --r: min(104px, calc(50vw - 92px)); width: calc(var(--r) * 2 + 88px); margin-top: 4px; transform: none; }
  .wheel::before { inset: 44px; }
  .wheel__ray { width: calc(var(--r) - 42px); margin-left: 42px; transform-origin: -42px 50%; }
  .wheel__hub { width: 82px; height: 82px; box-shadow: 0 0 0 6px rgba(242, 165, 38, .12), 0 14px 30px rgba(10, 12, 14, .25); }
  .wheel.has-picks .wheel__hub { box-shadow: 0 0 0 6px rgba(242, 165, 38, .3), 0 0 26px rgba(242, 165, 38, .45); }
  .wheel__hub b { font-size: 1.7rem; }
  .wheel__hub span { font-size: .6rem; letter-spacing: .1em; }
  .wheel__hub small { display: none; }
  .opt--orb { gap: 3px; width: 88px; height: 88px; margin: -44px 0 0 -44px; padding: 8px; font-size: .66rem; line-height: 1.1; }
  .opt--orb .opt__ico svg { width: 26px; height: 26px; }
  .opt--orb:has(input:checked) { transform: scale(1.08); }
  .opt--orb:has(input:checked)::after { right: 8px; top: 6px; }
}

/* fields (same look as before) */
.form__note, .form__legal { font-size: .9rem; color: var(--muted); }
.form__legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: .95rem; font-weight: 600; }
.field__opt { font-weight: 400; color: var(--muted); }
.field :is(input, textarea) { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--field); border-radius: var(--r-in); background-color: var(--bg-2); color: var(--text); font: inherit; }
.field textarea { resize: vertical; }
.field :is(input, textarea):hover { border-color: var(--muted); }
.field :is(input, textarea):focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px rgba(242, 165, 38, .35); }
.field ::placeholder { color: #6B737B; }
.field [aria-invalid="true"] { border-color: var(--bad); }
.field__err { font-size: .9rem; color: var(--bad); }
.form__alert { margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--bad); border-radius: var(--r-in); background-color: var(--bg-3); color: var(--text); }
.form__alert a { color: var(--gold); text-decoration: underline; }
.bl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.survey__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.survey__nav .btn--ghost svg { order: -1; }
.survey__nav [hidden] { display: none; }
.survey__hint { margin-left: auto; font-size: .88rem; color: var(--muted); }
.survey__hint kbd { padding: 2px 8px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; font: 600 .82rem var(--body); }
.survey__tel { margin-top: 22px; color: var(--muted); }
.survey__tel a { color: var(--gold); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* coach + brief */
.survey__side { position: sticky; top: 110px; display: grid; gap: 18px; }
.coach { display: flex; align-items: flex-start; gap: 14px; }
.coach img { flex: none; width: 40px; height: auto; margin-top: 6px; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -5px; } }
.coach__bubble { position: relative; min-height: 64px; padding: 16px 18px; border-radius: 6px 22px 22px 22px; background-color: var(--bg-2); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(94, 58, 0, .1); font-size: 1rem; line-height: 1.45; }
.coach__bubble.is-said span { animation: said .4s var(--ease) both; }
@keyframes said { from { filter: opacity(0); transform: translateY(6px); } }
.coach__dots { display: none; gap: 5px; padding-block: 8px; }
.coach__bubble.is-typing .coach__dots { display: inline-flex; }
.coach__bubble.is-typing span { display: none; }
.coach__dots b { width: 8px; height: 8px; border-radius: 50%; background-color: var(--muted); animation: dot 1s ease-in-out infinite; }
.coach__dots b:nth-child(2) { animation-delay: .15s; }
.coach__dots b:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-5px); filter: opacity(.4); } }
.brief { padding: 24px; border-radius: 24px; background-color: var(--bg); color: var(--text); box-shadow: 0 30px 60px rgba(10, 12, 14, .25); }
.brief__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brief__title { font-family: var(--display); font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.brief__ring { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: conic-gradient(var(--amber) calc(var(--p) * 1%), #272D33 0); transition: --p .6s; }
.brief__ring b { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background-color: var(--bg); font-size: .85rem; }
.brief__list { display: grid; gap: 12px; margin-top: 20px; }
.brief__list div { padding-top: 12px; border-top: 1px solid var(--line); animation: said .4s var(--ease) both; }
.brief__list dt { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.brief__list dd { margin-top: 3px; color: var(--text); overflow-wrap: anywhere; }
.brief__empty { margin-top: 18px; color: var(--muted); }

@media (max-width: 900px) {
  .survey__grid { grid-template-columns: minmax(0, 1fr); }
  /* phone: contact.js moves the coach above the question card; the brief stays a desktop extra */
  .survey__side { display: none; }
  .survey__main > .coach { margin-bottom: 14px; }
  .coach img { width: 30px; }
  .coach__bubble { flex: 1; min-height: 4.6em; padding: 11px 14px; font-size: .9rem; }
  .survey__hint { display: none; }
}
@media (max-width: 560px) { .form__row { grid-template-columns: minmax(0, 1fr); } .opts--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .survey__form.is-js .q.is-on, .coach img, .coach__dots b, .brief__list div, .wheel::before, .opt--orb, .wheel__hub, .opt { animation: none; } .wheel { transform: none; } }
