/* simply. The six-step enquiry (spec 2026-11-23 section 5). Same ground as Home; the cards sit above the grain. */
.enq { padding: 72px 16px 40px; }
.enq-grid { display: grid; gap: 20px; max-width: 560px; margin: 0 auto; }
.step-card, .thanks { padding: 24px; }
.noscript { margin: 0; font-size: 17px; line-height: 24px; }
/* The form is in the markup but shown only once the head script has set .js, so it never pops in and shifts the page. */
#enquiry { display: none; }
.js #enquiry { display: block; }

.card-head { display: grid; }
.back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: -12px 0 0 -8px; padding: 0 8px;
  border: 0; background: none; color: var(--purple); font: 600 15px/1 var(--font-body); cursor: pointer; }
.back[hidden] { display: none; }
.kicker { margin: 0; font: 600 14px/17px var(--font-body); color: var(--ink-2); }
.progress { margin: 14px 0 0; font: 600 14px/17px var(--font-body); color: var(--ink); }
.bar { display: block; height: 4px; margin-top: 8px; border-radius: 2px; background: #EDE5FC; overflow: hidden; }   /* Figma 310:10 */
#progress-fill { display: block; height: 100%; background: var(--purple); transform: scaleX(var(--fill, .1667)); transform-origin: left; }

.enq fieldset, .enq [data-step] { margin: 24px 0 0; padding: 0; border: 0; min-width: 0; }
.enq legend { padding: 0; }
.enq h1 { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 125%;
  font-size: 30px; line-height: 34px; letter-spacing: -0.02em; color: var(--purple); }       /* Figma 311:5 heading */
.enq h1:focus { outline: none; }
.hint { margin: 8px 0 0; font-size: 16px; line-height: 20px; color: var(--ink-2); }

/* Errors (proposal P3): words, an icon and a red edge, never colour alone */
.step-error { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; color: #B3261E; font: 600 15px/20px var(--font-body); }
.step-error[hidden] { display: none; }
.step-error::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("img/alert.svg") center / contain no-repeat; mask: url("img/alert.svg") center / contain no-repeat; }

.answers { display: grid; gap: 10px; margin-top: 24px; }
.hint ~ .answers { margin-top: 32px; }   /* Figma 315:3 heading group is 8px taller than its text */
.answer { position: relative; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 18px; border-radius: 16px;
  background: var(--white); box-shadow: inset 0 0 0 1.5px #D9D0EE; font: 600 18px/22px var(--font-body); color: var(--ink); cursor: pointer;
  transition: background-color 120ms var(--ease-out), box-shadow 120ms var(--ease-out); }           /* Figma 311:807 "Answer: default" */
.answer input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.answer .box { flex: none; width: 20px; height: 20px; border-radius: 5px; background: var(--white) center / 14px no-repeat; box-shadow: inset 0 0 0 1.5px #B9AED6; }
.answer .box--radio { border-radius: 50%; }
.answer .text { flex: 1; }
.answer .tick { flex: none; width: 16px; height: 11px; color: var(--purple); opacity: 0; }
.answer:hover { background: #F3EDFF; }                                                              /* "Answer: hover" */
.answer:has(input:focus-visible) { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: 16px; }       /* "Answer: keyboard focus" */
.answer:has(input:checked) { background: var(--lemon); box-shadow: inset 0 0 0 3px var(--purple); } /* "Answer: selected" */
.answer:has(input:checked) .box { background-color: var(--purple); box-shadow: none; }
.answer:has(input[type="checkbox"]:checked) .box { background-image: url("img/check-white.svg"); }
.answer:has(input:checked) .tick { opacity: 1; }
[data-step]:has([aria-invalid="true"]) .answer { box-shadow: inset 0 0 0 2px #B3261E; }

.field { display: grid; gap: 8px; margin-top: 24px; }
.field + .field { margin-top: 16px; }
.field ~ .hint { margin-top: 16px; }
.field label { font: 600 15px/18px var(--font-body); }
.enq input[type="text"], .enq input[type="email"], .enq input[type="tel"] { width: 100%; min-height: 56px; margin-top: 24px; padding: 14px 18px; border: 0;
  border-radius: 16px; background: var(--white); box-shadow: inset 0 0 0 1.5px #B9AED6; font: 400 17px/24px var(--font-body); color: var(--ink); }  /* "Field: default" */
.enq .field input { margin-top: 0; }
.enq input::placeholder { color: #6B6477; }
.enq input:focus { outline: 2px solid transparent; outline-offset: 2px; box-shadow: inset 0 0 0 2px var(--purple); }                    /* "Field: focus" */
.enq input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #B3261E; }

.next, .send { display: block; width: 100%; min-height: 56px; margin-top: 24px; border: 0; border-radius: 999px; font: 600 17px/1 var(--font-body); cursor: pointer;
  transition: background-color 120ms var(--ease-out), color 120ms var(--ease-out), box-shadow 120ms var(--ease-out); }
.next { background: var(--white); color: #6B6477; box-shadow: inset 0 0 0 1.5px #D9D0EE; }          /* "Next: before an answer" */
.next.ready, .send { background: var(--lemon); color: var(--purple); box-shadow: inset 0 0 0 3px var(--purple); }  /* "Next: ready" */
.send[disabled] { opacity: .7; cursor: progress; }
.cf-turnstile { margin-top: 16px; }
.cf-turnstile:empty { margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy { margin: 12px 0 0; font-size: 14px; line-height: 18px; color: var(--ink-2); }
.send-note { margin: 16px 0 0; color: #B3261E; font: 600 15px/20px var(--font-body); }
.send-note p { margin: 0; } .send-note p + p { margin-top: 6px; }

/* Thank-you */
.thanks h1 { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 125%; font-size: 30px; line-height: 34px; color: var(--purple); }
/* The first .ty-sub follows the heading by 24px (Figma 311:694 to 311:696) */
.thanks h1 + .ty-sub { margin-top: 24px; }
.thanks h1:focus { outline: none; }
.ty-sub { margin: 20px 0 0; font: 600 18px/22px var(--font-body); color: var(--ink); }
.next-list { list-style: none; counter-reset: n; margin: 20px 0 0; padding: 0; display: grid; gap: 16px; }
.next-list li { counter-increment: n; display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: center; font-size: 17px; line-height: 24px; }
.next-list li::before { content: counter(n); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--lemon); box-shadow: inset 0 0 0 2px var(--purple); color: var(--purple);
  font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 125%; font-size: 15px; line-height: 1; }
.told { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; font-size: 17px; line-height: 21px; }
.ty-back { display: inline-block; margin: 10px 0 -10px; padding: 10px 0; font: 600 17px/1 var(--font-body); color: var(--purple); text-underline-offset: 3px; }

/* WhatsApp card */
.wa { padding: 24px; border-radius: var(--radius-card); background: #2E8B5E; color: var(--white); box-shadow: var(--shadow-card); }   /* Figma 310:33 fill */
.wa h2 { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 900; font-stretch: 125%; font-size: 28px; line-height: 30px; }
.wa p { margin: 16px 0 0; font-size: 17px; line-height: 21px; }
.wa-btn { display: flex; justify-content: center; align-items: center; min-height: 48px; margin-top: 16px; border-radius: 999px; background: var(--white);
  color: #2E8B5E; font: 600 16px/1 var(--font-body); text-decoration: none; }
.wa-btn:focus-visible { outline-color: var(--white); }
.wa .wa-number { font-size: 14px; line-height: 17px; color: rgba(255, 255, 255, .8); }

@media (min-width: 900px) {
  .enq { padding: 120px 0 80px; }
  .enq-grid { max-width: none; grid-template-columns: 760px 400px; gap: 40px; justify-content: center; align-items: start; }
  .step-card, .thanks { grid-column: 1; grid-row: 1; padding: 48px; }
  .wa { grid-column: 2; grid-row: 1; padding: 40px; }
  .enq h1, .thanks h1 { font-size: 42px; line-height: 46px; }
  .thanks h1 { line-height: 50px; }                                   /* Figma 310:12 */
  .next, .send { width: 220px; }
  .wa h2 { font-size: 30px; line-height: 34px; }
}
