/* ============================================================================
   Contact page.

   The layout is ported from the prenup site's contact page (deedpoll_app/
   static/deedpoll_app/css/contact.css): full-bleed dark hero with a breadcrumb
   and a floating-icon visual, then a two-column grid of a raised form card
   beside a stack of info cards.

   What changed in the port, all of it colour and type:
     * #003366 / #0066cc navy-and-blue becomes this site's monochrome - the hero
       is the same #0b0b0b as .help-hero, every accent is --ink, and the
       shadows are neutral rgba(0,0,0,...) rather than tinted navy.
     * Poppins becomes the site stack: --font-sans for copy, --font-mono for the
       small uppercase card titles, which is how eyebrows read everywhere else.
     * The required-field star is grey, not red - nothing else on the site
       carries a colour that isn't black, white or the live-dot green.
     * The Google Maps card is gone (there is no office to point at); the same
       slot holds a help-centre panel, which is the answer most people arriving
       here actually want.

   Loaded after site.css, so the plain .contact-* rules that used to live there
   are gone - everything the page needs is in this file.
============================================================================ */

/* ---------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------ */

.contact-hero-section {
  position: relative;
  overflow: hidden;
  background: #0b0b0b;
  border-bottom: 1px solid #1c1c1c;
  color: #fff;
  padding: clamp(44px, 5.5vw, 72px) 0 clamp(50px, 6.5vw, 84px);
}

/* One soft wash so the flat black has some depth behind the icon cluster. */
.contact-hero-section::before {
  content: '';
  position: absolute;
  top: -240px;
  right: -160px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  filter: var(--blur-orb);
  pointer-events: none;
}

.contact-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

/* site.css centres .breadcrumbs in a --prose-max column for article pages;
   in the hero it is just the top of the left column. */
.contact-hero-section .breadcrumbs {
  max-width: none;
  margin: 0 0 1.15rem;
  color: rgba(255, 255, 255, .4);
}

.contact-hero-section .breadcrumbs a { color: rgba(255, 255, 255, .68); }
.contact-hero-section .breadcrumbs a:hover { color: #fff; }
.contact-hero-section .breadcrumbs .current { color: rgba(255, 255, 255, .9); }

.contact-hero-title {
  font-size: clamp(2.1rem, 4.6vw, 3.1rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0 0 .9rem;
}

.contact-hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.13rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, .72);
  max-width: 520px;
  margin: 0 0 1.6rem;
}

/* Stands in for the prenup hero's Trustpilot badge — same shape and weight,
   carrying the one promise this page can actually make. */
.contact-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  background: var(--white-08);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}

.contact-hero-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 2s ease-in-out infinite;
}

/* ---------------------------------------------------------------------------
   Hero visual — envelope in a ring, three icons drifting around it
   ------------------------------------------------------------------------ */

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

.contact-icon-preview {
  position: relative;
  width: 260px;
  height: 260px;
}

.contact-main-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: rgba(255, 255, 255, .88);
  animation: contactPulse 3s ease-in-out infinite;
}

.contact-main-icon svg { width: 42px; height: 42px; }

.contact-floating-icons {
  position: absolute;
  inset: 0;
}

.floating-icon {
  position: absolute;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  color: rgba(255, 255, 255, .7);
  animation: contactFloat 4s ease-in-out infinite;
}

.floating-icon svg { width: 21px; height: 21px; }

.floating-icon:nth-child(1) { top: 5%; right: 15%; animation-delay: .5s; }
.floating-icon:nth-child(2) { bottom: 20%; left: 5%; animation-delay: 1s; }
.floating-icon:nth-child(3) { bottom: 5%; right: 5%; animation-delay: 1.5s; }

@keyframes contactPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, .18); }
  50%      { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
}

@keyframes contactFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}

/* ---------------------------------------------------------------------------
   Main section
   ------------------------------------------------------------------------ */

.contact-main-section {
  background: var(--gray-f8);
  border-bottom: 1px solid var(--black-05);
  padding: clamp(46px, 6vw, 80px) 0 clamp(56px, 7vw, 96px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  align-items: start;
}

/* ---------------------------------------------------------------------------
   Form card
   ------------------------------------------------------------------------ */

.contact-form-card {
  background: #fff;
  border: 1px solid var(--black-08);
  border-radius: var(--radius-xl);
  padding: clamp(1.6rem, 3vw, 2.75rem);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .06);
  transition: box-shadow var(--dur-base) var(--ease-standard);
}

/* Lifts on hover in the original; a form is not a clickable tile, so it only
   deepens its shadow — same instinct as the prenup page's own inline fix. */
.contact-form-card:hover { box-shadow: 0 18px 44px rgba(0, 0, 0, .09); }

.contact-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-card-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -.02em;
  margin: 0 0 .4rem;
}

.contact-card-subtitle {
  color: var(--text-body);
  font-size: 1.02rem;
  margin: 0;
}

.contact-required-note {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--neutral-400);
  margin: .9rem 0 0;
}

.contact-required-star { color: var(--neutral-400); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-input-wrapper { position: relative; }

.contact-input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  padding: 1.15rem;
  color: var(--ink);
  background: var(--gray-f8);
  border: 1.5px solid var(--neutral-300);
  border-radius: var(--radius-md);
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.contact-input:hover { border-color: var(--neutral-400); }

/* A filled field goes white too, so the floated label's white chip always sits
   on white and never straddles two backgrounds. */
.contact-input:focus,
.contact-input:not(:placeholder-shown) { background: #fff; }

.contact-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .07);
}

/* site.css puts a blue ring on every focused input and a blue outline on every
   focus-visible element; both are beaten here so the page stays monochrome. */
.contact-input:focus,
.contact-input:focus-visible { outline: none; }

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

.contact-label {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  transform-origin: left center;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text-body);
  pointer-events: none;
  transition: top var(--dur-fast) ease, left var(--dur-fast) ease,
              transform var(--dur-fast) ease, color var(--dur-fast) ease;
}

/* A textarea's label belongs on its first line, not its vertical centre. */
.contact-textarea + .contact-label {
  top: 1.15rem;
  transform: none;
}

/* Floated: centred on the top border, wearing a white chip to cut the border
   behind it. Both fields land in the same place, from different starts. */
.contact-input:focus + .contact-label,
.contact-input:not(:placeholder-shown) + .contact-label {
  top: 0;
  left: .75rem;
  transform: translateY(-50%) scale(.85);
  color: var(--ink);
  background: #fff;
  padding: 0 .4rem;
}

.contact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-top: .35rem;
  padding: 1.05rem 2rem;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-standard);
}

.contact-submit-btn:hover {
  background: var(--ink-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}

.contact-submit-btn:active { transform: none; }

.contact-submit-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink);
}

.contact-submit-btn .btn-arrow { transition: transform var(--dur-base) var(--ease-standard); }
.contact-submit-btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------------------------------------------------------------------------
   Info column
   ------------------------------------------------------------------------ */

.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-grid {
  display: grid;
  gap: 1rem;
}

.contact-info-card {
  background: #fff;
  border: 1px solid var(--black-08);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .04);
  transition: transform var(--dur-fast) ease, border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.contact-info-card:hover {
  transform: translateY(-3px);
  border-color: var(--black-10);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .09);
}

.contact-info-title,
.contact-help-title {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 .45rem;
}

.contact-info-text,
.contact-help-subtitle {
  color: var(--text-body);
  font-size: .88rem;
  line-height: 1.5;
  margin: 0;
}

.contact-info-text { margin-bottom: .5rem; }

.contact-info-link {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--neutral-300);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: text-decoration-color var(--dur-fast) ease;
  position: relative;
}

/* The card's link is the only thing in it worth tapping, but as a bare inline
   run of text it measures 211.6x19 (email) and 116.9x19 (waitlist) at 360 -
   19px is 43% of the 44px minimum. The sibling pattern next door,
   .contact-help-links a, gets padding and lands at 286x55.2, so this is an
   inconsistency inside this file rather than a site convention.
   Grow the hit area with a pseudo-element instead of padding so the text does
   not move a pixel: measured there is 11px of clear space above the link (to
   .contact-info-text's bottom edge) and 24.6px below it (4.6px + the card's
   20px padding-bottom), so -11px/-14px stays inside the card and clear of the
   paragraph while making the target 11+19+14 = 44px tall. */
.contact-info-link::after {
  content: '';
  position: absolute;
  top: -11px;
  bottom: -14px;
  left: -10px;
  right: -10px;
}

.contact-info-link:hover { text-decoration-color: var(--ink); }

.contact-response-time {
  display: flex;
  flex-direction: column;
  gap: .1rem;
}

.response-highlight {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}

.response-subtext {
  font-size: .82rem;
  color: var(--text-body);
}

/* Sits where the prenup page's map card sits and carries the same weight, but
   as one solid black block rather than a black panel framed inside a white
   card - nesting a filled slab in a card left a thin white border round it and
   read like a mistake. Solid, it closes the info column the way the footer
   closes the page. */
.contact-help-card {
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem .35rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
  transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.contact-help-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
}

.contact-help-header {
  text-align: center;
  margin-bottom: 1.1rem;
}

.contact-help-title { color: #fff; }
.contact-help-subtitle { color: rgba(255, 255, 255, .6); }

.contact-help-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 0;
  font-size: .93rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
  /* The rule above the first link doubles as the divider under the header. */
  border-top: 1px solid var(--white-08);
  transition: color var(--dur-fast) ease;
}

.contact-help-links a:hover { color: #fff; }

.contact-help-links .btn-arrow {
  color: rgba(255, 255, 255, .38);
  transition: transform var(--dur-fast) ease, color var(--dur-fast) ease;
}

.contact-help-links a:hover .btn-arrow {
  color: #fff;
  transform: translateX(3px);
}

/* ---------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------ */

@media (max-width: 991px) {
  .contact-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-hero-section .breadcrumbs { text-align: center; }

  /* The icon cluster is decoration; below a desktop column it just eats
     vertical space above the thing people came to use. */
  .contact-hero-visual { display: none; }

  /* Same breakpoint as the hero, so the page goes to one column all at once
     rather than leaving a squeezed two-column form under a stacked hero. */
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .contact-info-card { padding: 1.25rem; }
  .contact-help-card { padding: 1.25rem 1.25rem .3rem; }

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

@media (prefers-reduced-motion: reduce) {
  .contact-main-icon,
  .floating-icon,
  .contact-hero-pill .dot { animation: none; }

  .contact-form-card,
  .contact-info-card,
  .contact-help-card,
  .contact-submit-btn { transition: none; }

  .contact-info-card:hover,
  .contact-help-card:hover,
  .contact-submit-btn:hover { transform: none; }
}
