.contact-hero {
  background-color: #0A2540;
  color: #fff;
  padding: 64px 24px 56px;
  text-align: center;
}

.contact-hero h1 {
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}

.contact-hero h1 mark {
  background: none;
  color: #FBBF24;
}

.contact-hero p {
  font-size: 18px;
  opacity: 0.8;
  margin: 0 auto;
  max-width: 520px;
}

/* ── Contact section ── */

.contact-section {
  padding: 48px 24px 64px;
}

.contact-section .container {
  max-width: 960px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
}

/* ── Form ── */

.contact-form-wrapper h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px;
  color: #0A2540;
}

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

.contact-form__field {
  margin-bottom: 20px;
}

.contact-form__field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.contact-form__field .optional {
  font-weight: 400;
  color: #9ca3af;
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #1f2937;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: #FBBF24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .hcp-button {
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form .hcp-button:hover {
  background: #f59e0b;
}

/* ── Info cards ── */

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 52px;
}

.contact-info__card {
  background: #F5F7FA;
  border-radius: 8px;
  padding: 24px;
}

.contact-info__card h3 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #0A2540;
}

.contact-info__card p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.contact-info__card a {
  color: #0A2540;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-info__card a:hover {
  color: #FBBF24;
}

/* ── Legal / long-form content ── */

.legal-content {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
  color: #374151;
}

.legal-content h2 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0A2540;
  margin: 32px 0 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin: 0 0 16px;
  font-size: 15px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
  font-size: 15px;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: #0A2540;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-content a:hover {
  color: #FBBF24;
}

/* ── Responsive ── */

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

  .contact-info {
    padding-top: 0;
  }
}

@media (max-width: 575px) {
  .contact-hero {
    padding: 48px 24px 40px;
  }
}

/* ── Dark mode ── */

[data-theme="dark"] .legal-content {
  color: #d1d5db;
}

[data-theme="dark"] .legal-content h2 {
  color: #fff;
}

[data-theme="dark"] .legal-content a:not(.hcp-button) {
  color: #FBBF24;
}

[data-theme="dark"] .contact-form-wrapper h2 {
  color: #fff;
}

[data-theme="dark"] .contact-form__field label {
  color: #d1d5db;
}

[data-theme="dark"] .contact-form__field input,
[data-theme="dark"] .contact-form__field textarea {
  background: #162232;
  border-color: #1E3148;
  color: #f3f4f6;
}

[data-theme="dark"] .contact-form__field input:focus,
[data-theme="dark"] .contact-form__field textarea:focus {
  border-color: #FBBF24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
}

[data-theme="dark"] .contact-info__card {
  background: #162232;
}

[data-theme="dark"] .contact-info__card h3 {
  color: #fff;
}

[data-theme="dark"] .contact-info__card p {
  color: #9ca3af;
}

[data-theme="dark"] .contact-info__card a {
  color: #FBBF24;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .legal-content {
    color: #d1d5db;
  }

  :root:not([data-theme="light"]) .legal-content h2 {
    color: #fff;
  }

  :root:not([data-theme="light"]) .legal-content a:not(.hcp-button) {
    color: #FBBF24;
  }

  :root:not([data-theme="light"]) .contact-form-wrapper h2 {
    color: #fff;
  }

  :root:not([data-theme="light"]) .contact-form__field label {
    color: #d1d5db;
  }

  :root:not([data-theme="light"]) .contact-form__field input,
  :root:not([data-theme="light"]) .contact-form__field textarea {
    background: #162232;
    border-color: #1E3148;
    color: #f3f4f6;
  }

  :root:not([data-theme="light"]) .contact-form__field input:focus,
  :root:not([data-theme="light"]) .contact-form__field textarea:focus {
    border-color: #FBBF24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
  }

  :root:not([data-theme="light"]) .contact-info__card {
    background: #162232;
  }

  :root:not([data-theme="light"]) .contact-info__card h3 {
    color: #fff;
  }

  :root:not([data-theme="light"]) .contact-info__card p {
    color: #9ca3af;
  }

  :root:not([data-theme="light"]) .contact-info__card a {
    color: #FBBF24;
  }
}
