/* ---------------------------------------------------------------
   Contact page — layered on top of styles.css.
   Reuses the site tokens (--bg, --cyan, --panel, --line, ...) and
   only adds what this page needs.
   --------------------------------------------------------------- */

:root {
  --glass: linear-gradient(160deg, rgba(12,30,54,.86), rgba(6,17,33,.92));
  --glass-line: rgba(96,190,255,.18);
  --field: rgba(4,13,26,.78);
  --radius: 16px;
}

/* ------------------------------ hero ------------------------------ */

.contact-hero {
  position: relative;
  margin-top: 78px;                 /* clears the fixed site header */
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Gradient stands in until the photograph loads — and if the image
     is ever missing the hero still reads as designed. */
  background:
    radial-gradient(120% 140% at 82% 55%, rgba(23,140,220,.42), transparent 58%),
    linear-gradient(105deg, #030b17 0%, #04101f 42%, #07203a 100%);
  background-size: cover;
  background-position: center right;
}

.contact-hero {
  /* Phones get the narrower file; the media query below swaps it. */
  --hero-image: url("assets/contact-hero.webp");
}
@media (max-width: 900px) {
  .contact-hero { --hero-image: url("assets/contact-hero-1200.webp"); }
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-image, none) center right / cover no-repeat;
  z-index: 0;
}

/* Left-side scrim keeps the headline readable over the photo. */
.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3,11,23,.96) 0%, rgba(3,11,23,.88) 32%, rgba(3,11,23,.45) 58%, rgba(3,11,23,.12) 100%),
    linear-gradient(180deg, rgba(3,11,23,.55), transparent 30%, rgba(3,11,23,.6));
  z-index: 1;
}

.contact-hero .shell { position: relative; z-index: 2; padding: 72px 0; }
.hero-text { max-width: 620px; }

.contact-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-size: 12px; font-weight: 750; letter-spacing: .18em;
  color: var(--cyan);
}
.contact-hero .eyebrow span {
  width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.contact-hero h1 {
  margin: 0 0 20px;
  text-transform: none;
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: 1.04;
  letter-spacing: -.025em;
  font-weight: 800;
}

.hero-lede {
  margin: 0 0 30px;
  max-width: 520px;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
  color: #cbd8e8;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-buttons .button svg { width: 18px; height: 18px; flex: none; }

.response-note {
  display: flex; align-items: center; gap: 9px;
  margin: 0; font-size: 13.5px; color: var(--muted);
}
.response-note svg { width: 16px; height: 16px; color: var(--cyan); flex: none; }

/* --------------------------- shared panel -------------------------- */

.panel {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,.42);
  backdrop-filter: blur(14px);
}

.contact-main { padding: 56px 0 90px; }
.contact-main > .shell > section + section { margin-top: 26px; }

.section-title { text-align: center; margin-bottom: 28px; }
.section-title h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -.02em;
}
.section-title p { margin: 0; color: var(--muted); font-size: 15px; }

/* --------------------------- topic cards --------------------------- */

.topic-panel { padding: 34px 30px; }

.topic-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

/* The visually-hidden radio keeps this a real, keyboard-operable
   radio group; the <label> is the card. */
.topic input {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.topic-card {
  display: flex; flex-direction: column; gap: 9px;
  height: 100%;
  padding: 20px 17px 22px;
  border: 1px solid rgba(93,175,238,.16);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(10,26,47,.9), rgba(5,15,29,.9));
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}
.topic-card:hover { transform: translateY(-2px); border-color: rgba(93,175,238,.4); }

.topic input:focus-visible + .topic-card {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.topic input:checked + .topic-card {
  border-color: var(--cyan);
  background: linear-gradient(165deg, rgba(17,55,95,.95), rgba(7,25,47,.95));
  box-shadow: 0 0 0 1px rgba(25,200,244,.5), 0 14px 36px rgba(20,150,220,.3), inset 0 1px 0 rgba(140,225,255,.16);
}

.topic-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(23,120,200,.18);
  border: 1px solid rgba(93,175,238,.22);
  color: var(--cyan);
}
.topic-icon svg { width: 21px; height: 21px; }
.topic input:checked + .topic-card .topic-icon {
  background: rgba(25,200,244,.22);
  border-color: rgba(25,200,244,.55);
}

.topic-card b { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.topic-card span { font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* ---------------------- form + sidebar layout ---------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
}

.form-panel { padding: 32px 30px 34px; }

.form-head {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  margin-bottom: 26px;
}
.form-head h2 { margin: 0; font-size: 23px; letter-spacing: -.02em; }
.form-badge {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(25,200,244,.4);
  background: rgba(25,200,244,.12);
  color: #8fe3ff;
  font-size: 12px; font-weight: 700;
}

.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1.14fr;   /* the interest list needs the extra room */
  gap: 26px;
}
.form-columns > div { min-width: 0; }

.col-title {
  margin: 0 0 15px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(93,175,238,.16);
  font-size: 14px; font-weight: 700; color: #dbe7f5;
}
.col-title small { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }

.field { margin-bottom: 15px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px; font-weight: 600; color: #c2d1e2;
}
.field .req { color: #ff8fa3; margin-left: 2px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid rgba(93,175,238,.2);
  border-radius: 10px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { min-height: 108px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #6d819a; }

.field select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fb0c5' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 16px;
}
.field select option { background: #061427; color: var(--text); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(25,200,244,.16);
}

.field-error {
  display: none;
  margin: 6px 0 0;
  font-size: 12px;
  color: #ff97a9;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #ff6f88; }
.field.invalid .field-error { display: block; }

/* interest checkboxes */
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; }

.check {
  display: flex; align-items: center; gap: 9px;
  min-height: 34px;
  font-size: 12.5px; line-height: 1.35; color: #d3dfec;
  cursor: pointer;
}
.check input {
  appearance: none;
  width: 18px; height: 18px; flex: none;
  border: 1px solid rgba(93,175,238,.38);
  border-radius: 5px;
  background: var(--field);
  display: grid; place-items: center;
  transition: .18s;
}
.check input:checked {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-color: var(--cyan);
}
.check input:checked::after {
  content: "";
  width: 10px; height: 6px;
  border-left: 2px solid #021018;
  border-bottom: 2px solid #021018;
  transform: rotate(-45deg) translate(1px, -1px);
}
.check input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* full-width rows under the columns */
.form-wide { margin-top: 22px; }

.form-actions {
  display: flex; align-items: center; flex-wrap: wrap; gap: 18px;
  margin-top: 22px;
}
.form-actions .button { min-height: 54px; letter-spacing: .04em; }
.form-actions .button svg { width: 17px; height: 17px; }

.secure-note {
  display: flex; align-items: center; gap: 10px;
  margin: 0;
  font-size: 12.5px; line-height: 1.45; color: var(--muted);
}
.secure-note svg { width: 20px; height: 20px; color: #7fd8f5; flex: none; }

/* new-business reveal */
.startup-block {
  margin-top: 22px;
  padding: 24px 22px;
  border: 1px solid rgba(61,229,165,.28);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(9,44,44,.6), rgba(6,20,33,.75));
}
.startup-block h3 { margin: 0 0 7px; font-size: 18px; }
.startup-block > p { margin: 0 0 18px; font-size: 14px; line-height: 1.6; color: #b9cbd9; }
.startup-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.startup-block .check input:checked { background: linear-gradient(135deg, var(--green), #2bbf8a); border-color: var(--green); }

/* animated open/close */
[data-reveal] {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .38s ease, opacity .3s ease, margin .38s ease;
  margin-top: 0;
}
[data-reveal] > div { overflow: hidden; }
[data-reveal].open { grid-template-rows: 1fr; opacity: 1; margin-top: 22px; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; }
}

/* file input */
.file-drop {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border: 1px dashed rgba(93,175,238,.35);
  border-radius: 11px;
  background: rgba(4,13,26,.5);
  font-size: 13px; color: var(--muted);
}
.file-drop input { font-size: 12.5px; color: #cfe0f0; }
.file-drop svg { width: 20px; height: 20px; color: var(--cyan); flex: none; }

/* ------------------------------ sidebar ---------------------------- */

.sidebar { display: grid; gap: 20px; position: sticky; top: 98px; }

.side-panel { padding: 24px 22px; }
.side-panel h3 { margin: 0 0 9px; font-size: 17px; letter-spacing: -.01em; }
.side-panel > p { margin: 0 0 16px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.side-panel .button { width: 100%; }
.side-fine { margin: 11px 0 0; font-size: 12px; text-align: center; color: var(--muted); }

.side-visual {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(93,175,238,.18);
  background: linear-gradient(150deg, rgba(9,28,52,.9), rgba(4,13,26,.9));
}
.side-visual img { display: block; width: 100%; height: auto; }

.ask-list { display: grid; gap: 8px; margin-bottom: 14px; }
.ask-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(93,175,238,.16);
  border-radius: 10px;
  background: rgba(6,18,34,.7);
  color: #d5e2f0;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: .18s;
}
.ask-item:hover { border-color: rgba(25,200,244,.5); color: #fff; transform: translateX(2px); }
.ask-item svg { width: 15px; height: 15px; color: var(--cyan); flex: none; }

.ask-answer {
  margin: 0 0 14px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(25,200,244,.28);
  background: rgba(9,36,62,.6);
  font-size: 13px; line-height: 1.6; color: #cfe0f0;
}
.ask-answer b { color: #fff; }

.support-link {
  display: flex; align-items: center; gap: 11px;
  margin-top: 14px;
  padding-top: 15px;
  border-top: 1px solid rgba(93,175,238,.14);
  font-size: 12.5px; line-height: 1.5; color: var(--muted);
}
.support-link svg { width: 20px; height: 20px; color: var(--cyan); flex: none; }
.support-link a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------- direct contact ------------------------ */

.direct-panel { padding: 34px 30px; }
.direct-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 14px; }

.direct-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 15px;
  border: 1px solid rgba(93,175,238,.16);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(10,26,47,.85), rgba(5,15,29,.9));
  text-align: center;
  transition: .2s;
}
.direct-card:hover { border-color: rgba(25,200,244,.45); transform: translateY(-2px); }
.direct-card .topic-icon { margin-bottom: 3px; }
.direct-card b { font-size: 15px; }
.direct-card a {
  font-size: 11.5px;
  letter-spacing: -.01em;
  white-space: nowrap;          /* never split an address mid-word */
  max-width: 100%;
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (max-width: 1080px) { .direct-card a { font-size: 13px; } }
.direct-card span { font-size: 12px; line-height: 1.5; color: var(--muted); }

.mailbox-note {
  margin: 18px auto 0;
  max-width: 760px;
  padding: 13px 16px;
  border: 1px solid rgba(255,196,84,.3);
  border-radius: 11px;
  background: rgba(58,42,12,.4);
  font-size: 12.5px; line-height: 1.55; color: #f0d9a8;
  text-align: center;
}

/* ------------------------------ trust bar -------------------------- */

.trust-panel { padding: 26px 30px; }
.trust-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 18px; }
.trust-item { display: flex; align-items: flex-start; gap: 12px; }
.trust-item svg { width: 26px; height: 26px; color: var(--cyan); flex: none; margin-top: 2px; }
.trust-item b { display: block; font-size: 14px; margin-bottom: 3px; color: #eaf3ff; }
.trust-item span { font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* ---------------------------- success state ------------------------ */

.success-panel { padding: 44px 34px; text-align: center; }
.success-mark {
  width: 66px; height: 66px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(61,229,165,.14);
  border: 1px solid rgba(61,229,165,.5);
  color: var(--green);
}
.success-mark svg { width: 32px; height: 32px; }
.success-panel h2 { margin: 0 0 10px; font-size: 27px; letter-spacing: -.02em; }
.success-panel > p { margin: 0 auto 26px; max-width: 480px; font-size: 15px; line-height: 1.65; color: #c3d3e4; }

.success-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  max-width: 660px;
  margin: 0 auto 26px;
  text-align: left;
}
.success-summary div {
  padding: 14px 16px;
  border: 1px solid rgba(93,175,238,.16);
  border-radius: 11px;
  background: rgba(6,18,34,.7);
}
.success-summary small { display: block; margin-bottom: 5px; font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.success-summary b { font-size: 14px; font-weight: 650; }

.success-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* form-level error banner */
.form-alert {
  display: none;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255,111,136,.4);
  border-radius: 11px;
  background: rgba(58,14,24,.5);
  font-size: 13.5px; line-height: 1.55; color: #ffc9d3;
}
.form-alert.show { display: flex; }
.form-alert svg { width: 19px; height: 19px; flex: none; margin-top: 1px; color: #ff8fa3; }
.form-alert a { color: #ffd9e0; text-decoration: underline; }

.is-hidden { display: none !important; }

.button[aria-busy="true"] { opacity: .72; pointer-events: none; }

/* ----------------------------- responsive -------------------------- */

@media (max-width: 1080px) {
  .contact-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .topic-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .direct-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .trust-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 900px) {
  .form-columns { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .startup-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .contact-hero { min-height: 430px; }
  .contact-hero::after {
    background:
      linear-gradient(90deg, rgba(3,11,23,.96) 0%, rgba(3,11,23,.82) 55%, rgba(3,11,23,.5) 100%),
      linear-gradient(180deg, rgba(3,11,23,.6), transparent 35%, rgba(3,11,23,.7));
  }
}

@media (max-width: 720px) {
  .contact-hero { margin-top: 66px; min-height: 0; }
  .contact-hero .shell { padding: 54px 0 48px; }
  .contact-main { padding: 34px 0 64px; }
  .topic-panel, .form-panel, .direct-panel, .trust-panel { padding: 24px 18px; }
  .side-panel { padding: 20px 18px; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .form-columns, .startup-grid { grid-template-columns: 1fr; gap: 20px; }
  .sidebar { grid-template-columns: 1fr; }
  .direct-grid, .trust-grid { grid-template-columns: 1fr; }
  .hero-buttons { gap: 10px; }
  .hero-buttons .button { width: 100%; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .button { width: 100%; }
  .secure-note { justify-content: center; text-align: left; }
  .success-panel { padding: 32px 20px; }
}

@media (max-width: 420px) {
  .topic-grid { grid-template-columns: 1fr; }
}
