/* ------------------------------------------------------------------
   Public enquiry form.

   Painted in WowDash's palette (primary #487FFF, the same neutral scale
   and radius steps) so it reads as the same product as the admin panel,
   but deliberately kept self-contained: one request, ~5 KB, no
   framework, no icon font, no web font. This page is the landing target
   for paid ad traffic, where WowDash's ~1 MB of CSS/JS would be a real
   cost on every click.

   Typography uses a system stack rather than loading Inter -- visually
   close on the platforms that matter, and zero extra requests.
   ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* WowDash primary + neutral scale */
  --brand:       #487FFF;
  --brand-dark:  #3B6FE0;
  --brand-soft:  #E4F1FF;
  --ink:         #111827;   /* neutral-900 */
  --muted:       #6B7280;   /* neutral-500 */
  --line:        #EBECEF;   /* neutral-200 */
  --field-bg:    #F5F6FA;   /* neutral-50  */
  --bg:          #F5F6FA;
  --danger:      #DC2626;
  --success:     #16A34A;
  --radius:      20px;      /* rounded-20 */
  --radius-field: 12px;     /* rounded-12 */
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  background-image:
    radial-gradient(1100px 460px at 50% -8%, #E4F1FF 0%, rgba(228, 241, 255, 0) 62%);
  color: var(--ink);
  font: 16px/1.55 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 14px calc(24px + env(safe-area-inset-bottom));
}

.card {
  width: 100%;
  max-width: 470px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 18px 44px -14px rgba(17, 24, 39, .16);
  padding: 28px 24px 26px;
}

/* ---------- heading ---------- */

.head { margin-bottom: 22px; text-align: center; }

.head h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.25;
  color: var(--ink);
}

.head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14.5px;
}

/* ---------- fields ---------- */

.field { margin-bottom: 16px; }

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.field label span { color: var(--danger); }

.field input,
.field select {
  width: 100%;
  /* 16px minimum stops iOS Safari zooming in on focus */
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  padding: 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-field);
  background: var(--field-bg);
  appearance: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%236B7280' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field input::placeholder { color: #9AA1AE; }

.field input:focus,
.field select:focus {
  outline: none;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(72, 127, 255, .16);
}

.field.has-error input,
.field.has-error select { border-color: var(--danger); background: #FEF2F2; }

.err {
  display: block;
  margin-top: 6px;
  color: var(--danger);
  font-size: 12.5px;
}

.banner {
  margin-bottom: 18px;
  padding: 11px 14px;
  border-radius: var(--radius-field);
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  font-size: 13.5px;
}

/* ---------- honeypot: off-screen, never focusable by tab ---------- */

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

/* ---------- submit ---------- */

.submit {
  width: 100%;
  margin-top: 8px;
  padding: 15px 16px;
  font: 700 15px/1 inherit;
  letter-spacing: .04em;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: var(--radius-field);
  cursor: pointer;
  transition: background .15s, transform .06s, box-shadow .15s;
  box-shadow: 0 6px 16px -6px rgba(72, 127, 255, .5);
  -webkit-tap-highlight-color: transparent;
}

.submit:hover  { background: var(--brand-dark); }
.submit:active { transform: translateY(1px); }
.submit:focus-visible { outline: 3px solid rgba(72, 127, 255, .4); outline-offset: 2px; }
.submit[disabled] { opacity: .65; cursor: default; }

.note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- success state ---------- */

.success { text-align: center; padding: 16px 4px 8px; }

.success h1 { margin: 16px 0 0; font-size: 21px; font-weight: 700; letter-spacing: -.015em; }

.success p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

.success .tick {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto;
  stroke: var(--success);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success .tick circle { stroke: #BBF7D0; stroke-width: 3; }

/* ---------- WhatsApp call to action ---------- */

.wa {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

/* Sits between the muted success message and the green button, so it needs
   to out-weigh both: larger and heavier than the body copy, and full-ink
   rather than the muted grey used above it.

   Scoped as `.wa .wa-heading` deliberately -- this is a <p> inside .success,
   and `.success p` (0,1,1) would otherwise win on specificity and force the
   text back to 15px muted grey with no bottom margin. */
.wa .wa-heading {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -.015em;
  color: var(--ink);
}

.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-field);
  background: #25D366;          /* WhatsApp brand green */
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px -6px rgba(37, 211, 102, .6);
  transition: background .15s, transform .06s;
  -webkit-tap-highlight-color: transparent;
}

.wa-btn svg { width: 21px; height: 21px; fill: currentColor; flex-shrink: 0; }

.wa-btn:hover  { background: #1EBE5A; }
.wa-btn:active { transform: translateY(1px); }
.wa-btn:focus-visible { outline: 3px solid rgba(37, 211, 102, .45); outline-offset: 2px; }

.again {
  display: inline-block;
  margin-top: 20px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.again:hover { text-decoration: underline; }

@media (min-width: 480px) {
  .card { padding: 34px 32px 30px; }
  .head h1 { font-size: 24px; }
}

/* ---------- long-form document pages (privacy policy) ---------- */
/* .page centres its child vertically, which is right for a short form and
   wrong for a page that scrolls -- override the alignment, not the layout. */

.page-doc { align-items: flex-start; }

.card-doc {
  max-width: 760px;
  padding: 28px 22px 24px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
}

.doc-head { margin-bottom: 20px; }

.doc-head h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.doc-meta {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.doc-lead {
  margin: 0 0 4px;
  padding: 14px 16px;
  background: var(--brand-soft);
  border-radius: var(--radius-field);
  color: var(--ink);
}

.card-doc h2 {
  margin: 30px 0 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.card-doc h3 {
  margin: 20px 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.card-doc p  { margin: 10px 0; }
.card-doc ul { margin: 10px 0; padding-left: 22px; }
.card-doc li { margin: 6px 0; }

.card-doc code {
  padding: 1px 5px;
  background: var(--field-bg);
  border-radius: 5px;
  font-size: 13px;
}

.card-doc a { color: var(--brand); }
.card-doc a:hover { text-decoration: underline; }

.doc-back {
  margin: 30px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

/* ---------- privacy link under the enquiry form ---------- */

.legal {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.legal a { color: var(--muted); text-decoration: underline; }
.legal a:hover { color: var(--brand); }

@media (min-width: 480px) {
  .card-doc { padding: 36px 40px 32px; }
  .doc-head h1 { font-size: 28px; }
}
