/* Quote form and enquiry thank-you page.
   Builds on main.css tokens (--paper, --ink, --violet, --hairline, --r-card,
   --display, --sans). Mobile first: one column, then two from 700px. */

.qf [hidden], .qt [hidden], .qf-sec [hidden] { display: none !important; }

/* ---------- section wrapper on service pages and guides ---------- */
.qf-sec {
  background: var(--paper-2);
  border-top: 1px solid var(--hairline);
  padding: clamp(3rem, 8vh, 5.5rem) 0;
  scroll-margin-top: var(--nav-h);
}
.qf-sec__in { max-width: 52rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 3rem); }
.qf-sec__eyebrow {
  display: inline-block; font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet);
}
.qf-sec h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.9rem, 5vw, 3.2rem); line-height: 1; margin-top: 0.7rem;
  overflow-wrap: break-word;
}
.qf-sec h2 .vio { color: var(--violet); }
.qf-sec__sub { color: var(--muted); max-width: 54ch; margin-top: 0.9rem; font-size: clamp(0.98rem, 1.5vw, 1.08rem); }

.qf-card {
  margin-top: clamp(1.5rem, 4vh, 2.2rem);
  background: #ffffff; border: 1px solid var(--hairline); border-radius: var(--r-card);
  padding: clamp(1.1rem, 4vw, 2.2rem);
  box-shadow: 0 24px 60px rgba(16, 16, 20, 0.06);
}

/* ---------- home page variant ---------- */
.qf-sec--home { padding: clamp(4rem, 10vh, 7rem) 0; }
.qf-home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.qf-home .lede { margin-top: 1rem; }
@media (min-width: 1000px) {
  .qf-home { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
  .qf-home__head { position: sticky; top: calc(var(--nav-h) + 2rem); }
  .qf-home .qf-card { margin-top: 0; }
}

/* ---------- the form ---------- */
.qf { position: relative; }
.qf__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem 1.25rem; }
@media (min-width: 700px) {
  .qf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qf__field--wide { grid-column: 1 / -1; }
}
.qf__field { min-width: 0; }
.qf__label { display: block; font-weight: 600; font-size: 0.92rem; color: var(--ink); margin-bottom: 0.45rem; line-height: 1.3; }
.qf__opt { font-weight: 400; color: var(--muted); }

.qf__input {
  display: block; width: 100%; min-width: 0; max-width: 100%;
  font-family: var(--sans); font-size: 1rem; line-height: 1.35; color: var(--ink);
  background-color: #ffffff;
  border: 1.5px solid rgba(16, 16, 20, 0.2); border-radius: 12px;
  padding: 0.8rem 1rem; min-height: 3.1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
select.qf__input {
  -webkit-appearance: none; appearance: none;
  padding-right: 2.6rem; text-overflow: ellipsis; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23101014' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px 8px;
}
.qf__area { min-height: 7rem; resize: vertical; }
.qf__input:hover { border-color: rgba(16, 16, 20, 0.42); }
.qf__input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(108, 43, 242, 0.18); }
.qf__hint { color: var(--muted); font-size: 0.83rem; margin-top: 0.4rem; line-height: 1.45; }

/* errors: colour plus an icon and words, never colour alone */
.qf__msg { display: none; align-items: flex-start; gap: 0.45rem; color: #b3261e; font-size: 0.86rem; font-weight: 500; margin-top: 0.45rem; line-height: 1.4; }
.qf__msg::before {
  content: "!"; flex: none; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: #b3261e; color: #ffffff; font-size: 0.72rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; margin-top: 0.1rem;
}
.qf__field.is-bad .qf__label { color: #b3261e; }
.qf__field.is-bad .qf__input { border-color: #b3261e; background-color: #fff8f7; }
.qf__field.is-bad .qf__input:focus { box-shadow: 0 0 0 4px rgba(179, 38, 30, 0.18); }
.qf__field.is-bad .qf__msg { display: flex; }

.qf__err {
  display: none; margin-top: 1.2rem; padding: 0.85rem 1rem; border-radius: 12px;
  background: #fdecea; color: #8c1d18; border: 1px solid rgba(179, 38, 30, 0.3);
  font-weight: 500; font-size: 0.93rem;
}
.qf__err.is-on { display: block; }

/* honeypot: off screen for people, still in the DOM for bots */
.qf__pot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.qf__actions { margin-top: 1.4rem; display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; }
.qf__submit { justify-content: center; width: 100%; font-size: 1rem; padding: 1.05rem 1.75rem; }
.qf__submit:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.qf__submit[disabled] { opacity: 0.7; cursor: progress; }
.qf__fine { color: var(--muted); font-size: 0.84rem; line-height: 1.5; }
@media (min-width: 700px) {
  .qf__actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 0.75rem 1.4rem; }
  .qf__submit { width: auto; flex: none; }
  .qf__fine { flex: 1 1 16rem; }
}

/* ---------- enquiry thank-you page ---------- */
.qt { padding: calc(var(--nav-h) + clamp(2rem, 6vh, 4rem)) 0 clamp(3rem, 8vh, 5rem); }
.qt__in { max-width: 44rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2rem); }
.qt__tick {
  width: 56px; height: 56px; border-radius: 50%; background: var(--violet); color: #ffffff;
  display: flex; align-items: center; justify-content: center;
}
.qt__tick svg { width: 28px; height: 28px; }
.qt h1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.2rem, 7vw, 3.8rem); line-height: 0.98; margin-top: 1.2rem;
  overflow-wrap: break-word;
}
.qt h1 .vio { color: var(--violet); }
.qt__lede { color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.12rem); max-width: 50ch; margin-top: 1rem; }
.qt__cta { display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; margin-top: 1.6rem; }
.qt__cta .btn { justify-content: center; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.02rem; }
@media (min-width: 560px) {
  .qt__cta { flex-direction: row; flex-wrap: wrap; align-items: center; }
}
.qt__fine { color: var(--muted); font-size: 0.86rem; margin-top: 0.8rem; }
.qt__fine a { color: var(--violet-deep); text-decoration: underline; text-underline-offset: 3px; }

.qt__card {
  background: #ffffff; border: 1px solid var(--hairline); border-radius: var(--r-card);
  padding: clamp(1.1rem, 4vw, 1.8rem); margin-top: 1.8rem;
}
.qt__card h2 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); font-weight: 600; }
.qt__card p { color: #2b2a31; margin-top: 0.7rem; }

.qt__list { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 0.6rem; }
.qt__list dt { color: var(--muted); font-size: 0.8rem; font-weight: 500; padding-top: 0.75rem; border-top: 1px solid var(--hairline); margin-top: 0.75rem; }
.qt__list dt:first-child { border-top: 0; margin-top: 0; }
.qt__list dd { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; white-space: pre-wrap; margin-top: 0.15rem; }
@media (min-width: 560px) {
  .qt__list { grid-template-columns: 11rem minmax(0, 1fr); column-gap: 1rem; }
  .qt__list dt, .qt__list dd { padding: 0.7rem 0; margin: 0; border-top: 1px solid var(--hairline); }
  .qt__list dt:first-of-type, .qt__list dt:first-of-type + dd { border-top: 0; }
}

.qt__steps { list-style: decimal; padding-left: 1.25rem; display: grid; gap: 0.6rem; margin-top: 0.8rem; }
.qt__steps li { color: #2b2a31; }
.qt__steps b { color: var(--ink); font-weight: 600; }
