.contact-page {
  background: #f2f6fa;
}

.contact-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(42px, 6vw, 78px) 0 clamp(72px, 9vw, 112px);
  background: linear-gradient(120deg, #0a2945, #164c78);
  color: #fff;
}

.contact-hero::after {
  position: absolute;
  z-index: -1;
  inset-inline-end: clamp(-250px, -12vw, -130px);
  inset-block-start: -295px;
  width: 490px;
  aspect-ratio: 1;
  border: 1px solid #ffffff26;
  border-radius: 50%;
  box-shadow: 0 0 0 56px #ffffff0f, 0 0 0 112px #ffffff08;
  content: "";
}

.contact-hero-inner > div {
  max-width: 640px;
  padding-inline-start: 20px;
  border-inline-start: 3px solid var(--gold);
}

.contact-hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4rem);
  line-height: 1.2;
  color: inherit;
}

.contact-hero p {
  margin: 12px 0 0;
  color: #e3eff8;
  font-size: clamp(.95rem, 1.6vw, 1.12rem);
}

.contact-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  margin-block-start: -35px;
  padding-block-end: clamp(36px, 6vw, 74px);
}

.contact-card {
  padding: clamp(20px, 3.4vw, 38px);
  border: 1px solid #dce6ee;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 15px 35px #103a600e;
}

.contact-card h2 {
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  line-height: 1.5;
}

.contact-card p {
  margin: 8px 0 22px;
  color: #50687b;
  font-size: .95rem;
}

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

.contact-field {
  display: grid;
  align-content: start;
  gap: 6px;
}

.contact-field-wide {
  grid-column: 1 / -1;
}

.contact-field label {
  color: var(--navy-deep);
  font-size: .9rem;
  font-weight: 700;
}

.contact-field small {
  margin-inline-start: 5px;
  color: #526a7e;
  font-size: .75rem;
  font-weight: 500;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #bacbda;
  border-radius: 9px;
  background: #fbfdff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.contact-field textarea {
  resize: vertical;
}

.contact-field :focus-visible,
.contact-page a:focus-visible,
.contact-submit:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.contact-field [aria-invalid="true"] {
  border-color: #ad2934;
}

.contact-submit {
  grid-column: 1 / -1;
  justify-self: start;
  min-width: 156px;
  margin-block-start: 4px;
  cursor: pointer;
}

.contact-info {
  border-block-start: 3px solid var(--gold);
}

.contact-addresses {
  display: grid;
  gap: 10px;
}

.contact-address {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid #dbe7ef;
  border-radius: 12px;
  background: #f3f8fc;
  color: #134e7e;
  font-size: .9rem;
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-address:hover {
  border-color: #a7c5dd;
  background: #eaf4fc;
  text-decoration: underline;
}

.contact-icon {
  display: grid;
  flex: 0 0 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  background: #e0edf8;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-success {
  display: flex;
  gap: 14px;
  padding: 18px;
  border: 1px solid #b4d7c2;
  border-radius: 12px;
  background: #f0f9f3;
  color: #225f3d;
}

.contact-success .contact-icon {
  background: #d5efde;
}

.contact-success h3,
.contact-success p {
  margin: 0 0 6px;
}

.contact-success a {
  color: inherit;
  font-weight: 700;
}

.contact-card .contact-error {
  padding: 10px 14px;
  border: 1px solid #efb9bf;
  border-radius: 9px;
  background: #fff2f2;
  color: #91212d;
}

.contact-field-error {
  color: #91212d;
  font-size: .84rem;
}

@media (max-width: 850px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .contact-form {
    grid-template-columns: minmax(0, 1fr);
  }

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