.contact-page {
  --contact-navy: #10274b;
  --contact-blue: #1d5275;
  --contact-blue-dark: #153f5b;
  --contact-ink: #172033;
  --contact-muted: #617087;
  --contact-line: #d9e1eb;
  background: #ffffff;
}

.contact-page .visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.contact-layout {
  width: min(calc(100% - 40px), var(--reading));
  margin-inline: auto;
  padding-block: 68px 96px;
}

.contact-hero .legal-hero__inner {
  text-align: center;
}

.contact-hero h1 {
  margin-inline: auto;
}

.contact-section-label {
  margin: 0 0 10px;
  color: var(--contact-blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.contact-intro {
  min-width: 0;
}

.contact-lead {
  margin: 0;
  color: var(--contact-navy);
  font-size: var(--public-reading-size);
  line-height: var(--public-reading-leading);
  text-wrap: pretty;
}

.contact-response-details {
  margin-top: 30px;
  padding-block: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.contact-response-details > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.contact-response-details span {
  color: var(--contact-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.contact-response-details strong,
.contact-response-details a {
  color: var(--contact-navy);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.contact-response-details a:hover {
  color: var(--contact-blue);
}

.contact-main {
  min-width: 0;
  margin-top: 56px;
  padding-top: 48px;
}

.contact-form-heading h2 {
  margin: 0;
  color: var(--contact-navy);
  font-size: clamp(25px, 3vw, 32px);
  letter-spacing: -0.025em;
  line-height: 1.3;
  text-wrap: balance;
}

.contact-form-heading > p:last-child {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--contact-muted);
  font-size: 15px;
  line-height: 1.7;
  text-wrap: pretty;
}

#contact-form {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

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

.contact-field {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: var(--contact-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.contact-field em {
  color: var(--contact-blue);
  font-style: normal;
}

.contact-field small {
  margin-left: 5px;
  color: var(--contact-muted);
  font-size: 11px;
  font-weight: 600;
}

.contact-field input,
.contact-field textarea,
.contact-field select {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 13px 15px;
  color: var(--contact-ink);
  background: #ffffff;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.contact-field input,
.contact-field select,
.contact-select > summary {
  min-height: 52px;
}

.contact-field textarea {
  min-height: 170px;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #929eaf;
  opacity: 1;
}

.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
  border-color: var(--contact-blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(29, 82, 117, 0.14);
}

.contact-field input[aria-invalid="true"],
.contact-field textarea[aria-invalid="true"],
.contact-field select[aria-invalid="true"] {
  border-color: #b64235;
}

.contact-select {
  min-width: 0;
  color: var(--contact-ink);
  font-size: 15px;
  font-weight: 400;
}

.contact-select > summary {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 13px 48px 13px 15px;
  background: #ffffff;
  cursor: pointer;
  list-style: none;
}

.contact-select > summary::-webkit-details-marker {
  display: none;
}

.contact-select > summary::after {
  position: absolute;
  right: 18px;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--contact-muted);
  border-bottom: 1.5px solid var(--contact-muted);
  content: "";
  transform: translateY(-25%) rotate(45deg);
}

.contact-select[open] > summary {
  border-color: var(--contact-blue);
  border-radius: 5px 5px 0 0;
  box-shadow: 0 0 0 3px rgba(29, 82, 117, 0.14);
}

.contact-select[open] > summary::after {
  transform: translateY(25%) rotate(225deg);
}

.contact-select > summary:focus-visible {
  border-color: var(--contact-blue);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(29, 82, 117, 0.14);
}

.contact-select__options {
  min-width: 0;
  display: grid;
  gap: 4px;
  margin: -1px 0 0;
  border: 1px solid var(--contact-blue);
  border-radius: 0 0 5px 5px;
  padding: 7px;
  background: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(15, 39, 75, 0.12), 0 4px 6px -4px rgba(15, 39, 75, 0.12);
}

.contact-select__option {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-radius: 4px;
  padding: 10px 12px;
  color: var(--contact-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.contact-select__option:hover,
.contact-select__option:focus-within {
  background: #f1f5f9;
}

.contact-select__option:focus-within {
  outline: 2px solid var(--contact-blue);
  outline-offset: -2px;
}

.contact-select__option:has(input:checked) {
  color: var(--contact-blue-dark);
  background: #eaf2f6;
}

.contact-select__indicator {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: grid;
  place-items: center;
  border: 1.5px solid #a7b2c1;
  border-radius: 50%;
  background: #ffffff;
}

.contact-select__indicator::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--contact-blue);
  content: "";
  opacity: 0;
}

.contact-select__option:has(input:checked) .contact-select__indicator {
  border-color: var(--contact-blue);
}

.contact-select__option:has(input:checked) .contact-select__indicator::after {
  opacity: 1;
}

.contact-select:has(input[aria-invalid="true"]) > summary {
  border-color: #b64235;
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-consent {
  min-height: 44px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--contact-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.65;
  cursor: pointer;
}

.contact-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--contact-blue);
}

.contact-consent a {
  color: var(--contact-blue);
  font-weight: 700;
}

.contact-form-actions {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: start;
  gap: 8px;
  margin-top: 2px;
}

.contact-submit {
  min-width: 160px;
  min-height: 52px;
  border: 1px solid var(--contact-blue);
  border-radius: 5px;
  padding: 0 30px;
  color: #ffffff;
  background: var(--contact-blue);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.contact-submit:hover {
  border-color: var(--contact-blue-dark);
  background: var(--contact-blue-dark);
}

.contact-submit:active {
  transform: translateY(1px);
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.contact-form-status {
  min-height: 22px;
  margin: 0;
  color: var(--contact-muted);
  font-size: 13px;
  line-height: 1.65;
  text-align: left;
}

.contact-form-status[data-state="success"] {
  color: #1f6b4f;
  font-weight: 700;
}

.contact-form-status[data-state="error"] {
  color: #a63b30;
}

.contact-form-status a {
  color: inherit;
  font-weight: 800;
}

@media (max-width: 680px) {
  .contact-layout {
    width: min(calc(100% - 28px), var(--reading));
    padding-block: 42px 72px;
  }

  .contact-main {
    margin-top: 44px;
    padding-top: 36px;
  }

  .contact-response-details {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-block: 18px;
  }

  .contact-field-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .contact-field input,
  .contact-field textarea,
  .contact-field select,
  .contact-select {
    font-size: 16px;
  }

  .contact-consent {
    min-height: 44px;
  }

  .contact-form-actions {
    gap: 12px;
  }

  .contact-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page *,
  .contact-page *::before,
  .contact-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
