/* ═══════════════════════════════════════════════════
   PAMGIA — Contact Page Styles
   Multi-step form, audience routing, trust signals
   ═══════════════════════════════════════════════════ */

/* ── Contact Hero: Layered atmospheric depth ── */
.contact-hero {
  position: relative;
  min-height: 70vh;
  min-height: 70svh;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 50% 70%, rgba(231, 65, 50, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 45% at 65% 30%, rgba(231, 65, 50, 0.04), transparent 50%),
    radial-gradient(ellipse 45% 50% at 35% 55%, rgba(200, 140, 80, 0.025), transparent 45%),
    linear-gradient(180deg, transparent 0%, rgba(20, 12, 8, 0.4) 100%);
  pointer-events: none;
  z-index: 0;
}

.contact-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}

.contact-hero-glow {
  position: absolute;
  width: 520px;
  height: 360px;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(231, 65, 50, 0.07) 0%, rgba(231, 65, 50, 0.025) 40%, transparent 70%);
  filter: blur(3.5rem);
  pointer-events: none;
  z-index: 0;
}

.contact-hero .hero-heading {
  font-size: clamp(3rem, 7vw, 6rem);
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.6),
    0 4px 32px rgba(0, 0, 0, 0.35),
    0 0 60px rgba(0, 0, 0, 0.2),
    0 0 80px rgba(231, 65, 50, 0.08);
}

.contact-hero .hero-body {
  color: rgba(245, 240, 235, 0.65);
}

/* Decorative quotation marks */
.contact-hero-quote {
  position: absolute;
  font-family: 'DM Serif Display', serif;
  font-size: 6rem;
  color: rgba(245, 240, 235, 0.03);
  pointer-events: none;
  z-index: 0;
  line-height: 1;
}
.contact-hero-quote--open {
  top: 30%;
  left: 15%;
  opacity: 0;
  animation: quoteReveal 1s var(--ease-out) 1.5s forwards;
}
.contact-hero-quote--close {
  bottom: 20%;
  right: 15%;
  opacity: 0;
  animation: quoteReveal 1s var(--ease-out) 1.8s forwards;
}
@keyframes quoteReveal {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* ── Floating ambient particles ── */
.contact-particles,
.routing-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.contact-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

.contact-particle--1 {
  width: 4px; height: 4px; top: 25%; left: 18%;
  background: rgba(231, 65, 50, 0.35);
  box-shadow: 0 0 8px rgba(231, 65, 50, 0.2), 0 0 24px rgba(231, 65, 50, 0.08);
  animation: particleFloat1 14s var(--ease-out) infinite, particlePulse 4s ease-in-out infinite;
}
.contact-particle--2 {
  width: 3px; height: 3px; top: 55%; left: 78%;
  background: rgba(245, 240, 235, 0.18);
  box-shadow: 0 0 6px rgba(245, 240, 235, 0.1);
  animation: particleFloat2 18s var(--ease-out) infinite, particlePulse 5s ease-in-out infinite;
  animation-delay: 2s, 1s;
}
.contact-particle--3 {
  width: 3px; height: 3px; top: 40%; left: 32%;
  background: rgba(200, 140, 80, 0.25);
  box-shadow: 0 0 10px rgba(200, 140, 80, 0.12);
  animation: particleFloat3 16s var(--ease-out) infinite, particlePulse 6s ease-in-out infinite;
  animation-delay: 4s, 2s;
}
.contact-particle--4 {
  width: 2px; height: 2px; top: 20%; left: 72%;
  background: rgba(231, 65, 50, 0.3);
  box-shadow: 0 0 6px rgba(231, 65, 50, 0.15);
  animation: particleFloat4 20s var(--ease-out) infinite, particlePulse 4.5s ease-in-out infinite;
  animation-delay: 6s, 0.5s;
}
.contact-particle--5 {
  width: 3px; height: 3px; top: 70%; left: 55%;
  background: rgba(245, 240, 235, 0.14);
  box-shadow: 0 0 8px rgba(245, 240, 235, 0.08);
  animation: particleFloat5 15s var(--ease-out) infinite, particlePulse 5.5s ease-in-out infinite;
  animation-delay: 1s, 3s;
}
.contact-particle--6 {
  width: 2px; height: 2px; top: 45%; left: 8%;
  background: rgba(231, 65, 50, 0.22);
  box-shadow: 0 0 5px rgba(231, 65, 50, 0.1);
  animation: particleFloat6 22s var(--ease-out) infinite, particlePulse 7s ease-in-out infinite;
  animation-delay: 8s, 4s;
}
.contact-particle--7 {
  width: 3px; height: 3px; top: 60%; left: 88%;
  background: rgba(200, 140, 80, 0.2);
  box-shadow: 0 0 8px rgba(200, 140, 80, 0.1);
  animation: particleFloat7 17s var(--ease-out) infinite, particlePulse 5s ease-in-out infinite;
  animation-delay: 3s, 1.5s;
}
.contact-particle--8 {
  width: 2px; height: 2px; top: 15%; left: 48%;
  background: rgba(245, 240, 235, 0.12);
  box-shadow: 0 0 5px rgba(245, 240, 235, 0.06);
  animation: particleFloat8 19s var(--ease-out) infinite, particlePulse 6.5s ease-in-out infinite;
  animation-delay: 5s, 2.5s;
}

@keyframes particleFloat1 { 0%,100%{transform:translate(0,0)} 25%{transform:translate(12px,-18px)} 50%{transform:translate(-8px,-30px)} 75%{transform:translate(6px,-14px)} }
@keyframes particleFloat2 { 0%,100%{transform:translate(0,0)} 25%{transform:translate(-15px,-10px)} 50%{transform:translate(-6px,-28px)} 75%{transform:translate(-18px,-8px)} }
@keyframes particleFloat3 { 0%,100%{transform:translate(0,0)} 25%{transform:translate(10px,-22px)} 50%{transform:translate(18px,-12px)} 75%{transform:translate(4px,-26px)} }
@keyframes particleFloat4 { 0%,100%{transform:translate(0,0)} 25%{transform:translate(-10px,-16px)} 50%{transform:translate(8px,-32px)} 75%{transform:translate(-14px,-20px)} }
@keyframes particleFloat5 { 0%,100%{transform:translate(0,0)} 25%{transform:translate(14px,-20px)} 50%{transform:translate(-4px,-36px)} 75%{transform:translate(10px,-12px)} }
@keyframes particleFloat6 { 0%,100%{transform:translate(0,0)} 25%{transform:translate(8px,-14px)} 50%{transform:translate(16px,-24px)} 75%{transform:translate(4px,-32px)} }
@keyframes particleFloat7 { 0%,100%{transform:translate(0,0)} 25%{transform:translate(-12px,-18px)} 50%{transform:translate(-20px,-8px)} 75%{transform:translate(-6px,-28px)} }
@keyframes particleFloat8 { 0%,100%{transform:translate(0,0)} 25%{transform:translate(6px,-24px)} 50%{transform:translate(-10px,-16px)} 75%{transform:translate(12px,-30px)} }
@keyframes particlePulse { 0%,100%{opacity:0.4} 50%{opacity:1} }

@media (prefers-reduced-motion: reduce) {
  .contact-particle { animation: none !important; opacity: 0.6; }
}

.contact-hero-bottom-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(26, 15, 10, 0.6));
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 768px) {
  .contact-hero-glow { width: 240px; height: 160px; filter: blur(2.5rem); }
  .contact-hero-quote { font-size: 4rem; }
  .contact-hero-quote--open { left: 8%; top: 25%; }
  .contact-hero-quote--close { right: 8%; bottom: 15%; }
  .contact-particle--6, .contact-particle--7, .contact-particle--8 { display: none; }
  .contact-particle--1 { left: 12%; }
  .contact-particle--2 { left: 82%; }
  .contact-particle--4 { left: 75%; }
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-red);
  display: block;
  margin-bottom: 1.5rem;
}


/* ═══════════════════════════════════════════════════
   AUDIENCE ROUTING SECTION
   ═══════════════════════════════════════════════════ */

.routing-section {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Layer 1 — multi-radial vignette backdrop */
.routing-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 50% 28%, rgba(231, 65, 50, 0.09), transparent 65%),
    radial-gradient(ellipse 70% 45% at 50% 72%, rgba(200, 140, 80, 0.05), transparent 60%),
    radial-gradient(ellipse 45% 40% at 18% 82%, rgba(160, 80, 30, 0.05), transparent 60%),
    radial-gradient(ellipse 40% 45% at 82% 22%, rgba(231, 65, 50, 0.05), transparent 55%),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.55) 0%, transparent 14%),
    radial-gradient(ellipse 78% 68% at 50% 50%, transparent 32%, rgba(6, 4, 2, 0.48) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Layer 2 — SVG fractal-noise grain */
.routing-section::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}

/* Layer 3 — central blurred glow orb */
.routing-glow {
  position: absolute;
  width: 720px;
  height: 480px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(231, 65, 50, 0.1) 0%,
    rgba(200, 140, 80, 0.05) 35%,
    transparent 70%);
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
}

/* Layer 4 — breathing warm light leak on left edge */
.routing-lightleak {
  position: absolute;
  top: 12%;
  left: -4%;
  width: 220px;
  height: 72%;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(200, 140, 80, 0.05) 35%,
    rgba(231, 65, 50, 0.035) 55%,
    rgba(200, 140, 80, 0.05) 75%,
    transparent 100%);
  filter: blur(44px);
  pointer-events: none;
  z-index: 0;
  animation: routing-lightleak-pulse 4s ease-in-out infinite alternate;
}

@keyframes routing-lightleak-pulse {
  from { opacity: 0.75; transform: translateX(0); }
  to   { opacity: 1;    transform: translateX(6px); }
}

/* Layer 5 — secondary warm amber glow on right */
.routing-warmglow {
  position: absolute;
  top: 18%;
  right: 6%;
  width: 460px;
  height: 340px;
  background: radial-gradient(ellipse at center,
    rgba(200, 140, 80, 0.06) 0%,
    transparent 70%);
  filter: blur(56px);
  pointer-events: none;
  z-index: 0;
}

.routing-rule {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 240, 235, 0.08), transparent);
  z-index: 2;
}

/* Layer 6 — heading with stacked halo */
.routing-heading {
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.6),
    0 4px 32px rgba(0, 0, 0, 0.35),
    0 0 60px rgba(0, 0, 0, 0.2),
    0 0 80px rgba(231, 65, 50, 0.08);
}

/* Responsive tuning for routing atmosphere */
@media (max-width: 768px) {
  .routing-section {
    justify-content: flex-start;
  }
  .routing-section.section-warm .section-container {
    padding: 7rem 5vw 3rem;
  }
  .routing-glow {
    width: 340px;
    height: 240px;
    filter: blur(48px);
  }
  .routing-warmglow {
    width: 260px;
    height: 200px;
    right: 2%;
    filter: blur(40px);
  }
}

@media (max-width: 480px) {
  .routing-lightleak { display: none; }
}

@media (max-height: 700px) and (min-width: 769px) {
  .routing-section {
    min-height: auto;
    padding: 5rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .routing-lightleak { animation: none; opacity: 0.85; }
}

.routing-body {
  text-align: center;
  max-width: 40ch;
  margin: 0 auto 3rem;
}

.routing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 680px;
  margin: 5rem auto 0;
}

button.routing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 2rem;
  background-color: rgba(245, 240, 235, 0.06);
  background-image: linear-gradient(175deg, rgba(245, 240, 235, 0.04) 0%, transparent 60%);
  border: 1px solid rgba(245, 240, 235, 0.12);
  border-radius: 0.75rem;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.5),
    0 16px 48px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(245, 240, 235, 0.08);
  cursor: pointer;
  text-align: center;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: inherit;
  line-height: inherit;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: transform 0.4s var(--ease-spring), border-color 0.3s var(--ease-out), box-shadow 0.4s var(--ease-out), background-color 0.3s var(--ease-out), background-image 0.3s var(--ease-out);
}

button.routing-card:hover,
button.routing-card:focus-visible {
  transform: translateY(-4px);
  background-color: var(--brand-red);
  background-image: none;
  border-color: var(--brand-red);
  box-shadow: 0 8px 32px rgba(231, 65, 50, 0.35), 0 2px 8px rgba(231, 65, 50, 0.15);
}

.routing-card:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}

.routing-card:active {
  transform: translateY(-1px);
}

.routing-card-icon {
  width: 52px; height: 52px;
  min-width: 52px; min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(231, 65, 50, 0.08);
  border: 1px solid rgba(231, 65, 50, 0.15);
  overflow: hidden;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.routing-card:hover .routing-card-icon,
.routing-card:focus-visible .routing-card-icon {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

.routing-card-icon svg {
  width: 24px; height: 24px;
  min-width: 24px; min-height: 24px;
  stroke: var(--brand-red);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s var(--ease-out);
}

.routing-card:hover .routing-card-icon svg,
.routing-card:focus-visible .routing-card-icon svg {
  stroke: #fff;
}

.routing-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: color 0.3s var(--ease-out);
}

.routing-card:hover .routing-card-title,
.routing-card:focus-visible .routing-card-title {
  color: #fff;
}

.routing-card-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 28ch;
  transition: color 0.3s var(--ease-out);
}

.routing-card:hover .routing-card-desc,
.routing-card:focus-visible .routing-card-desc {
  color: rgba(255, 255, 255, 0.85);
}

.routing-card-cta {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand-red);
  margin-top: 0.25rem;
  transition: color 0.3s var(--ease-out), opacity 0.2s var(--ease-out);
}

.routing-card:hover .routing-card-cta,
.routing-card:focus-visible .routing-card-cta {
  color: #fff;
  opacity: 1;
}

@media (max-width: 768px) {
  .routing-cards {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
  .routing-card { padding: 2rem 1.5rem; }
  .routing-glow { width: 240px; height: 140px; filter: blur(2.25rem); }
}


/* ═══════════════════════════════════════════════════
   CONTACT FORM SECTION (Multi-Step)
   ═══════════════════════════════════════════════════ */

.contact-form-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-cold);
}

.contact-form-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 45% 50% at 75% 55%, rgba(231, 65, 50, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 20% 30%, rgba(245, 240, 235, 0.015) 0%, transparent 50%),
    linear-gradient(175deg, transparent 0%, rgba(10, 10, 10, 0.5) 100%);
  pointer-events: none;
  z-index: 0;
}

.contact-form-section::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.033;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}

.contact-form-rule {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 240, 235, 0.08), transparent);
  z-index: 1;
}

.contact-form-glow {
  position: absolute;
  width: 500px; height: 200px;
  top: 50%; right: 10%;
  transform: translateY(-50%);
  background: radial-gradient(ellipse at center, rgba(231, 65, 50, 0.04) 0%, rgba(231, 65, 50, 0.012) 40%, transparent 70%);
  filter: blur(3rem);
  pointer-events: none;
  z-index: 0;
}

.contact-form-section .section-container { z-index: 2; }

/* 2-column layout */
.contact-form-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.contact-form-accent {
  width: 48px; height: 3px;
  background: var(--brand-red);
  margin-bottom: 2rem;
  opacity: 0.8;
}

.contact-form-heading {
  /* Align with closing CTA typography (see shared.css .section-cta .cta-heading)
     so the primary "Get in touch." moment reads consistent with every other
     contact CTA across the site. */
  font-family: var(--font-accent);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6), 0 4px 32px rgba(0,0,0,0.35), 0 0 60px rgba(0,0,0,0.2);
}

.contact-form-body {
  max-width: 32ch;
  margin-bottom: 2.5rem;
}

/* ── Trust Signals ── */
.trust-signals {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.trust-signal {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.trust-icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  stroke: var(--brand-red);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
  margin-top: 2px;
}

.trust-text {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ── Form Card ── */
.contact-form-card {
  background: rgba(245, 240, 235, 0.055);
  border: 1px solid rgba(245, 240, 235, 0.1);
  border-radius: 0.75rem;
  padding: 2.5rem;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 16px 48px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(245, 240, 235, 0.04);
  overflow: visible;
  position: relative;
}

/* ── Progress Indicator ── */
.msf-progress {
  margin-bottom: 2rem;
}

.msf-progress-track {
  width: 100%;
  height: 3px;
  background: rgba(245, 240, 235, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.msf-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-red), rgba(231, 65, 50, 0.7));
  border-radius: 2px;
  transition: width 0.4s var(--ease-out);
}

.msf-progress-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* ── Multi-Step: Step Containers ── */
.msf-step {
  display: none;
}

.msf-step--active {
  display: block;
  animation: msfFadeIn 0.35s var(--ease-out) forwards;
}

.msf-step--exit-left {
  display: block;
  animation: msfSlideLeft 0.18s ease-in forwards;
}

.msf-step--exit-right {
  display: block;
  animation: msfSlideRight 0.18s ease-in forwards;
}

@keyframes msfFadeIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes msfSlideLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-16px); }
}

@keyframes msfSlideRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(16px); }
}

.msf-step-title {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ── Form Fields ── */
.contact-form-field {
  margin-bottom: 1.5rem;
}

.contact-form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.contact-form-optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.contact-form-input,
.contact-form-select,
.contact-form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-primary);
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(245, 240, 235, 0.1);
  border-radius: 4px;
  outline: none;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  min-height: 48px; /* Touch target */
}

.contact-form-input::placeholder,
.contact-form-textarea::placeholder {
  color: rgba(245, 240, 235, 0.2);
}

.contact-form-input:focus,
.contact-form-select:focus,
.contact-form-textarea:focus {
  border-color: rgba(231, 65, 50, 0.45);
  box-shadow: 0 0 0 3px rgba(231, 65, 50, 0.08), 0 0 20px rgba(231, 65, 50, 0.06);
}

.contact-form-input:focus-visible,
.contact-form-select:focus-visible,
.contact-form-textarea:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}

.contact-form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23F5F0EB' stroke-opacity='0.4' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
}

.contact-form-select option {
  background: #0a0a0a;
  color: var(--text-primary);
}

.contact-form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* ── Radio Button Group ── */
.contact-form-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.contact-form-radio {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 0.75rem 1rem;
  background: rgba(10, 10, 10, 0.4);
  border: 1px solid rgba(245, 240, 235, 0.08);
  border-radius: 6px;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
  min-height: 48px;
}

.contact-form-radio:hover {
  border-color: rgba(245, 240, 235, 0.15);
  background: rgba(10, 10, 10, 0.6);
}

.contact-form-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.contact-form-radio-ui {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(245, 240, 235, 0.2);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s var(--ease-out);
}

.contact-form-radio-ui::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand-red);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.25s var(--ease-spring);
}

.contact-form-radio input[type="radio"]:checked ~ .contact-form-radio-ui {
  border-color: var(--brand-red);
}

.contact-form-radio input[type="radio"]:checked ~ .contact-form-radio-ui::after {
  transform: translate(-50%, -50%) scale(1);
}

.contact-form-radio input[type="radio"]:focus-visible ~ .contact-form-radio-ui {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}

.contact-form-radio-text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* ── Inline Validation ── */
.contact-form-error {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: #ef4444;
  margin-top: 0.375rem;
  min-height: 1.1em;
}

.contact-form-field.has-error .contact-form-input,
.contact-form-field.has-error .contact-form-select,
.contact-form-field.has-error .contact-form-textarea {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.contact-form-field.has-error .contact-form-radio {
  border-color: rgba(239, 68, 68, 0.3);
}

.contact-form-field.has-valid .contact-form-input,
.contact-form-field.has-valid .contact-form-textarea {
  border-color: rgba(34, 197, 94, 0.3);
}

/* ── Buttons ── */
.msf-btn-row {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.msf-btn-row .msf-back-btn {
  flex: 0 0 auto;
}

.msf-btn-row .msf-next-btn,
.msf-btn-row .msf-submit-btn {
  flex: 1;
}

.cta-btn-ghost {
  background: transparent;
  border: 1px solid rgba(245, 240, 235, 0.15);
  color: var(--text-primary);
  padding: 0.85rem 1.5rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
  min-height: 48px;
}

.cta-btn-ghost:hover {
  border-color: rgba(245, 240, 235, 0.3);
  background: rgba(245, 240, 235, 0.04);
}

.cta-btn-ghost:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}

.cta-btn-ghost:active {
  transform: scale(0.98);
}

/* Multi-step form nav buttons — unified red hover, absolutely no size/position change */
.msf-next-btn:hover,
.msf-next-btn:focus-visible,
.msf-submit-btn:hover,
.msf-submit-btn:focus-visible,
.msf-back-btn:hover,
.msf-back-btn:focus-visible {
  transform: none !important;
}

/* Back button needs a full transition list so un-hover fades color + shadow
   in sync with bg + border (base .cta-btn-ghost transition omits them). */
.msf-back-btn {
  transition: background 0.3s var(--ease-out),
              color 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-out);
}

.msf-back-btn:hover,
.msf-back-btn:focus-visible {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
  box-shadow: 0 8px 32px rgba(231, 65, 50, 0.35), 0 2px 8px rgba(231, 65, 50, 0.15);
}

.contact-form-submit {
  width: 100%;
}

/* Loading spinner */
.msf-spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: msfSpin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 0.5rem;
}

@keyframes msfSpin {
  to { transform: rotate(360deg); }
}

/* ── Privacy Note ── */
.contact-form-privacy {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-form-privacy a {
  color: var(--brand-red);
  text-decoration: underline;
  text-decoration-color: rgba(231, 65, 50, 0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s var(--ease-out);
}

.contact-form-privacy a:hover {
  text-decoration-color: var(--brand-red);
}

.trust-icon-inline {
  width: 14px; height: 14px;
  flex-shrink: 0;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Honeypot */
.contact-form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* ── Form Success State ── */
.contact-form-card.is-success {
  border-color: rgba(231, 65, 50, 0.2);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 16px 48px rgba(0, 0, 0, 0.2),
    0 0 40px rgba(231, 65, 50, 0.06),
    inset 0 0 0 1px rgba(231, 65, 50, 0.08);
}

.contact-form-success {
  display: none;
  text-align: center;
  padding: 3rem 1.5rem;
}

.contact-form-success-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(231, 65, 50, 0.1);
  border: 1px solid rgba(231, 65, 50, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form-success-icon svg {
  width: 28px; height: 28px;
  stroke: var(--brand-red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-form-success-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.contact-form-success-body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Form Section Mobile ── */
@media (max-width: 768px) {
  .contact-form-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-form-glow {
    width: 220px; height: 130px;
    right: auto; left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(2.25rem);
  }
  .contact-form-card { padding: 2rem 1.5rem; }
  .contact-form-body { margin-bottom: 2rem; }
  .msf-btn-row { flex-direction: column; }
  .msf-btn-row .msf-back-btn { order: 1; }
  .msf-btn-row .msf-next-btn,
  .msf-btn-row .msf-submit-btn { order: 0; }
  .contact-form-input,
  .contact-form-select,
  .contact-form-textarea { font-size: 16px; }
  /* v3 section viewport fit — trim contact form section padding.
     #contact-form was 960px, .section-warm was 857px pre-fix. */
  #contact-form { padding: 3rem 5vw 2.5rem; }
  .section-warm .section-container { padding: 3rem 5vw 2.5rem; }
  .contact-direct-section { padding: 3rem 5vw 2.5rem; }
}


/* ═══════════════════════════════════════════════════
   DIRECT CONTACT INFO
   ═══════════════════════════════════════════════════ */

.contact-direct-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-cold);
}

.contact-direct-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 55% at 50% 35%, rgba(231, 65, 50, 0.035) 0%, transparent 60%),
    radial-gradient(ellipse 55% 40% at 80% 65%, rgba(245, 240, 235, 0.012) 0%, transparent 50%),
    linear-gradient(170deg, rgba(10, 10, 10, 0.5) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.contact-direct-section::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}

.contact-direct-glow {
  position: absolute;
  width: 420px; height: 200px;
  top: 35%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(231, 65, 50, 0.045) 0%, rgba(231, 65, 50, 0.015) 40%, transparent 70%);
  filter: blur(3rem);
  pointer-events: none;
  z-index: 0;
}

.contact-direct-rule {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 240, 235, 0.08), transparent);
  z-index: 2;
}

.contact-direct-heading {
  text-align: center;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6), 0 4px 32px rgba(0,0,0,0.35), 0 0 60px rgba(0,0,0,0.2);
}

.contact-direct-body {
  text-align: center;
  max-width: 44ch;
  margin: 0 auto 3rem;
}

.contact-direct-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.contact-direct-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1.25rem;
  background: rgba(245, 240, 235, 0.055);
  border: 1px solid rgba(245, 240, 235, 0.1);
  border-radius: 0.75rem;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.4),
    0 16px 48px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(245, 240, 235, 0.04);
  transition: transform 0.4s var(--ease-spring), border-color 0.3s var(--ease-out), box-shadow 0.4s var(--ease-out);
  text-decoration: none;
  color: inherit;
}

.contact-direct-card:hover {
  transform: translateY(-2px);
  border-color: rgba(231, 65, 50, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px rgba(231, 65, 50, 0.05);
}

.contact-direct-card:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}

.contact-direct-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(231, 65, 50, 0.08);
  border: 1px solid rgba(231, 65, 50, 0.12);
}

.contact-direct-icon svg {
  width: 18px; height: 18px;
  stroke: var(--brand-red);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-direct-card-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-red);
}

.contact-direct-card-value {
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 1.2vw, 1.05rem);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  text-align: center;
}

/* ── Social Links ── */
.contact-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-social-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.contact-social-links {
  display: flex;
  gap: 0.75rem;
}

.contact-social-link {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(245, 240, 235, 0.04);
  border: 1px solid rgba(245, 240, 235, 0.08);
  transition: transform 0.3s var(--ease-spring), border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.contact-social-link svg {
  width: 18px; height: 18px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s var(--ease-out);
}

.contact-social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(231, 65, 50, 0.2);
  background: rgba(231, 65, 50, 0.06);
}

.contact-social-link:hover svg {
  stroke: var(--brand-red);
}

.contact-social-link:focus-visible {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}

.contact-direct-note {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .contact-direct-cards {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
  .contact-direct-glow { width: 220px; height: 120px; filter: blur(2.25rem); }
  .contact-social { flex-direction: column; gap: 0.75rem; }
}


/* ═══════════════════════════════════════════════════
   LOCATION / PRESENCE
   ═══════════════════════════════════════════════════ */

.location-section {
  position: relative;
  overflow: hidden;
}

.location-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 45% 55% at 50% 60%, rgba(231, 65, 50, 0.035) 0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 25% 30%, rgba(245, 240, 235, 0.012) 0%, transparent 45%),
    linear-gradient(175deg, transparent 0%, rgba(20, 12, 8, 0.3) 100%);
  pointer-events: none;
  z-index: 0;
}

.location-section::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}

.location-glow {
  position: absolute;
  width: 400px; height: 180px;
  top: 45%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(231, 65, 50, 0.04) 0%, rgba(231, 65, 50, 0.012) 40%, transparent 70%);
  filter: blur(3rem);
  pointer-events: none;
  z-index: 0;
}

.location-rule {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 240, 235, 0.08), transparent);
  z-index: 2;
}

.location-heading {
  text-align: center;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6), 0 4px 32px rgba(0,0,0,0.35), 0 0 60px rgba(0,0,0,0.2);
}

.location-body {
  text-align: center;
  max-width: 48ch;
  margin: 0 auto 2.5rem;
}

.location-details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.location-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.location-detail-icon {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(231, 65, 50, 0.06);
  border: 1px solid rgba(231, 65, 50, 0.1);
}

.location-detail-icon svg {
  width: 16px; height: 16px;
  stroke: var(--brand-red);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.location-detail-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-red);
}

.location-detail-value {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.location-detail-divider {
  width: 1px; height: 48px;
  background: linear-gradient(180deg, transparent, rgba(245, 240, 235, 0.08), transparent);
}

.location-detail-line {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(231, 65, 50, 0.3), transparent);
  margin: 0 auto 3rem;
}

.location-coordinates {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(245, 240, 235, 0.1);
  text-align: center;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  .location-details {
    flex-direction: column;
    gap: 2rem;
  }
  .location-detail-divider {
    width: 48px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 240, 235, 0.08), transparent);
  }
  .location-glow { width: 210px; height: 110px; filter: blur(2.25rem); }
}

/* Contact page glows — small phones */
@media (max-width: 480px) {
  .contact-hero-glow { width: 200px; height: 130px; filter: blur(2rem); }
  .routing-glow { width: 200px; height: 115px; filter: blur(2rem); }
  .contact-form-glow { width: 190px; height: 110px; filter: blur(2rem); }
  .contact-direct-glow { width: 190px; height: 105px; filter: blur(2rem); }
  .location-glow { width: 180px; height: 95px; filter: blur(2rem); }
}


/* ═══════════════════════════════════════════════════
   STICKY MOBILE CTA
   ═══════════════════════════════════════════════════ */

.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 1.25rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.95) 30%);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.3s var(--ease-out);
  pointer-events: none;
}

.sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-cta-btn {
  width: 100%;
  min-height: 52px;
  font-size: 0.95rem;
}

@media (min-width: 769px) {
  .sticky-cta { display: none; }
}


/* ═══════════════════════════════════════════════════
   SECTION TRANSITIONS
   ═══════════════════════════════════════════════════ */

.section-transition-accent {
  position: relative;
  z-index: 6;
  height: 1px;
  background: linear-gradient(to right, transparent 5%, rgba(231, 65, 50, 0.28) 35%, rgba(231, 65, 50, 0.4) 50%, rgba(231, 65, 50, 0.28) 65%, transparent 95%);
  box-shadow: 0 0 12px rgba(231, 65, 50, 0.15), 0 0 32px rgba(231, 65, 50, 0.06);
}

html.has-preselected-type .routing-section,
html.has-preselected-type .section-transition-accent {
  display: none;
}
