.contact-section {
  --contact-accent: #bbdcff;
  --contact-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  --contact-gap: clamp(17px, 2vw, 30px);
  padding: clamp(104px, 13svh, 144px) 5% clamp(56px, 8vw, 110px);
  color: #f5faff;
  background:
    radial-gradient(ellipse at 22% 44%, #194e8461, transparent 58%),
    radial-gradient(ellipse at 86% 65%, #32639f36, transparent 52%),
    linear-gradient(180deg, var(--paper), #0d1b32 22%, #081226 100%);
}

.contact-inner { max-width: 1160px; margin-inline: auto; }

.contact-heading,
.contact-layout {
  display: grid;
  grid-template-columns: var(--contact-columns);
  gap: var(--contact-gap);
}

.contact-heading {
  align-items: end;
  margin-bottom: clamp(26px, 3.2vw, 42px);
}

.contact-eyebrow,
.contact-label {
  color: var(--contact-accent);
  font-size: 10px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.contact-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.contact-eyebrow::before { content: ""; width: 24px; height: 1px; background: #93c6f8; }

.contact-heading h2 {
  margin: 0;
  font-size: clamp(48px, 7.2vw, 96px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -.06em;
}

.contact-intro {
  max-width: 49ch;
  margin: 0 0 4px;
  color: #c7d9ef;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
}

.contact-panel {
  --contact-ink: #112e4d;
  --contact-muted: #3d5976;
  --contact-accent: #285781;
  min-width: 0;
  padding: clamp(24px, 3.3vw, 46px);
  border: 1px solid transparent;
  border-radius: clamp(22px, 2.8vw, 34px);
  color: var(--contact-ink);
  color-scheme: light;
  background:
    linear-gradient(146deg, #fff 14%, #f2f8ff 63%, #dfedfc) padding-box,
    linear-gradient(150deg, #fff, #bad5ed 58%, #90b9e0) border-box;
  box-shadow: 0 26px 66px #030a194d;
}

.contact-info {
  --contact-ink: #f2f8ff;
  --contact-accent: #b6d8fb;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: clamp(52px, 6vw, 88px);
  color-scheme: dark;
  background:
    radial-gradient(ellipse at 104% 104%, #2e70ac, transparent 57%) padding-box,
    linear-gradient(153deg, #214d77, #102e51 62%, #0d2544) padding-box,
    linear-gradient(150deg, #8ab6dbb5, #37618d87 48%, #94b9dfaa) border-box;
  box-shadow: 0 26px 66px #030a194d, inset 0 1px #d9eeff27;
}

.contact-ribbons {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  opacity: .72;
  pointer-events: none;
}

.contact-panel h3 {
  margin: 0;
  font-size: clamp(29px, 3vw, 41px);
  font-weight: 480;
  line-height: 1.1;
  letter-spacing: -.045em;
}

.contact-details {
  margin-top: clamp(25px, 3vw, 38px);
  font-style: normal;
}

.contact-detail {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding-block: 16px;
  border-top: 1px solid #a9d0f338;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #e3f1ff;
  border: 1px solid #b6dcff54;
  border-radius: 13px;
  background: linear-gradient(145deg, #d9ecff32, #6ea6db18);
}

.contact-icon svg { width: 19px; height: 19px; }
.contact-label { display: block; margin-bottom: 4px; }
.contact-address-part { white-space: nowrap; }
.contact-detail a:hover { text-decoration: underline; text-underline-offset: .22em; }

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 15px;
  margin-top: clamp(22px, 2.5vw, 30px);
}

.contact-field { display: grid; min-width: 0; gap: 7px; }
.contact-field-wide, .contact-form-actions { grid-column: 1 / -1; }
.contact-field label { font-size: 13px; font-weight: 600; }

.contact-optional {
  margin-left: 6px;
  color: var(--contact-muted);
  font-size: 11px;
  font-weight: 400;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #7691b0;
  border-radius: 12px;
  background: #ffffffdf;
  color: var(--contact-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.35;
  transition: border-color .2s, background-color .2s;
}

.contact-field textarea { min-height: 104px; resize: vertical; }
.contact-field :is(input, textarea)::placeholder { color: #526c89; opacity: 1; }

.contact-field :is(input, textarea):focus-visible {
  outline: 2px solid #275f94;
  outline-offset: 2px;
  background: #fff;
}

.contact-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 3px; }

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 49px;
  padding: 6px 7px 6px 18px;
  border: 1px solid #789ec9;
  border-radius: 999px;
  background:
    linear-gradient(180deg, #fffffff2 0%, #ffffff7a 37%, transparent 65%),
    linear-gradient(112deg, #f1faff 0%, #c6e3ff 55%, #8fbeef 100%);
  box-shadow: inset 0 1px 1px #fff, inset 0 -3px 7px #6298cf38, 0 7px 20px #2a639e32;
  color: #123b64;
  font-size: 14px;
  font-weight: 650;
  transition: box-shadow .25s, filter .25s;
}

.contact-submit > span {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid #7da8d370;
  border-radius: 50%;
  background: #ffffff5e;
  font-size: 16px;
}

.contact-submit:hover { box-shadow: inset 0 1px 1px #fff, inset 0 -3px 7px #6298cf38, 0 9px 24px #2a639e4a; filter: brightness(1.04); }
.contact-submit:focus-visible, .contact-detail a:focus-visible { outline: 2px solid var(--contact-accent); outline-offset: 4px; }
.contact-form-actions p { max-width: 24ch; margin: 0; color: var(--contact-muted); font-size: 12px; line-height: 1.5; }

@media (max-width: 800px) {
  .contact-section { --contact-columns: minmax(0, 1fr); }
  .contact-heading { gap: 14px; }
}

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

@media (max-width: 400px) {
  .contact-panel { padding-inline: 17px; }
  .contact-detail { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
  .contact-icon { width: 34px; height: 34px; }
}
