:root {
  --ink: #101f33;
  --ink-soft: #5b6675;
  --red: #e31b23;
  --line: #dce1e7;
  --paper: #f5f7f9;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.contact-shell {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.contact-header {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}

.header-row {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-row img { width: 190px; display: block; }

.back-link {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
}

.contact-main { padding: 78px 0 90px; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(540px, 1.22fr);
  gap: 70px;
  align-items: start;
}

.contact-intro { padding-top: 28px; }

.kicker {
  margin: 0 0 24px;
  color: var(--red);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.contact-intro h1 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(48px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.065em;
}

.intro-copy {
  max-width: 520px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
  font-weight: 650;
  line-height: 1.55;
}

.direct-email {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
}

.direct-email span { color: var(--ink-soft); }
.direct-email strong { font-size: 16px; }

.form-card {
  padding: 42px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(16, 31, 51, .08);
}

.form-card h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -.045em;
}

.required-note {
  margin: 9px 0 30px;
  color: var(--ink-soft);
  font-size: 13px;
}

form { display: grid; gap: 21px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

label { display: grid; gap: 8px; }

label > span {
  font-size: 13px;
  font-weight: 800;
}

input, select, textarea {
  width: 100%;
  border: 1px solid #cfd6de;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input, select { min-height: 50px; padding: 0 14px; }
textarea { min-height: 164px; padding: 13px 14px; resize: vertical; line-height: 1.5; }

input:focus, select:focus, textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227, 27, 35, .12);
}

.privacy-note {
  margin: -2px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.primary-action {
  width: fit-content;
  min-height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--red);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.primary-action:hover { background: #c9141b; transform: translateY(-1px); }
.primary-action:focus-visible { outline: 3px solid rgba(227, 27, 35, .25); outline-offset: 3px; }

.error-message {
  margin: 0 0 24px;
  padding: 17px 19px;
  border-left: 4px solid var(--red);
  background: #fff0f1;
  color: #7d1116;
  font-size: 14px;
  line-height: 1.5;
}

.error-message ul { margin: 8px 0 0; padding-left: 20px; }
.error-message p { margin: 7px 0 0; }

.success-message { padding: 14px 2px 6px; }
.success-message > span { color: var(--red); font-size: 44px; font-weight: 900; }
.success-message h2 { max-width: 480px; margin-top: 16px; font-size: 40px; }
.success-message p { max-width: 480px; margin: 18px 0 30px; color: var(--ink-soft); font-size: 17px; line-height: 1.55; }

.website-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 45px; }
  .contact-intro { padding-top: 0; }
  .contact-intro h1 { max-width: 680px; }
  .intro-copy { max-width: 680px; }
  .direct-email { margin-top: 30px; }
}

@media (max-width: 600px) {
  .contact-shell { width: min(100% - 24px, 520px); }
  .header-row { min-height: 68px; }
  .header-row img { width: 145px; }
  .back-link { font-size: 11px; }
  .contact-main { padding: 48px 0 60px; }
  .contact-intro h1 { font-size: 49px; }
  .intro-copy { margin-top: 22px; font-size: 17px; }
  .form-card { padding: 27px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 21px; }
  .primary-action { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; }
}
