/* contact-page.css — built 2026-05-09 for s6d.
 *
 * HYBRID donor strategy:
 *   - Structure / layout / breakpoints from live theme.css contact rules
 *     (dev/site_crawl/2026-04-29/contact/theme-style.css lines 1678–1861):
 *     2-column grid, max-width 1000px, mobile reflow @768px (cover above form),
 *     form field sizing, honeypot hide pattern.
 *   - Styling (palette, fonts, hero, button shape) from sister pages
 *     (specs/book-page.css, specs/faq-page.css) — Kate's NEW design system.
 *
 * Live theme.css uses an OLDER design system (periwinkle/yellow/Atkinson
 * Hyperlegible) that conflicts with our new tokens. Verbatim port would
 * ship a contact page visually inconsistent with s6/s7/s6b/s6c at launch.
 *
 * Hero background reuses /img/hero-bg.png (Kate's sparkle pattern,
 * already in build via s6b). Live's glitterbackground_soft.png is a
 * different image (md5 da20cbe2... vs Kate's 83165276...) and 7.5 MB —
 * wrong for our design system, killed for perf.
 *
 * Form action="#" — s9 picks backend. Field names verbatim from live
 * (backend-neutral for Formspree/Render-native/serverless).
 */

.container { max-width: 1000px; margin: 0 auto; }

/* =====================================================
   PAGE HERO — sister-page family pattern
   ===================================================== */

.page-hero {
  padding: 6rem 2rem 5rem;
  background-image: url("/img/hero-bg.png");
  background-size: cover;
  background-position: center;
  position: relative;
  text-align: center;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(60,21,96,0.07);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--purple-deep);
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

/* =====================================================
   CONTACT BODY — 2-col layout (cover left, form right)
   ===================================================== */

.contact-body {
  background: var(--cream);
  padding: 5rem 2rem 6rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-image img {
  width: 60%;
  max-width: 280px;
  filter: drop-shadow(0 20px 50px rgba(60,21,96,0.40)) drop-shadow(0 6px 16px rgba(0,0,0,0.25));
}

.contact-form-side {
  max-width: 450px;
  width: 100%;
}

/* =====================================================
   FORM — Kate-palette inputs, sister-page button
   ===================================================== */

.contact-form {
  display: block;
}

.form-group {
  margin-bottom: 1.4rem;
}

/* Honeypot — keep in DOM for bots, hide from humans + AT */
.form-group--honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.form-input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--lavender);
  border-radius: 2px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder {
  color: var(--ink-light);
  opacity: 1;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(232,168,32,0.18);
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.6;
}

/* Visually hidden labels (donor uses placeholder-as-label) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Checkbox row */
.form-group--checkbox {
  margin-bottom: 1.8rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink-mid);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--purple-mid);
}

/* Submit — matches .btn-preorder shape from book-page.css */
.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-deep);
  background: var(--gold-bright);
  border: none;
  padding: 1rem 2.4rem;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 18px rgba(232,168,32,0.3);
}

.contact-submit:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

.contact-submit:focus-visible {
  outline: 2px solid var(--purple-deep);
  outline-offset: 2px;
}

/* =====================================================
   MOBILE — stack, cover above form
   ===================================================== */

@media (max-width: 768px) {
  .page-hero { padding: 4.5rem 1.5rem 3.5rem; }

  .contact-body { padding: 3.5rem 1.5rem 4rem; }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-image { order: -1; }

  .contact-image img {
    width: 50%;
    max-width: 200px;
  }

  .contact-form-side {
    max-width: 100%;
    margin: 0 auto;
  }
}

/* Inline status message under submit button (mirrors #newsletter-status on home) */
.contact-status {
  color: var(--gold-bright);
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}
.contact-status.is-error {
  color: #d04747;
}
