:root {
  color-scheme: light;
  font: 100%/1.5 'DM Sans', system-ui, sans-serif;
  color: #203048;
  background: #f1f5fa;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none; }
body { margin: 0; }
.contact-shell {
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem) 2.5rem;
}
.contact-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  padding: 1.3rem 0;
}
.contact-header a { color: #26466e; }
.contact-header a:first-child { font-weight: 750; text-decoration: none; }
.contact-card {
  border: 1px solid #d4dfec;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1rem 3rem #1834570d;
  overflow: hidden;
}
.contact-heading {
  padding: clamp(1.3rem, 5vw, 2.2rem);
  background: linear-gradient(110deg, #173350, #264d72);
  color: #fff;
}
.contact-heading p { color: #dceaf9; margin: 0 0 .5rem; }
.contact-heading h1 {
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0;
  overflow-wrap: anywhere;
}
.contact-body { padding: clamp(1.15rem, 5vw, 2.2rem); }
.contact-form, .contact-fields { display: grid; gap: 1rem 1.25rem; }
.contact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-form label {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: .35rem;
  font-size: .9375rem;
  font-weight: 650;
}
.contact-form :is(input, select, textarea) {
  width: 100%;
  border: 1px solid #9eafc4;
  border-radius: .5rem;
  background-color: #fff;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  font-weight: 400;
  min-height: 2.8rem;
  padding: .65rem .75rem;
}
.contact-form select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #425b78 50%) right 1.2rem center / .325rem .325rem no-repeat,
    linear-gradient(135deg, #425b78 50%, transparent 50%) right .875rem center / .325rem .325rem no-repeat,
    #fff;
  padding-right: 2.2rem;
}
.contact-form textarea { min-height: 8rem; resize: vertical; }
.contact-privacy, .contact-alert, .contact-receipt {
  padding: .85rem 1rem;
  border-radius: .5rem;
  background: #eef4fa;
  color: #324c69;
}
.contact-privacy p { margin: 0 0 .4rem; }
.contact-privacy a { color: inherit; text-underline-offset: .18rem; }
.contact-alert { background: #fceceb; color: #862d29; margin: 0 0 1rem; }
.contact-receipt { background: #e8f4ee; color: #21583d; margin: 0; }
.contact-submit {
  justify-self: end;
  border: 0;
  border-radius: .5rem;
  background: #2453bb;
  color: #fff;
  font: inherit;
  font-weight: 700;
  min-height: 2.8rem;
  padding: .65rem 1.25rem;
  cursor: pointer;
}
.contact-submit:hover { background: #193e8b; }
:focus-visible { outline: 3px solid #2453bb; outline-offset: 3px; }
@media (max-width: 36rem) {
  .contact-fields { grid-template-columns: minmax(0, 1fr); }
  .contact-submit { justify-self: stretch; }
}
