/* ─────────────────────────────────────────────────────────────
   BRONZE SHIELD — Contact page styles
   Extends bronze-shield-home/styles.css with form chrome.
   ───────────────────────────────────────────────────────────── */

.contact-page {
  padding-top: 96px; /* clear sticky nav */
}

/* ─── Page head ─── */
.page-head {
  padding: 56px 56px 72px;
  max-width: 1200px;
  margin: 0 auto;
}
.page-head .container { width: 100%; }
.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--td);
  margin-bottom: 24px;
}
.crumbs a {
  color: var(--td);
  text-decoration: none;
  transition: color .15s ease;
}
.crumbs a:hover { color: var(--a); }
.crumbs span[aria-hidden] { opacity: 0.5; }
.crumbs .cur { color: var(--tb); }

.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 2px;
  font-weight: 600;
}
.pill.bronze {
  color: var(--a);
  background: var(--ad);
  border: 1px solid var(--ad2);
}

.contact-h1 {
  font-size: clamp(38px, 4.8vw, 64px);
  margin-top: 24px;
  margin-bottom: 24px;
  max-width: 22ch;
}
.contact-h1 .accent { color: var(--a); }

.page-head .lede {
  max-width: 64ch;
  font-size: 17px;
}
.page-head .lede strong { color: var(--tw); }

/* ─── Layout ─── */
.contact-section { padding: 0 56px 120px; }
.container { max-width: 1200px; margin: 0 auto; }
.contact-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ─── Form ─── */
.contact-form-wrap {
  background: var(--s0);
  border: 1px solid var(--b);
  padding: 48px 44px;
}
.contact-form-wrap form { display: flex; flex-direction: column; gap: 0; }

fieldset {
  border: 0;
  padding: 0 0 36px;
  margin: 0;
  border-bottom: 1px solid var(--b);
  margin-bottom: 36px;
}
fieldset:last-of-type { border-bottom: 0; padding-bottom: 24px; margin-bottom: 24px; }

legend {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--a);
  margin-bottom: 18px;
  padding: 0;
  font-weight: 600;
}

.field-help {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--td);
  margin-bottom: 18px;
  max-width: 64ch;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--td);
  font-weight: 600;
}
.field label .muted { color: var(--tdd); font-weight: 500; }
.field input,
.field textarea {
  width: 100%;
  background: var(--s1);
  border: 1px solid var(--b);
  border-radius: 2px;
  padding: 12px 14px;
  color: var(--tw);
  font-family: var(--sans);
  font-size: 14.5px;
  resize: vertical;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--a);
  background: var(--s2);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--tdd); }

.field .hint {
  font-size: 12px;
  color: var(--td);
  margin-top: 4px;
  line-height: 1.5;
}
.hint-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-top: 6px;
}
.char-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--td);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.char-count.over { color: var(--r); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* ─── Check rows ─── */
.check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--b);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease;
  font-size: 13.5px;
  line-height: 1.4;
  user-select: none;
}
.check-row:hover { border-color: var(--bh); background: var(--s1); }
.check-row input {
  margin-top: 3px;
  accent-color: var(--a);
  cursor: pointer;
  flex-shrink: 0;
}
.check-row b { color: var(--tw); font-weight: 600; }
.check-row:has(input:checked) {
  border-color: var(--a);
  background: var(--ad);
}
.check-row:has(input:checked) b { color: var(--a); }

/* Role grid */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* Engagement cards */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.engagement-grid .engagement {
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}
.engagement-grid .engagement .row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.engagement-grid .engagement .lbl {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--a);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.engagement-grid .engagement .meta {
  color: var(--td);
  font-size: 13px;
  line-height: 1.45;
}
.engagement-grid .engagement:has(input:checked) .lbl { color: var(--a2); }

/* Urgency bar */
.urgency-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.urgency-bar label {
  padding: 12px 14px;
  border: 1px solid var(--b);
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.urgency-bar label:hover { border-color: var(--bh); background: var(--s1); }
.urgency-bar input { accent-color: var(--a); cursor: pointer; }
.urgency-bar label:has(input:checked) {
  border-color: var(--a);
  background: var(--ad);
  color: var(--tw);
}

/* Acknowledgment */
.check-row.ack {
  align-items: flex-start;
}
.check-row.ack b { color: var(--a); }

/* ─── Submit ─── */
.submit-row {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.submit-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--td);
  text-transform: uppercase;
}

#submitBtn .arrow { transition: transform .15s ease; }
#submitBtn:hover .arrow { transform: translateX(3px); }
#submitBtn[data-loading="1"] {
  pointer-events: none;
  opacity: 0.6;
}
#submitBtn[data-loading="1"] .btn-label::after {
  content: " …";
}

/* ─── Status block (after submit) ─── */
.status {
  margin-top: 24px;
  padding: 0;
  border: 1px solid var(--b);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--td);
  display: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .2s ease;
}
.status:not(:empty) {
  display: block;
  padding: 16px 18px;
  max-height: 400px;
}
.status[data-kind="ok"] {
  color: var(--g);
  border-color: var(--gd);
  background: rgba(79,199,122,0.10);
}
.status[data-kind="err"] {
  color: var(--r);
  border-color: rgba(232,117,117,0.4);
  background: rgba(232,117,117,0.08);
}
.status strong { color: var(--tw); }
.status a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hidden-honey {
  position: absolute;
  left: -10000px;
  top: -10000px;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* ─── Sidebar ─── */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 96px;
}
.side-card {
  background: var(--s0);
  border: 1px solid var(--b);
  border-radius: 2px;
  padding: 24px 22px;
}
.side-card h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--a);
  margin: 0 0 16px;
  font-weight: 600;
}
.side-card .card-body {
  font-size: 13.5px;
  color: var(--t);
  line-height: 1.6;
}
.side-card .card-body b { color: var(--tw); }
.side-card.alert {
  background: rgba(232,117,117,0.04);
  border-color: rgba(232,117,117,0.25);
  border-style: dashed;
}
.side-card.alert h4 { color: var(--r); }
.side-card .card-foot {
  margin-top: 14px;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--td);
  letter-spacing: 0.06em;
}

/* KV rows in side cards */
.kv-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--b);
  font-family: var(--mono);
  font-size: 12.5px;
  position: relative;
  transition: background .15s ease;
}
.kv-row:last-child { border-bottom: 0; }
.kv-row[data-copy] {
  cursor: pointer;
  margin: 0 -10px;
  padding: 10px;
  border-bottom-color: var(--b);
}
.kv-row[data-copy]:hover { background: var(--s1); }
.kv-row[data-copy]:focus-visible { outline: 2px solid var(--a); outline-offset: 1px; }
.kv-row .k {
  color: var(--td);
  letter-spacing: 0.12em;
  font-size: 10.5px;
  text-transform: uppercase;
}
.kv-row .v {
  color: var(--tw);
  font-weight: 500;
}
.kv-row .copy-hint {
  font-size: 9px;
  color: var(--td);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .15s ease, color .15s ease;
}
.kv-row[data-copy]:hover .copy-hint { opacity: 1; }
.kv-row[data-copy].copied .copy-hint { opacity: 1; color: var(--g); }
.kv-row[data-copy].copied .copy-hint::before { content: "✓ "; }

/* Receive list */
.receive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.receive-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  font-size: 13.5px;
  color: var(--t);
  line-height: 1.5;
}
.receive-list .arr {
  color: var(--a);
  font-family: var(--mono);
  font-weight: 600;
}

/* Direct mail card */
.side-card.direct { background: rgba(255,144,80,0.05); border-color: var(--ad2); }
.direct-mail {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "glyph addr"
    "glyph cta";
  gap: 0 16px;
  text-decoration: none;
  padding: 6px 0;
  transition: transform .15s ease;
}
.direct-mail:hover { transform: translateX(2px); }
.direct-mail-glyph {
  grid-area: glyph;
  font-size: 32px;
  line-height: 1;
  color: var(--a);
  align-self: center;
}
.direct-mail-addr {
  grid-area: addr;
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--tw);
  font-weight: 600;
  letter-spacing: 0.02em;
  word-break: break-all;
}
.direct-mail-cta {
  grid-area: cta;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--a);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 4px;
}

/* ─── Active nav indicator ─── */
.nav-links a.active {
  color: var(--a);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--a);
}

/* ─── Reveal animation ─── */
.contact-page .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .55s ease-out, transform .55s cubic-bezier(.2,.7,.3,1);
}
.contact-page .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .contact-page .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-aside { position: static; }
}
/* ─────────────────────────────────────────────────────────────
   POLISH PASS — appended overrides + new chrome
   ───────────────────────────────────────────────────────────── */

/* ── Page head backdrop ─── */
.page-head {
  position: relative;
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,144,80,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,144,80,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 70% 80% at 20% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 20% 50%, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.page-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 30%, rgba(255,144,80,0.10), transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.page-head > * { position: relative; z-index: 1; }

/* ── Form wrap — accent top stripe + subtle inner glow ── */
.contact-form-wrap {
  position: relative;
}
.contact-form-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--a) 0%, var(--a) 30%, transparent 100%);
}
.contact-form-wrap::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;
  height: 80px;
  background: linear-gradient(180deg, var(--ad) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.contact-form-wrap > form { position: relative; z-index: 1; }

/* ── Step rail: progressive vertical line + dots per fieldset ─── */
#contactForm {
  position: relative;
  padding-left: 44px;
}
#contactForm::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(
    180deg,
    var(--a) 0%,
    var(--ad2) 8%,
    var(--bh) 14%,
    var(--bh) 86%,
    var(--ad2) 92%,
    var(--a) 100%
  );
  z-index: 0;
}
fieldset {
  position: relative;
}
fieldset > legend {
  position: relative;
  padding-left: 0;
}
fieldset > legend::before {
  content: "";
  position: absolute;
  left: -44px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--bh);
  border-radius: 50%;
  background: var(--s0);
  box-shadow: 0 0 0 4px var(--s0);
  z-index: 2;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
/* Fill the step dot when its fieldset has a checked input OR a non-empty filled input */
fieldset:has(input:checked) > legend::before,
fieldset:has(input:not([type="checkbox"]):not([type="radio"]):not(:placeholder-shown)) > legend::before,
fieldset:has(textarea:not(:placeholder-shown)) > legend::before {
  border-color: var(--a);
  background: var(--a);
  box-shadow: 0 0 0 4px var(--s0), 0 0 12px var(--ad2);
}

@media (max-width: 760px) {
  #contactForm { padding-left: 28px; }
  #contactForm::before { left: 11px; }
  fieldset > legend::before { left: -28px; width: 10px; height: 10px; }
}

/* ── Inputs — soft glow on focus ── */
.field input,
.field textarea {
  transition: border-color .15s ease, background .15s ease, box-shadow .2s ease;
}
.field input:focus,
.field textarea:focus {
  box-shadow: 0 0 0 4px var(--abg);
}

/* ── Check rows — refined hover, smoother selected state ── */
.check-row {
  transition: border-color .15s ease, background .15s ease, transform .12s ease, box-shadow .15s ease;
}
.check-row:hover { transform: translateY(-1px); }
.check-row:has(input:checked) {
  box-shadow: 0 0 0 1px var(--a), 0 4px 16px rgba(255,144,80,0.08);
}

/* Engagement cards — selected state lifts + glows */
.engagement-grid .engagement {
  position: relative;
  overflow: hidden;
}
.engagement-grid .engagement::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--a);
  transition: width .35s cubic-bezier(.2,.7,.3,1);
}
.engagement-grid .engagement:has(input:checked)::before {
  width: 100%;
}
.engagement-grid .engagement:has(input:checked) .lbl { color: var(--a); }

/* Urgency bar — animated underline on selected */
.urgency-bar label {
  position: relative;
  overflow: hidden;
}
.urgency-bar label::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--a);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s cubic-bezier(.2,.7,.3,1);
}
.urgency-bar label:has(input:checked)::after { transform: scaleX(1); }

/* ── Submit button — bigger hover micro-interaction ── */
.submit-row { margin-top: 20px; }
#submitBtn {
  padding: 18px 28px;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  position: relative;
  overflow: hidden;
}
#submitBtn::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left .55s ease;
}
#submitBtn:hover::before { left: 100%; }
#submitBtn .arrow {
  font-size: 16px;
  transition: transform .25s cubic-bezier(.2,.7,.3,1);
}
#submitBtn:hover .arrow { transform: translateX(4px); }

/* Loading pulse */
#submitBtn[data-loading="1"] {
  animation: submitPulse 1.2s ease-in-out infinite;
}
@keyframes submitPulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* ── Status block — icon + animated entry ── */
.status {
  display: none;
  position: relative;
}
.status:not(:empty) {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: start;
  animation: statusIn .35s cubic-bezier(.2,.7,.3,1);
}
.status:not(:empty)::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}
.status[data-kind="ok"]:not(:empty)::after {
  content: "✓";
  position: absolute;
  left: 22px; top: 18px;
  color: var(--g);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.status[data-kind="err"]:not(:empty)::after {
  content: "!";
  position: absolute;
  left: 26px; top: 16px;
  color: var(--r);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
@keyframes statusIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── Side cards — refined hover lift ── */
.side-card {
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.side-card:not(.alert):hover {
  border-color: var(--bh);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* KV row — subtle accent on hover for copyable items */
.kv-row[data-copy]:hover {
  background: var(--ad);
}
.kv-row[data-copy]:hover .v {
  color: var(--a);
}
.kv-row[data-copy].copied {
  background: rgba(79,199,122,0.08);
}
.kv-row[data-copy].copied .v {
  color: var(--g);
}

/* Direct mail card — bronze on hover */
.side-card.direct {
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.side-card.direct:hover {
  border-color: var(--a);
  background: rgba(255,144,80,0.08);
  transform: translateY(-2px);
}

/* ── Better reveal stagger ── */
.contact-page .reveal {
  transition-duration: .65s;
}

/* ── A subtle "drafting marks" rail in page-head — visual interest only ── */
.page-head .pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.page-head .pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--a);
  box-shadow: 0 0 0 4px var(--ad);
  animation: bsPulse 1.8s ease-in-out infinite;
}

/* ── Form-section number badge — turn "01 ·" into a tiny prominent prefix ── */
fieldset > legend {
  font-size: 11.5px;
}

/* ── Smoothed text-area resize handle ── */
.field textarea {
  min-height: 120px;
}

/* ── Mobile (760px) — preserve the page padding + collapse multi-col grids
   (was lost during polish merge, restored here) ── */
@media (max-width: 760px) {
  .page-head, .contact-section { padding-left: 24px; padding-right: 24px; }
  .contact-form-wrap { padding: 32px 22px; }
  .grid-2 { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr 1fr; }
  .engagement-grid { grid-template-columns: 1fr; }
  .urgency-bar { grid-template-columns: 1fr 1fr; }
}
