/* THL Theme — Contact Us page.
   Self-contained: .phead/.crumb/.kicker/.lede are not global (they live in
   speaker.css), so the page-head bits needed here are redefined locally, matching
   the cpd-log precedent. Form + aside styling uses the global tokens from style.css.
   Nav frost + scroll-reveal are global (site.js). */

/* ---- Page head ---------------------------------------------------------- */
.phead.contact-head {
  padding: 84px 48px 52px;
  background:
    radial-gradient(ellipse 60% 120% at 88% 0%, rgba(122,175,201,0.10) 0%, transparent 58%),
    linear-gradient(180deg, #16202e 0%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--line);
}
.contact-head .phead-inner { max-width: 1040px; margin: 0 auto; }
.contact-head .crumb { font-size: 12.5px; color: var(--t-soft); margin-bottom: 18px; }
.contact-head .crumb a { color: var(--t-mid); text-decoration: none; transition: color .2s; }
.contact-head .crumb a:hover { color: var(--blue-bright); }
.contact-head .crumb .sep { margin: 0 8px; color: var(--t-soft); }
.contact-head .kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue-bright); margin-bottom: 14px;
}
.contact-head .kicker::before { content: ''; width: 26px; height: 1px; background: var(--blue); }
.contact-head h1 {
  font-size: clamp(32px, 4vw, 52px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 16px;
}
.contact-head .lede { font-size: 15px; color: var(--t-mid); line-height: 1.7; max-width: 620px; }
.contact-head .lede a { color: var(--blue-bright); text-decoration: none; }
.contact-head .lede a:hover, .contact-head .lede a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Layout ------------------------------------------------------------- */
.contact-wrap { padding: 56px 48px 88px; background: var(--bg); }
.contact-inner {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: 1.45fr 1fr; gap: 40px; align-items: start;
}

/* ---- Form card ---------------------------------------------------------- */
.contact-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 34px 30px;
  box-shadow: var(--shadow-lift);
}
.cform-row { margin-bottom: 20px; }
.cform label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--t-strong); margin-bottom: 8px; letter-spacing: 0.01em;
}
.cform input[type="text"],
.cform input[type="email"],
.cform select,
.cform textarea {
  width: 100%;
  font-family: inherit; font-size: 15px; line-height: 1.5;
  color: var(--t-strong);
  background: var(--bg-deep);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s;
  -webkit-appearance: none; appearance: none;
}
.cform textarea { resize: vertical; min-height: 132px; }
.cform input::placeholder,
.cform textarea::placeholder { color: var(--t-soft); }
.cform input:focus,
.cform select:focus,
.cform textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(122,175,201,0.18);
  background: #0f141d;
}

/* Select with custom chevron. */
.cform-select { position: relative; }
.cform-select select { padding-right: 42px; cursor: pointer; }
.cform-select select:invalid { color: var(--t-soft); }
.cform-select option { color: #10151f; }
.cform-chev {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--t-soft); pointer-events: none;
}

/* Field errors. */
.cform-err { display: none; margin-top: 7px; font-size: 12.5px; color: #e79a9a; line-height: 1.5; }
.cform-row.has-error .cform-err { display: block; }
.cform-row.has-error input,
.cform-row.has-error select,
.cform-row.has-error textarea {
  border-color: rgba(217,154,154,0.6);
  box-shadow: 0 0 0 3px rgba(217,154,154,0.14);
}

/* Honeypot — kept in the DOM, kept off-screen, never shown to people. */
.thl-hp {
  position: absolute !important;
  left: -9999px !important; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

/* Submit. */
.cform-submit {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 4px;
  font-family: inherit; font-size: 15px; font-weight: 700;
  color: var(--navy-deeper); background: var(--blue);
  border: 0; border-radius: 10px; padding: 13px 24px; cursor: pointer;
  transition: background .2s, transform .15s, opacity .2s;
}
.cform-submit svg { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }
.cform-submit:hover { background: var(--blue-bright); transform: translateY(-1px); }
.cform-submit:hover svg { transform: translateX(3px); }
.cform-submit:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
.cform.is-sending .cform-submit { opacity: 0.65; cursor: progress; pointer-events: none; }
.cform.is-sending .cform-submit svg { display: none; }

/* Status line (errors that are not field-specific). */
.cform-status { display: none; margin: 16px 0 0; font-size: 13.5px; line-height: 1.6; }
.cform-status.show { display: block; }
.cform-status.is-error { color: #e79a9a; }

.cform-noscript { margin: 0; font-size: 14px; color: var(--t-mid); line-height: 1.7; }
.cform-noscript a { color: var(--blue-bright); }

/* Success panel (replaces the form on send). */
.cform-success { text-align: center; padding: 18px 8px 10px; }
.cform-success .ok {
  width: 56px; height: 56px; margin: 0 auto 18px;
  display: grid; place-items: center; border-radius: 50%;
  color: #6fce9f; background: rgba(111,206,159,0.12); border: 1px solid rgba(111,206,159,0.3);
}
.cform-success .ok svg { width: 26px; height: 26px; }
.cform-success h2 { font-size: 22px; font-weight: 700; color: var(--t-strong); margin-bottom: 10px; letter-spacing: -0.01em; }
.cform-success p { font-size: 15px; color: var(--t-mid); line-height: 1.7; max-width: 420px; margin: 0 auto; }

/* ---- Aside -------------------------------------------------------------- */
.contact-aside { padding-top: 4px; }
.ca-block { padding: 0 0 22px; }
.ca-block + .ca-block { border-top: 1px solid var(--line); padding-top: 22px; }
.ca-block h2 { font-size: 17px; font-weight: 700; color: var(--t-strong); margin-bottom: 9px; letter-spacing: -0.01em; }
.ca-block h3 { font-size: 13px; font-weight: 700; color: var(--blue-bright); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 9px; }
.ca-block p { font-size: 14.5px; color: var(--t-mid); line-height: 1.7; margin: 0; }
.ca-block a { color: var(--blue-bright); text-decoration: none; }
.ca-block a:hover, .ca-block a:focus-visible { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; gap: 30px; }
  .contact-aside { order: 2; }
}
@media (max-width: 760px) {
  .phead.contact-head { padding: 56px 24px 40px; }
}
@media (max-width: 600px) {
  .contact-wrap { padding: 40px 22px 64px; }
  .contact-card { padding: 24px 20px 22px; border-radius: 14px; }
  .cform-submit { width: 100%; justify-content: center; }
}
