.contact-page {
  background: var(--paper);
}

.contact-hero {
  padding: 86px 0 82px;
  background: var(--soft);
  text-align: center;
}

.contact-hero-inner {
  max-width: 920px;
}

.contact-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.3;
  letter-spacing: -.045em;
}

.contact-hero-inner > p:last-child {
  margin: 26px 0 0;
  font-size: 16px;
  line-height: 1.9;
}

.contact-form-section {
  padding: 80px 0 100px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 80px;
  align-items: start;
}

.contact-intro {
  position: static;
}

.contact-intro h2 {
  margin: 0 0 20px;
  font-size: 36px;
  line-height: 1.35;
  letter-spacing: -.04em;
}

.contact-intro > p:not(.eyebrow_left) {
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
}

.contact-form {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 16px 44px rgba(30, 37, 45, .08);
}

.form-field {
  margin-bottom: 26px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-field label {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
}

.form-field label span,
.privacy-consent b {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--orange);
  color: white;
  font-size: 12px;
}

.form-field label small {
  padding: 3px 8px;
  border-radius: 999px;
  background: #70757d;
  color: white;
  font-size: 12px;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #bfc4cc;
  border-radius: 7px;
  background: white;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field input {
  min-height: 54px;
  padding: 12px 15px;
}

.form-field textarea {
  min-height: 180px;
  padding: 14px 15px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(52, 120, 246, .15);
}

.privacy-consent {
  padding: 18px;
  border-radius: 7px;
  background: var(--soft);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.privacy-consent input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.privacy-consent > span {
  font-size: 16px;
  line-height: 1.6;
}

.privacy-consent a {
  color: var(--deepblue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 24px;
  padding: 0 18px 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}

.contact-submit:hover {
  transform: translateY(-2px);
}

.contact-submit > span {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: white;
  color: var(--blue);
  display: grid;
  place-items: center;
}

.contact-submit i {
  font-size: 11px;
}

.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-global-error { margin: 0 0 24px; padding: 14px 16px; border: 1px solid #f1a9a3; border-radius: 7px; background: #fff2f0; color: #9f1c13; line-height: 1.7; }
.confirm-list { margin: 0; }
.confirm-list > div { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
.confirm-list > div:first-child { padding-top: 0; }
.confirm-list dt { font-weight: 800; }
.confirm-list dd { margin: 0; overflow-wrap: anywhere; line-height: 1.7; }
.confirm-actions { margin-top: 28px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
.confirm-actions form { min-width: 0; }
.confirm-actions .contact-submit { height: 100%; margin-top: 0; }
.contact-back { border: 1px solid var(--blue); background: white; color: var(--blue); text-decoration: none; }

.thanks-section { min-height: 610px; padding: 90px 0 110px; background: var(--soft); display: grid; place-items: center; }
.thanks-card { width: 100%; margin: 0 auto; padding: 70px 56px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 16px 44px rgba(30, 37, 45, .08); text-align: center; }
.thanks-icon { width: 74px; height: 74px; margin: 0 auto 12px; border-radius: 50%; background: var(--blue); color: white; display: grid; place-items: center; font-size: 32px; }
.thanks-card h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.35; letter-spacing: -.04em; }
.thanks-card > p:not(.eyebrow) { margin: 24px 0 0; font-size: 16px; line-height: 1.9; }
.thanks-actions { margin-top: 34px; display: flex; justify-content: center; }
.thanks-actions .button { border-color: var(--blue); background: var(--blue); color: white; }
.thanks-actions .button span { background: white; color: var(--blue); }

@media (max-width: 980px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .contact-intro {
    position: static;
  }
}

@media (max-width: 640px) {
  .contact-hero {
    padding: 58px 0 56px;
  }

  .contact-hero h1 {
    font-size: 32px;
  }

  .contact-hero-inner > p:last-child br {
    display: none;
  }

  .contact-form-section {
    padding: 56px 0 72px;
  }

  .contact-intro h2 {
    font-size: 29px;
  }

  .contact-form {
    padding: 24px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .confirm-list > div { grid-template-columns: 1fr; gap: 8px; }
  .confirm-actions { grid-template-columns: 1fr; }

  .thanks-section {
    min-height: 520px;
    padding: 56px 0 72px;
  }

  .thanks-card {
    padding: 48px 22px;
  }

}
