/* ==========================================================================
   HAF Legal Justice Center — Main Stylesheet
   Phase 1: Foundation (base + header + footer + placeholder)
   ========================================================================== */

/* ===== Design Tokens ===================================================== */
:root {
  --ink: #1a1715;
  --ink-soft: #3a3530;
  --paper: #fbf8f3;
  --paper-warm: #f3ede2;
  --gold: #b08326;
  --gold-deep: #8a6519;
  --crimson: #7a1f1a;
  --crimson-deep: #5c1612;
  --rule: #e2dccf;
  --rule-soft: #ede7da;

  --shadow-soft: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --shadow-card: 0 4px 12px rgba(0,0,0,.08), 0 20px 60px rgba(0,0,0,.12);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-max: 1200px;
  --container-pad: 2.5rem;
}

/* ===== Reset / Base ====================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--gold-deep);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover { color: var(--crimson); }

/* ===== Accessibility ===================================================== */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: .75rem 1rem;
  clip: auto;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ===== Site Header ======================================================= */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 1.75rem 2.5rem;
}

.site-header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* When site-header has no hero behind it (placeholder pages),
   give it solid background and dark variant. */
.no-hero .site-header {
  position: static;
  background: var(--ink);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

/* ===== Brand Mark ======================================================== */
.brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
}

.brand--light { color: #fff; }
.brand--dark { color: var(--ink); }

.brand__haf {
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.brand__haf::before {
  content: "";
  width: 28px;
  height: 28px;
  background: radial-gradient(circle, #f4c453 0%, #d99526 40%, transparent 70%);
  border-radius: 50%;
}

.brand__divider {
  height: 36px;
  width: 1px;
  background: rgba(255,255,255,.4);
}

.brand--dark .brand__divider { background: rgba(26,23,21,.3); }

.brand__ljc {
  display: flex;
  align-items: center;
  gap: .875rem;
}

.brand__ljc-text {
  font-family: var(--font-body);
  font-size: .7rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.brand__ljc-icon {
  width: 36px;
  height: 36px;
  opacity: .95;
}

/* ===== Site Nav (hidden until menu assigned) ============================ */
.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.75rem;
}

.site-nav__list a {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 500;
}

.site-nav__list a:hover { color: #fff; }

/* ===== Return Link ====================================================== */
.site-header__return {
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .02em;
  border-bottom: 1px solid rgba(255,255,255,.3);
  padding-bottom: 2px;
  white-space: nowrap;
}

.site-header__return:hover {
  color: #fff;
  border-bottom-color: rgba(255,255,255,.8);
}

/* ===== Site Footer ======================================================= */
.site-footer {
  background: #14110e;
  color: rgba(255,255,255,.7);
  padding: 3rem 2.5rem 2rem;
}

.site-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
}

.site-footer__disclaimer {
  background: rgba(255,255,255,.04);
  border-left: 2px solid var(--gold);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: .825rem;
  line-height: 1.65;
  color: rgba(255,255,255,.75);
  border-radius: 0 2px 2px 0;
}

.site-footer__disclaimer strong {
  color: #fff;
  font-weight: 600;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.site-footer__col h4 {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .875rem;
}

.site-footer__col p,
.site-footer__col a {
  font-size: .85rem;
  line-height: 1.7;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  display: block;
  margin: 0;
}

.site-footer__col a:hover { color: var(--gold); }

.site-footer__bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .78rem;
  color: rgba(255,255,255,.5);
}

.site-footer__links {
  display: flex;
  gap: 1.5rem;
}

.site-footer__links a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
}

.site-footer__links a:hover { color: var(--gold); }

/* ===== Phase 1 Placeholder Page ========================================== */
.placeholder {
  padding: 5rem 2.5rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.placeholder__inner {
  max-width: 720px;
  margin: 0 auto;
}

.placeholder__eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.placeholder__eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold-deep);
}

.placeholder__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  color: var(--ink);
}

.placeholder__lede {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 2.5rem;
  font-weight: 300;
}

.placeholder__check {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.placeholder__check h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--ink);
}

.placeholder__check ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
  font-size: .95rem;
  line-height: 1.7;
}

.placeholder__check li { margin-bottom: .35rem; }

.placeholder__note {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: .85rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ===== Responsive ======================================================== */
@media (max-width: 900px) {
  .site-header { padding: 1.25rem 1.5rem; }
  .site-header__return { display: none; }
  .site-footer { padding: 2.5rem 1.5rem 1.5rem; }
  .site-footer__cols { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .placeholder { padding: 4rem 1.5rem; }
  .placeholder__check { padding: 1.5rem; }
}

@media (max-width: 500px) {
  .brand__divider { display: none; }
  .brand__ljc-icon { display: none; }
}

/* ==========================================================================
   PHASE 2 — Landing Page Styles
   ========================================================================== */

/* ===== Hero ============================================================== */
.hero {
  position: relative;
  min-height: 720px;
  padding: 8rem 2.5rem 5rem;
  background:
    linear-gradient(135deg, rgba(15,12,9,.85) 0%, rgba(15,12,9,.65) 60%, rgba(15,12,9,.85) 100%),
    radial-gradient(ellipse at 30% 50%, #704a1f 0%, #1c1410 75%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 25% 60%, rgba(176, 131, 38, .18) 0%, transparent 45%);
  pointer-events: none;
}

.hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__text { color: #fff; }

.hero__eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.hero__eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 1.75rem;
  color: #fff;
}

.hero__lede {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255,255,255,.85);
  max-width: 32rem;
  margin: 0 0 2rem;
  font-weight: 300;
}

.hero__meta {
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: 1.5rem;
  margin: 0;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero__meta-item dt {
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .15rem;
}

.hero__meta-item dd {
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  line-height: 1.4;
  margin: 0;
}

/* ===== Form Card ========================================================= */
.form-card {
  background: var(--paper);
  border-radius: 4px;
  padding: 2.25rem 2.25rem 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.form-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
}

.form-card__eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: .5rem;
}

.form-card__title {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 .5rem;
  line-height: 1.15;
}

.form-card__subtitle {
  font-size: .85rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

/* ===== Intake Form Fields ================================================ */
.intake-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .625rem;
  margin-bottom: .625rem;
}

.intake-form__field {
  display: block;
  margin-bottom: .625rem;
}

.intake-form__field input,
.intake-form__field select,
.intake-form__field textarea {
  width: 100%;
  padding: .75rem .875rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.intake-form__field input::placeholder,
.intake-form__field textarea::placeholder {
  color: #9a9389;
}

.intake-form__field input:focus,
.intake-form__field select:focus,
.intake-form__field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 131, 38, .12);
}

.intake-form__field textarea {
  resize: vertical;
  min-height: 90px;
  font-family: var(--font-body);
}

.intake-form__field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%237a716a' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right .875rem center;
  padding-right: 2.25rem;
  color: var(--ink);
}

/* ===== Checkbox Group ==================================================== */
.intake-form__checkboxes {
  border: none;
  padding: 0;
  margin: 0 0 .875rem;
}

.intake-form__checkboxes-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink);
  margin: .25rem 0 .15rem;
  padding: 0;
}

.intake-form__checkboxes-sub {
  font-size: .75rem;
  color: var(--ink-soft);
  margin: 0 0 .625rem;
}

.intake-form__checkboxes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem .875rem;
}

.intake-form__check {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .8rem;
  color: var(--ink-soft);
  cursor: pointer;
  line-height: 1.4;
}

.intake-form__check input {
  margin-top: .15rem;
  accent-color: var(--gold-deep);
  cursor: pointer;
  flex-shrink: 0;
}

/* ===== Disclaimer + Submit =============================================== */
.intake-form__disclaimer {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .72rem;
  color: var(--ink-soft);
  margin: .875rem 0 1rem;
  line-height: 1.5;
  cursor: pointer;
}

.intake-form__disclaimer input {
  margin-top: .2rem;
  flex-shrink: 0;
  accent-color: var(--gold-deep);
}

.intake-form__submit {
  width: 100%;
  padding: .95rem;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
}

.intake-form__submit:hover { background: var(--gold-deep); }
.intake-form__submit:active { transform: translateY(1px); }

/* ===== Confirmation State ================================================ */
.form-card__confirmation {
  text-align: center;
  padding: 1rem 0 .5rem;
}

.form-card__check {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-deep);
  font-size: 1.5rem;
}

.form-card__confirmation h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 .75rem;
  color: var(--ink);
  font-weight: 600;
}

.form-card__confirmation p {
  font-size: .875rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 .75rem;
}

.form-card__ref {
  display: inline-block;
  background: var(--paper-warm);
  padding: .5rem .875rem;
  border-radius: 3px;
  font-size: .8rem;
  font-family: ui-monospace, monospace;
  color: var(--ink);
  margin-top: .5rem;
}

/* When form is in confirmed state */
.form-card.is-confirmed .form-card__content { display: none; }
.form-card.is-confirmed .form-card__confirmation { display: block; }
.form-card__confirmation[hidden] { display: none; }

/* ===== Help Areas Section ================================================ */
.help-section {
  background: var(--paper);
  padding: 5.5rem 2.5rem;
  position: relative;
}

.help-section__inner {
  max-width: 1080px;
  margin: 0 auto;
}

.help-section__eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}

.help-section__eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold-deep);
}

.help-section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  color: var(--ink);
  max-width: 36rem;
}

.help-section__intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0 0 3rem;
  font-weight: 300;
}

.help-section__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 2.5rem;
}

/* ===== Help Card ========================================================= */
.help-card {
  border-left: 2px solid var(--gold);
  padding: .25rem 0 .25rem 1.25rem;
}

.help-card__num {
  font-family: var(--font-display);
  font-size: .85rem;
  font-weight: 600;
  color: var(--gold-deep);
  letter-spacing: .08em;
  margin-bottom: .35rem;
}

.help-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 .5rem;
  line-height: 1.25;
}

.help-card__desc {
  font-size: .92rem;
  color: var(--ink-soft);
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}

/* ===== Coming Soon Band ================================================== */
.coming-soon {
  background: var(--ink);
  color: #fff;
  padding: 3.5rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.coming-soon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
}

.coming-soon__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}

.coming-soon__text { max-width: 42rem; }

.coming-soon__eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}

.coming-soon__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0 0 .75rem;
  color: #fff;
}

.coming-soon__desc {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}

.coming-soon__mark {
  width: 80px;
  height: 80px;
  opacity: .85;
}

/* ===== Responsive (Phase 2) ============================================= */
@media (max-width: 900px) {
  .hero { padding: 7rem 1.5rem 4rem; min-height: auto; }
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .form-card { padding: 1.75rem 1.5rem 1.5rem; }
  .help-section { padding: 4rem 1.5rem; }
  .help-section__grid { gap: 1.75rem; }
  .coming-soon { padding: 3rem 1.5rem; }
  .coming-soon__inner { grid-template-columns: 1fr; }
  .coming-soon__mark { display: none; }
}

@media (max-width: 500px) {
  .intake-form__row { grid-template-columns: 1fr; }
  .intake-form__checkboxes-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 2.5rem; }
  .hero__meta { gap: 1.5rem; }
}

/* ==========================================================================
   PHASE 3 — Block Pattern Compatibility
   When patterns are rendered via the block editor, sections get wrapped
   in wp-block-group; these rules make sure that doesn't break the full-
   bleed background sections and grid layouts.
   ========================================================================== */

/* Allow our full-bleed sections to actually span full-width when wrapped
   by wp-block-group inside the editor's content flow. */
.wp-block-group.hero,
.wp-block-group.help-section,
.wp-block-group.coming-soon {
  width: 100%;
  max-width: none;
}

/* Strip default wp-block-group spacing inside our custom inner containers
   — our own padding handles it. */
.hero .wp-block-group.hero__inner,
.help-section .wp-block-group.help-section__inner,
.coming-soon .wp-block-group.coming-soon__inner {
  padding: 0;
  margin: 0 auto;
}

/* Block-rendered help cards: make sure grid layout works regardless of
   whether wp-block-group adds gap/padding around them. */
.help-section__grid .wp-block-group.help-card {
  margin: 0;
}

/* Editor-side: give content authors a hint of structure when editing
   patterns. (Block editor preview, not frontend.) */
.editor-styles-wrapper .hero,
.editor-styles-wrapper .help-section,
.editor-styles-wrapper .coming-soon {
  position: relative;
}

/* Frontend: hide the pattern's shortcode rendering for the intake form
   so it renders normally; the shortcode itself outputs the form-card. */
.hero .wp-block-shortcode {
  /* Shortcode block produces no wrapper of its own — these rules are
     a safety net in case the editor renders extra padding. */
  padding: 0;
  margin: 0;
}

/* ==========================================================================
   PHASE 4 — Fluent Forms Overrides
   Scoped to .form-card so they only affect the intake form, not other
   Fluent forms used elsewhere on the site (e.g., a newsletter signup).
   ========================================================================== */

/* Reset the plugin's own container styling inside our card */
.form-card .fluentform {
  background: transparent;
  padding: 0;
  margin: 0;
  border: none;
  box-shadow: none;
}

.form-card .fluentform form {
  margin: 0;
}

/* Field wrappers */
.form-card .ff-el-group,
.form-card .ff-el-input--content {
  margin-bottom: .625rem;
}

/* Hide Fluent's labels — we use placeholders for visual consistency.
   For accessibility, the form should be configured with screen-reader-
   only labels in the Fluent Forms admin (Settings → Form Layout → Label
   placement: hidden, plus aria-label on each field). */
.form-card .ff-el-input--label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Inputs, selects, textareas — match our intake-form__field style */
.form-card .ff-el-form-control,
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card input[type="number"],
.form-card input[type="url"],
.form-card select,
.form-card textarea {
  width: 100%;
  padding: .75rem .875rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: .875rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  line-height: 1.4;
  box-shadow: none;
}

.form-card .ff-el-form-control:focus,
.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 131, 38, .12);
}

.form-card textarea {
  resize: vertical;
  min-height: 90px;
}

.form-card select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%237a716a' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right .875rem center;
  padding-right: 2.25rem;
}

/* Two-column rows: Fluent's column layout outputs ff_columns_total_X.
   Style the wrapper to behave like our grid. */
.form-card .ff-t-cell {
  padding: 0 .3125rem;
}

.form-card .ff-t-row {
  margin: 0 -.3125rem;
}

/* Checkbox groups */
.form-card .ff-el-form-check {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .8rem;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-bottom: .35rem;
  cursor: pointer;
}

.form-card .ff-el-form-check input[type="checkbox"],
.form-card .ff-el-form-check input[type="radio"] {
  margin-top: .15rem;
  accent-color: var(--gold-deep);
  width: auto;
  cursor: pointer;
  flex-shrink: 0;
}

.form-card .ff-el-form-check-label {
  font-size: .8rem;
  font-weight: 400;
  color: var(--ink-soft);
}

/* Checkbox group label (the "I am interested in:" prompt) */
.form-card .ff-el-input--label[for*="checkbox"] + .ff-el-input--content,
.form-card .ff_chkbx_lbl {
  font-size: .8rem;
  color: var(--ink);
  font-weight: 600;
}

/* GDPR / disclaimer checkbox — Fluent renders this as a single checkbox */
.form-card .ff-el-form-check.ff-el-form-check--gdpr {
  font-size: .72rem;
  margin: .875rem 0 1rem;
  line-height: 1.5;
}

/* Submit button */
.form-card .ff-btn-submit,
.form-card .ff-btn,
.form-card button[type="submit"] {
  width: 100%;
  padding: .95rem;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
  box-shadow: none;
  text-transform: none;
}

.form-card .ff-btn-submit:hover,
.form-card .ff-btn:hover,
.form-card button[type="submit"]:hover {
  background: var(--gold-deep);
}

.form-card .ff-btn-submit:active,
.form-card button[type="submit"]:active {
  transform: translateY(1px);
}

/* Error states */
.form-card .ff-el-is-error .ff-el-form-control {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(122, 31, 26, .1);
}

.form-card .error,
.form-card .ff-el-input--content .error,
.form-card .ff-el-is-error .text-danger {
  color: var(--crimson);
  font-size: .75rem;
  font-weight: 500;
  margin-top: .35rem;
  display: block;
}

/* Success / confirmation message after submission */
.form-card .ff-message-success,
.form-card .ff_submit_btn_loader + div .ff-message-success,
.form-card .ff_form_success {
  background: var(--paper-warm);
  border: 1px solid var(--gold);
  border-left: 3px solid var(--gold);
  padding: 1.5rem;
  border-radius: 3px;
  font-size: .9rem;
  color: var(--ink);
  line-height: 1.6;
  text-align: center;
}

.form-card .ff-message-success::before {
  content: "✓";
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border: 2px solid var(--gold);
  border-radius: 50%;
  line-height: 44px;
  font-size: 1.3rem;
  color: var(--gold-deep);
}

/* Required asterisk — match our accent */
.form-card .ff-el-input--label .text-danger {
  color: var(--crimson);
  font-weight: 500;
}

/* Help text under fields */
.form-card .ff-el-help-message,
.form-card .ff_input_help {
  font-size: .72rem;
  color: var(--ink-soft);
  margin-top: .35rem;
  line-height: 1.4;
}

/* Reset Fluent's heavy default margins inside our compact card */
.form-card .ff-el-section-break {
  padding: 0;
  margin: .5rem 0;
  border: none;
}

.form-card .ff-el-section-break h2,
.form-card .ff-el-section-break h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 .25rem;
}

.form-card .ff-el-section-break p {
  font-size: .75rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ==========================================================================
   PHASE 4 — Form Field Spacing (universal, theme-level)
   Loaded after Fluent Forms' own stylesheet, so these win the cascade
   without needing the customizer or Fluent's custom-CSS field.

   Strategy: zero every wrapper's vertical margin, then add back ONE
   consistent gap on the direct field-group children. The high-specificity
   prefix (html body .form-card) outranks Fluent's defaults.
   ========================================================================== */

/* 1. Zero vertical spacing on all Fluent wrappers inside the card */
html body .form-card .fluentform .ff-el-group,
html body .form-card .fluentform .ff_row,
html body .form-card .fluentform [class*="ff_columns_total_"],
html body .form-card .fluentform .ff-t-container,
html body .form-card .fluentform .ff-t-cell,
html body .form-card .fluentform .ff-el-input--content,
html body .form-card .fluentform .ff-el-address,
html body .form-card .fluentform .ff-el-address > div,
html body .form-card .fluentform .ff-name-element,
html body .form-card .fluentform .ff-name-element > div {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* 2. Add back ONE consistent gap below each top-level field group */
html body .form-card .fluentform .ff-el-group,
html body .form-card .fluentform .ff_row,
html body .form-card .fluentform [class*="ff_columns_total_"] {
  margin-bottom: 12px !important;
}

/* 3. Inner rows of any composite field get the same gap (but not doubled) */
html body .form-card .fluentform .ff-el-address .ff-el-group,
html body .form-card .fluentform .ff-name-element .ff-el-group {
  margin-bottom: 12px !important;
}

/* 4. Never leave a trailing gap on the last element before the submit */
html body .form-card .fluentform .ff-el-group:last-child,
html body .form-card .fluentform .ff_row:last-child,
html body .form-card .fluentform > form > *:last-child {
  margin-bottom: 0 !important;
}

/* 5. Hide empty label wrappers that reserve vertical space */
html body .form-card .fluentform .ff-el-input--label:empty {
  display: none !important;
}

/* 6. Tidy the submit button's top spacing so it sits close to the
      disclaimer/last field */
html body .form-card .fluentform .ff_submit_btn_wrapper,
html body .form-card .fluentform .ff-el-group.ff_submit_btn_wrapper {
  margin-top: 4px !important;
  margin-bottom: 0 !important;
}
