/* The enquiry form (founder s129: "clean", "more professional"). The same
   palette and type as zaaheen.com (site/src/styles/global.css): paper, ink,
   sage; Newsreader for headings, IBM Plex Sans for text. The fonts are served
   from this host (font-src 'self'), with their licences in /fonts/. */
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/plex-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/plex-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/plex-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #26221c; --ink-soft: #3a352c; --muted: #6b655b; --faint: #756e63;
  --paper: #faf8f3; --card: #ffffff; --line: #ece6d9; --border: #ddd6c7; --chip: #f0ece2;
  --sage: #7fae8e; --sage-deep: #5f9475; --sage-text: #4a765b; --tint: #f1f6f2; --tint-line: #d6e3d9;
  --error: #a3392b;
  --serif: "Newsreader", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration-color: var(--sage-deep); text-underline-offset: 3px; }
::selection { background: var(--tint-line); color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--sage-deep); outline-offset: 2px; }

/* ---------- top bar ---------- */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top-inner { max-width: 1080px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-name { font: 500 21px var(--serif); }
.brand-line { font-size: 13.5px; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--border); white-space: nowrap; }
.back { font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.back:hover { color: var(--ink); text-decoration: underline; }

/* ---------- layout: the words beside the card ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 56px 24px 72px; display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.intro { position: sticky; top: 32px; }
h1 { font: 450 clamp(32px, 4vw, 44px)/1.1 var(--serif); letter-spacing: -0.015em; margin: 0 0 16px; text-wrap: balance; }
.lede { margin: 0 0 32px; font-size: 17px; color: var(--ink-soft); max-width: 44ch; }
.next-title { font: 500 19px var(--serif); margin: 0 0 14px; }
.next { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.next li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15.5px; color: var(--ink-soft); }
.next-no { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--tint); border: 1px solid var(--tint-line); color: var(--sage-text); font-weight: 600; font-size: 13.5px; }
.assure { margin: 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.assure + .assure { border-top: 0; padding-top: 6px; }

/* ---------- the card ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px 32px 28px;
  box-shadow: 0 1px 2px rgba(38, 34, 28, 0.04), 0 18px 44px rgba(38, 34, 28, 0.07); }
.group { border: 0; margin: 0 0 8px; padding: 0 0 12px; min-width: 0; }
.group + .group { border-top: 1px solid var(--line); padding-top: 22px; }
/* Floated, a legend sits inside its fieldset like a heading, not on its border. */
legend { float: left; width: 100%; padding: 0; margin: 0 0 14px; font: 500 18px var(--serif); color: var(--ink); }
legend + * { clear: both; }
.nw { white-space: nowrap; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; min-width: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.row .field { margin-bottom: 14px; }
label { font-weight: 500; font-size: 14px; color: var(--ink); }
.opt { font-weight: 400; font-size: 12.5px; color: var(--faint); margin-left: 4px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  font: inherit; font-size: 15.5px; color: var(--ink); background: var(--card); width: 100%;
  border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; min-height: 46px;
  transition: border-color 0.15s, box-shadow 0.15s; }
textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #9a9387; }
input:hover, select:hover, textarea:hover { border-color: #c9c1b0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sage-deep); box-shadow: 0 0 0 3px rgba(127, 174, 142, 0.25); }
/* Our own arrow on the selects, drawn in CSS, so they match on every system. */
select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
select:invalid { color: #8a8378; }
select option { color: var(--ink); }
/* After a send was tried, a field still missing shows it. */
form.is-tried input:invalid, form.is-tried select:invalid { border-color: var(--error); }
.phone { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 8px; }
.help { margin: 0; color: var(--muted); font-size: 13px; }

.consent { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 20px; padding: 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.consent label { font-weight: 400; font-size: 14px; color: var(--ink-soft); display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--sage-deep); cursor: pointer; }
.check { margin: 0 0 16px; }
button { width: 100%; font: 500 16px var(--sans); background: var(--ink); color: var(--paper); border: 0; border-radius: 999px;
  padding: 15px 28px; cursor: pointer; transition: background 0.15s, transform 0.2s; }
button:hover { background: var(--ink-soft); }
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.6; cursor: wait; }
.status { min-height: 1.5em; margin: 12px 0 0; font-size: 14.5px; color: var(--muted); text-align: center; }
.done { margin: 0; padding: 28px 24px; border-radius: 12px; background: var(--tint); border: 1px solid var(--tint-line);
  font: 400 20px/1.45 var(--serif); color: var(--ink); text-align: center; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); }
.foot p { max-width: 1080px; margin: 0 auto; padding: 20px 24px 28px; font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); }

@media (max-width: 860px) {
  .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 36px; }
  .intro { position: static; }
  .next-title, .next { display: none; }
  .lede { margin-bottom: 16px; }
  .assure { padding-top: 12px; font-size: 14px; }
}
@media (max-width: 560px) {
  .top-inner { padding: 10px 16px; }
  .brand-line { display: none; }
  .wrap { padding: 28px 16px 56px; }
  .card { padding: 22px 18px 20px; border-radius: 14px; }
  .row, .phone { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .phone { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
