/* SvarKlar /contact page styles.
   Loaded after tokens.css + components.css + site.css.
   Mirrors /start/ form-card DNA (dark ink card on photo hero) but
   single-step, with a direct-email block + trial pointer instead of pills. */


/* ════════════════════════════════════════════════════
   1. SPLIT HERO LAYOUT
   ════════════════════════════════════════════════════ */

.t-contact-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 720px;
  padding-top: 120px;
  padding-bottom: 96px;
}

.t-contact-hero .t-hero-overlay {
  background:
    linear-gradient(90deg,
      rgba(10, 11, 13, 0.82) 0%,
      rgba(10, 11, 13, 0.62) 38%,
      rgba(10, 11, 13, 0.42) 62%,
      rgba(10, 11, 13, 0.55) 100%),
    linear-gradient(180deg,
      rgba(10, 11, 13, 0.20) 0%,
      rgba(10, 11, 13, 0) 35%,
      rgba(10, 11, 13, 0) 70%,
      rgba(10, 11, 13, 0.45) 100%);
}

.t-contact-hero-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.t-contact-left {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
  justify-self: center;
}

.t-contact-copy .t-hero-h1 {
  margin-bottom: 22px;
}

.t-contact-sub {
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--cream);
  max-width: 44ch;
  margin: 0 auto;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 2px 14px rgba(0, 0, 0, 0.30);
}


/* ════════════════════════════════════════════════════
   2. DIRECT-EMAIL BLOCK
   "Email   frederik@…   |   Reply time   One business day"
   Sits on the photo as a thin glass row, gold rule on left.
   ════════════════════════════════════════════════════ */

.t-contact-direct {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px 18px;
  border-radius: var(--r-lg);
  background: rgba(10, 11, 13, 0.45);
  border: 1px solid rgba(245, 240, 230, 0.14);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
  width: 100%;
}

.t-contact-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.t-contact-channel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border-radius: var(--r-md);
  background: rgba(245, 240, 230, 0.04);
  border: 1px solid rgba(245, 240, 230, 0.14);
  color: #f5f0e6;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, color 160ms ease;
}
.t-contact-channel:hover {
  background: rgba(245, 240, 230, 0.08);
  border-color: rgba(232, 196, 89, 0.55);
  transform: translateY(-1px);
  color: var(--gold);
}
.t-contact-channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
}
.t-contact-channel-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.t-contact-reply {
  font-size: 0.82rem;
  color: var(--body-on-dark-mute);
  margin: 0;
  text-align: center;
  letter-spacing: 0.02em;
}


/* ════════════════════════════════════════════════════
   3. TRIAL POINTER (small, under direct block)
   ════════════════════════════════════════════════════ */

.t-contact-trial {
  font-size: 0.95rem;
  color: var(--body-on-dark);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  margin: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.t-contact-trial a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(232, 196, 89, 0.45);
  font-weight: 600;
}
.t-contact-trial a:hover { text-decoration-color: var(--gold); }
.t-contact-trial a svg { transition: transform 180ms cubic-bezier(.2,.8,.2,1); }
.t-contact-trial a:hover svg { transform: translateX(3px); }


/* ════════════════════════════════════════════════════
   4. FORM CARD — DARK INK, single step
   Reuses /start/ form-card visual, no ribbon.
   ════════════════════════════════════════════════════ */

.t-contact-form-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}

.t-contact-form-card {
  position: relative;
  background: var(--ink);
  color: #f5f0e6;
  border: 1px solid rgba(232, 196, 89, 0.22);
  border-radius: 22px;
  padding: 44px 40px 32px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 4px 10px rgba(0, 0, 0, 0.20);
  overflow: visible;
}

/* Reply-time ribbon (small, top-edge) */
.t-contact-ribbon {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 20px;
  background: linear-gradient(180deg, #f4d36b 0%, var(--gold) 55%, #c9a13e 100%);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
  border-radius: var(--r-pill);
  box-shadow:
    0 6px 18px rgba(180, 130, 30, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 -1px 0 rgba(0, 0, 0, 0.10) inset;
}
.t-contact-ribbon-dot {
  width: 7px; height: 7px;
  border-radius: var(--r-pill);
  background: var(--ink);
  display: inline-block;
}

.t-contact-form-h2 {
  font-family: var(--heading-font);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #f5f0e6;
  margin: 4px 0 10px;
  text-wrap: balance;
  text-align: center;
}
.t-contact-form-h2 em {
  font-family: var(--heading-font) !important;
  font-style: italic !important;
  font-weight: 600 !important;
  font-size: 1em !important;
  letter-spacing: -0.015em !important;
  color: var(--gold) !important;
  line-height: inherit !important;
  text-shadow: none !important;
}
.t-contact-form-sub {
  font-size: 0.95rem;
  color: var(--body-on-dark);
  margin: 0 0 24px;
  line-height: 1.55;
  text-wrap: pretty;
  text-align: center;
}

/* On-dark form fields. Form uses canonical .t-field + .t-form-block
   (components.css); rules below override the paper-bg defaults for
   this dark-card context. Twins with /start/ form-card styling. */
.t-contact-form-card .t-form-block {
  gap: 14px 14px;
}
.t-contact-form-card button[type="submit"],
.t-contact-form-card .t-contact-note {
  grid-column: 1 / -1;
}
.t-contact-form-card .t-field label,
.t-contact-form-card .t-field .t-field-label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--body-on-dark);
  display: block;
  text-align: center;
}
.t-contact-form-card .t-field label em {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 700;
  font-size: 1em;
  letter-spacing: 0;
  color: var(--gold);
  margin-left: 3px;
}
.t-contact-form-card .t-field input[type="text"],
.t-contact-form-card .t-field input[type="email"],
.t-contact-form-card .t-field input[type="tel"],
.t-contact-form-card .t-field input[type="url"],
.t-contact-form-card .t-field textarea {
  background: rgba(245, 240, 230, 0.04);
  border: 1px solid rgba(245, 240, 230, 0.18);
  color: #f5f0e6;
  font-size: 1rem;
  line-height: 1.4;
  padding: 14px 16px;
  border-radius: var(--r-md);
}
.t-contact-form-card .t-field input:hover,
.t-contact-form-card .t-field textarea:hover {
  border-color: rgba(232, 196, 89, 0.40);
  background: rgba(245, 240, 230, 0.06);
}
.t-contact-form-card .t-field input:focus,
.t-contact-form-card .t-field textarea:focus {
  outline: 0;
  border-color: var(--gold);
  background: rgba(245, 240, 230, 0.06);
  box-shadow: 0 0 0 3px rgba(232, 196, 89, 0.18);
}
.t-contact-form-card .t-field input::placeholder,
.t-contact-form-card .t-field textarea::placeholder {
  color: rgba(245, 240, 230, 0.40);
  opacity: 1;
}
.t-contact-form-card .t-field textarea {
  resize: vertical;
  min-height: 110px;
}

/* Submit button matches /start/ gold CTA */
.t-contact-form-card .t-cta,
.t-contact-form-card button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
  padding: 16px 24px;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
  background: var(--gold);
  border: 0;
  border-radius: var(--r-pill);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(232, 196, 89, 0.28);
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.t-contact-form-card button[type="submit"]:hover {
  background: var(--gold-deep);
  transform: translateY(-1px);
}
.t-contact-form-card button[type="submit"]:active {
  transform: translateY(0);
}

/* Privacy micro */
.t-contact-form-card .t-contact-note {
  font-size: 0.78rem;
  color: var(--body-on-dark-mute);
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(245, 240, 230, 0.10);
  line-height: 1.55;
  text-align: center;
}
.t-contact-form-card .t-contact-note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(232, 196, 89, 0.4);
}
.t-contact-form-card .t-contact-note a:hover { text-decoration-color: var(--gold); }


/* Founder reassurance band uses canonical .t-founder.is-mini in
   site.css (markup: <section class="t-founder is-mini">). */


/* ════════════════════════════════════════════════════
   5. RESPONSIVE
   ════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .t-contact-hero {
    min-height: 0;
    padding-top: 140px;
    padding-bottom: 88px;
  }
  .t-contact-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* Unwrap the left column so its children become direct grid items
     and can be reordered around the form on iPad + mobile. */
  .t-contact-left { display: contents; }
  .t-contact-copy { order: 1; max-width: 560px; margin: 0 auto; width: 100%; text-align: center; }
  .t-contact-form-wrap { order: 2; max-width: 540px; margin: 0 auto; width: 100%; }
  .t-contact-direct { order: 3; max-width: 540px; margin: 0 auto; width: 100%; }
  .t-contact-trial { order: 4; justify-self: center; text-align: center; }
  .t-contact-form-card { padding: 38px 30px 28px; }
}

@media (max-width: 640px) {
  .t-contact-hero { padding-top: 120px; }
  .t-contact-form-card { padding: 36px 22px 24px; }
  .t-contact-form-h2 { font-size: 1.45rem; }
  .t-contact-form-card .t-form-block { grid-template-columns: 1fr; gap: 14px; }
  .t-contact-direct { padding: 18px 16px; }
  .t-contact-channels { gap: 8px; }
  .t-contact-channel { padding: 12px 6px; }
  .t-contact-channel-label { font-size: 0.72rem; }
  .t-contact-ribbon { font-size: 0.68rem; height: 34px; padding: 0 16px; }
}
