/* ==========================================================================
   ENQUIRY FORM
   Single column, generous targets, sidebar showing exactly what is being
   enquired about so the buyer never wonders whether their choice carried over.
   ========================================================================== */

.enq {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  padding-bottom: var(--sp-8);
}

@media (min-width: 1024px) {
  .enq {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: var(--sp-7);
    align-items: start;
  }
}

.enq__main { min-width: 0; max-width: 680px; }

.enq__title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-display);
  margin: 0 0 var(--sp-3);
}

.enq__lede {
  color: var(--ink-mute);
  font-size: 1.0625rem;
  margin-bottom: var(--sp-6);
}

.enq__foot {
  font-size: 0.82rem;
  color: var(--ink-mute);
  margin-top: var(--sp-4);
  text-align: center;
}

/* ---- Fieldsets ------------------------------------------------------- */

.enq-set {
  border: 0;
  padding: 0;
  margin: 0 0 var(--sp-6);
}

.enq-set > legend {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--tbs-green);
  padding: 0 0 var(--sp-3);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
  width: 100%;
}

.enq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

@media (min-width: 640px) {
  .enq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Fields ---------------------------------------------------------- */

.fld { margin-bottom: var(--sp-4); }
.enq-grid .fld { margin-bottom: 0; }

.fld label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.fld .req { color: var(--danger); font-weight: 400; }

/* Marking what is optional does more for perceived effort than marking what is
   required - the eye counts the asterisks either way. */
.fld .opt {
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--ink-mute);
  text-transform: none;
  letter-spacing: 0;
}

.fld input[type="text"],
.fld input[type="tel"],
.fld input[type="email"],
.fld input[type="number"],
.fld input[type="date"],
.fld input:not([type]),
.fld select,
.fld textarea {
  width: 100%;
  padding: 13px 14px;
  font-family: inherit;
  /* 16px minimum: anything smaller and iOS zooms the page on focus */
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  min-height: 48px;
  transition: border-color var(--dur-micro) var(--ease-brand),
              box-shadow var(--dur-micro) var(--ease-brand);
}

.fld textarea { min-height: 110px; resize: vertical; line-height: 1.55; }

.fld input:focus,
.fld select:focus,
.fld textarea:focus {
  border-color: var(--tbs-green);
  box-shadow: 0 0 0 3px var(--tbs-green-soft);
  outline: none;
}

.fld input:user-invalid,
.fld select:user-invalid { border-color: var(--danger); }

.hint {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-mute);
  margin-top: var(--sp-2);
  line-height: 1.45;
}

.hint--ok { color: var(--success); font-weight: 600; }
.hint--warn { color: var(--warning); }

/* ---- Checkboxes ------------------------------------------------------ */

.fld--check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
}

.fld--check input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  flex: 0 0 auto;
  accent-color: var(--tbs-green);
  cursor: pointer;
}

.fld--check label {
  margin: 0;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.5;
}

/* ---- Honeypot -------------------------------------------------------- */
/* Positioned off-screen rather than display:none. Some bots skip hidden
   fields but will happily fill a positioned one. */

.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Optional extras (collapsed) ------------------------------------- */
/* The form should read as five fields, not fifteen. Everything that helps but
   is not needed lives in here, shut by default. */

.enq-more {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  margin-bottom: var(--sp-5);
}

.enq-more > summary {
  cursor: pointer;
  list-style: none;
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
  padding-right: var(--sp-8);
}

.enq-more > summary::-webkit-details-marker { display: none; }

.enq-more > summary span {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--tbs-green);
}

.enq-more > summary small { font-size: 0.8rem; color: var(--ink-mute); }

.enq-more > summary::after {
  content: "+";
  position: absolute;
  right: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--ink-mute);
}

.enq-more[open] > summary::after { content: "\2212"; }
.enq-more[open] > summary { border-bottom: 1px solid var(--line); }

.enq-more__body { padding: var(--sp-4); }
.enq-more__body > .fld:last-child { margin-bottom: 0; }

/* ---- Sidebar --------------------------------------------------------- */

.enq__side {
  display: grid;
  gap: var(--sp-4);
  align-content: start;
}

@media (min-width: 1024px) {
  .enq__side { position: sticky; top: 100px; }
}

.enq-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--sp-4);
}

.enq-card--why { background: var(--tbs-green-soft); border-color: transparent; }

.enq-card__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 var(--sp-3);
}

.enq-card__img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-input);
  background: var(--cream-deep);
  margin-bottom: var(--sp-3);
}

.enq-card__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.3;
  margin: 0 0 var(--sp-2);
}

.enq-card__price {
  font-weight: 700;
  color: var(--tbs-green);
  margin: 0 0 var(--sp-3);
}

.enq-card__price span {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--ink-mute);
}

.enq-card__box {
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--gold-soft);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-input);
  margin: 0 0 var(--sp-3);
}

.enq-card__list {
  list-style: none;
  margin: 0 0 var(--sp-3);
  padding: 0;
  font-size: 0.85rem;
  color: var(--ink-mute);
}

.enq-card__list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: var(--sp-2);
}

.enq-card__list li:last-child { border-bottom: 0; }

.enq-card__change { font-size: 0.85rem; }

/* ---- Shortlist lines in the sidebar --------------------------------- */

.enq-lines { list-style: none; margin: 0 0 var(--sp-3); padding: 0; }

.enq-lines li {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}

.enq-lines li:last-child { border-bottom: 0; }

.enq-lines img,
.enq-lines__noimg {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-input);
  background: var(--cream-deep);
}

.enq-lines__body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }

.enq-lines__body strong {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.enq-lines__box {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6B5320;
  background: var(--gold-soft);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

.enq-lines__qty {
  font-size: 0.78rem;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}

.enq-card__total {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--sp-3);
}

.enq-card__total strong { color: var(--tbs-green); }

.enq-steps {
  margin: 0;
  padding-left: var(--sp-4);
  font-size: 0.875rem;
  color: var(--tbs-green-deep);
}

.enq-steps li { margin-bottom: var(--sp-2); line-height: 1.5; }

/* ==========================================================================
   THANK YOU
   The one screen where a little ceremony is earned: the buyer has just handed
   over their details and needs to feel the enquiry landed.
   ========================================================================== */

.ty-hero {
  background: linear-gradient(170deg, var(--tbs-green) 0%, var(--tbs-green-deep) 100%);
  color: rgba(255, 255, 255, .9);
  text-align: center;
  padding-block: var(--sp-8) var(--sp-9);
  position: relative;
  overflow: hidden;
}

.ty-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -46% auto;
  width: 46%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(200, 169, 106, .3), transparent 64%);
  pointer-events: none;
}

.ty-hero > .container { position: relative; z-index: 2; max-width: 62ch; }

/* ---- Animated tick --------------------------------------------------- */

.ty-tick { width: 76px; height: 76px; margin: 0 auto var(--sp-5); }
.ty-tick svg { width: 100%; height: 100%; overflow: visible; }

.ty-tick__ring,
.ty-tick__mark {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ty-tick__ring { stroke: var(--gold); stroke-width: 2; }
.ty-tick__mark { stroke: var(--white); stroke-width: 3.5; }

/* Ring draws, then the tick strikes through it. Plays once, ~1s total. */
.ty-tick__ring {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: draw-ring 620ms var(--ease-brand) forwards;
}

.ty-tick__mark {
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  animation: draw-mark 380ms var(--ease-brand) 480ms forwards;
}

@keyframes draw-ring { to { stroke-dashoffset: 0; } }
@keyframes draw-mark { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .ty-tick__ring, .ty-tick__mark { animation: none; stroke-dashoffset: 0; }
}

.ty-hero__eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--sp-2);
}

.ty-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  color: var(--white);
  margin: 0 0 var(--sp-3);
}

.ty-hero__lede {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, .84);
  margin: 0 auto;
  max-width: 46ch;
}

.ty-hero__hint {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, .6);
  margin: var(--sp-3) 0 0;
}

/* ---- Reference number ------------------------------------------------ */

.ty-ref {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(200, 169, 106, .5);
  border-radius: var(--radius-card);
  padding: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-5);
}

.ty-ref__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
  width: 100%;
}

.ty-ref__no {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 3.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gold);
}

.ty-ref__copy {
  background: none;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: var(--radius-pill);
  color: var(--white);
  font: inherit;
  font-size: 0.78rem;
  padding: 6px 14px;
  cursor: pointer;
}

.ty-ref__copy:hover { background: rgba(255, 255, 255, .14); }

/* ---- Body ------------------------------------------------------------ */

.ty-body { padding-block: var(--sp-7) var(--sp-8); }

.ty-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
}

.ty-panel--tint { background: var(--tbs-green-soft); border-color: transparent; }

.ty-panel h2 {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--tbs-green);
  margin: 0 0 var(--sp-4);
}

.ty-panel__note { font-size: 0.8rem; color: var(--ink-mute); margin: var(--sp-3) 0 0; line-height: 1.5; }

.ty-cols { display: grid; grid-template-columns: 1fr; gap: var(--sp-5); }

@media (min-width: 900px) {
  .ty-cols { grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
  .ty-cols .ty-panel { margin-bottom: 0; }
}

/* ---- Items ----------------------------------------------------------- */

.ty-items { list-style: none; margin: 0; padding: 0; }

.ty-items li {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--line);
}

.ty-items li:last-child { border-bottom: 0; }

.ty-items img,
.ty-items__noimg {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-input);
  background: var(--cream-deep);
}

.ty-items__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ty-items__body a { text-decoration: none; color: var(--ink); }
.ty-items__body a:hover strong { color: var(--tbs-green); }
.ty-items__body strong { font-size: 0.9375rem; line-height: 1.3; }

.ty-items__box {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6B5320;
  background: var(--gold-soft);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

.ty-items__qty {
  text-align: right;
  font-size: 0.8rem;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ty-items__qty strong { display: block; color: var(--tbs-green); font-size: 0.9375rem; }

.ty-items__total {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  margin-top: var(--sp-2);
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.ty-items__total strong { color: var(--tbs-green); font-size: 1.0625rem; }

/* ---- Steps ----------------------------------------------------------- */

.ty-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }

.ty-steps li {
  display: grid;
  gap: 2px;
  padding: var(--sp-3) 0 var(--sp-3) var(--sp-6);
  position: relative;
  border-bottom: 1px solid var(--line);
}

.ty-steps li:last-child { border-bottom: 0; }

.ty-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: var(--sp-3);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--tbs-green);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.ty-steps strong { font-size: 0.82rem; color: var(--tbs-green); letter-spacing: .02em; }
.ty-steps span { font-size: 0.9rem; color: var(--ink-mute); line-height: 1.5; }

.ty-contact { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

.ty__cta {
  display: flex;
  gap: var(--sp-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--sp-6);
}


/* ---- Consent rows: compact, checkbox beside its label ------------------
   No flex-wrap. It was added to make room for an inline error message; it
   also let the long consent label wrap onto its own line, leaving the
   checkbox stranded above it.
   ---------------------------------------------------------------------- */

.fld--check {
    flex-wrap: nowrap;
    align-items: flex-start;
    padding: 10px 0;
}

    .fld--check label {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    /* Two consent rows together need one gap between them, not two. */
    .fld--check + .fld--check {
        padding-top: 0;
    }

/* ---- The field the customer needs to fix ------------------------------ */

.fld input.is-missing,
.fld select.is-missing,
.fld textarea.is-missing {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(176, 65, 62, .14);
}

.fld--check input[type="checkbox"].is-missing {
    outline: 2px solid var(--danger);
    outline-offset: 2px;
}