.contact-page {
  min-height: 100vh;
  background: #dff5ff;
}

.contact-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: url("../../assets/images/backgrounds/contact-image-bg.png") center center / cover no-repeat;
}

.contact-hero__shade {
  display: none;
}

.contact-page .site-header {
  position: absolute;
  z-index: 20;
}

.contact-page .logo {
  top: -4px;
  left: clamp(-30px, -1.5vw, -18px);
}

.contact-page .logo img {
  width: clamp(135px, 9.5vw, 165px);
}

.contact-page .menu-toggle {
  top: 30px;
  right: clamp(28px, 2.5vw, 48px);
  background: #0796e6;
}

@media (min-width: 933px) {
  .contact-page .menu-overlay {
    --menu-duration: 650ms;
  }

  body.contact-page.menu-open .site-header .logo,
  body.contact-page.menu-open .site-header.is-scrolled .logo {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    pointer-events: auto !important;
    transition: none !important;
  }
}

.contact-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(350px, .88fr) minmax(520px, 1.12fr);
  align-items: stretch;
  gap: 0;
  width: min(1120px, calc(100% - 80px));
  min-height: 620px;
  margin: 175px auto 45px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(20, 126, 181, .2);
}

@media (min-width: 933px) and (max-height: 820px) {
  .contact-layout {
    margin-top: 90px;
  }
}

.contact-info {
  align-self: stretch;
  padding: 48px 48px 150px;
  color: #fff;
  background: #075db4 url("../../assets/images/backgrounds/form-bg.png") center bottom / cover no-repeat;
  transform: none;
}

.contact-eyebrow {
  margin: 0 0 10px;
  color: #79d6ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.contact-info h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(31px, 2.5vw, 40px);
  line-height: 1.08;
  letter-spacing: -.04em;
}

.contact-info h1 span { color: #79d6ff; }

.contact-intro {
  margin: 17px 0 32px;
  color: #e8f6ff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
}

.contact-details {
  display: grid;
  gap: 20px;
  margin: 0;
  font-style: normal;
}

.contact-detail {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 13px;
}

.contact-detail__icon {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #07549b;
  background: #fff;
}

.contact-detail__icon svg { width: 21px; fill: currentColor; }
.contact-detail div { display: grid; }
.contact-detail strong { color: #fff; font-size: 14px; }
.contact-detail div > a,
.contact-detail div > span { color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.contact-detail small { color: #ccecff; font-size: 10px; font-weight: 500; }

.contact-signature {
  position: absolute;
  top: 14%;
  left: 45%;
  margin: 0;
  color: #0876dc;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: clamp(42px, 4.2vw, 69px);
  font-weight: 700;
  line-height: .8;
  text-align: center;
  transform: rotate(-7deg);
  text-shadow: none;
}

.contact-signature span { display: inline-block; margin-left: 35px; }

.contact-form-card {
  align-self: stretch;
  margin: 0;
  padding: 48px 48px 28px;
  border-radius: 0;
  color: #082a82;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
  transform: none;
}

.contact-form-card h2 { margin: 0 0 5px; font-size: 29px; letter-spacing: -.04em; }
.contact-form-card > p { margin: 0 0 25px; color: #65759d; font-size: 13px; }
.contact-form { display: grid; gap: 15px; }
.contact-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.contact-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 800; }
.contact-form__help { margin-top: -2px; color: #7d89a6; font-size: 11px; font-weight: 500; }
.contact-form__help--spacer { visibility: hidden; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  display: block;
  min-width: 0;
  width: 100%;
  border: 1px solid #c9dceb;
  border-radius: 8px;
  outline: none;
  color: #183676;
  background: #fff;
  font: 500 13px "Manrope", sans-serif;
  transition: border-color .2s, box-shadow .2s;
}

.contact-form input { height: 44px; padding: 0 14px; }
.contact-form select {
  height: 44px;
  padding: 0 48px 0 14px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23183676' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 11px 7px;
  cursor: pointer;
}
.contact-form textarea { min-height: 138px; padding: 13px 14px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { font-style: italic; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: #078fe3; box-shadow: 0 0 0 3px rgba(7, 143, 227, .12); }

.contact-form > button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #078ee0, #079ce9);
  box-shadow: 0 10px 24px rgba(7, 143, 220, .22);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.contact-form > button[type="submit"] svg { width: 19px; height: 19px; fill: currentColor; }
.contact-form > button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(7, 143, 220, .3); }
.contact-form > button[type="submit"]:disabled { cursor: wait; opacity: .72; transform: none; }
.contact-toast {
  position: fixed;
  top: 28px;
  left: 50%;
  z-index: 5000;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 10px;
  width: min(440px, calc(100% - 32px));
  min-height: 58px;
  padding: 11px 12px 11px 14px;
  border: 1px solid #cce8ad;
  border-radius: 10px;
  color: #35752e;
  background: #efffdc;
  box-shadow: 0 10px 30px rgba(24, 72, 39, .16);
  opacity: 0;
  transform: translate(-50%, -18px);
  transition: opacity .28s ease, transform .38s cubic-bezier(.16, 1, .3, 1);
}

.contact-toast[hidden] { display: none; }
.contact-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.contact-toast__icon { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; color: #fff; background: #72d552; }
.contact-toast__icon::before { content: "✓"; font-size: 15px; font-weight: 800; line-height: 1; }
.contact-toast__message { font-size: 13px; font-weight: 700; line-height: 1.35; }
.contact-toast__close { display: grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: currentColor; background: transparent; font-size: 24px; line-height: 1; cursor: pointer; }
.contact-toast__close:hover { background: rgba(53, 117, 46, .1); }

.contact-toast.is-error {
  border-color: #f0b5b5;
  color: #a62f2f;
  background: #ffe5e5;
  box-shadow: 0 10px 30px rgba(122, 31, 31, .16);
}

.contact-toast.is-error .contact-toast__icon { background: #e54d4d; }
.contact-toast.is-error .contact-toast__icon::before { content: "!"; }
.contact-toast.is-error .contact-toast__close:hover { background: rgba(166, 47, 47, .1); }

.contact-privacy { display: block; margin-top: 15px; color: #6f7ea2; font-size: 11px; text-align: center; }
.contact-privacy a { color: #078fe3; font-weight: 700; text-decoration: none; }

@media (max-width: 1100px) {
  .contact-hero { background-position: 46% center; }
  .contact-layout { grid-template-columns: .8fr 1.2fr; gap: 0; width: min(100% - 48px, 980px); }
  .contact-signature { display: none; }
  .contact-info h1 { font-size: 34px; }
  .contact-info { transform: none; }
  .contact-form-card { padding: 38px 32px 26px; transform: none; }
}

@media (max-width: 780px) {
  .contact-hero { background-position: 43% top; background-attachment: scroll; }
  .contact-hero::before { content: none; }
  .contact-page .logo { top: 4px; left: -6px; }
  .contact-page .logo img { width: 112px; }
  .contact-page .menu-toggle { top: 22px; right: 20px; }
  .contact-layout { display: block; width: min(100% - 32px, 600px); min-height: 0; margin: 140px auto 30px; padding: 0; border-radius: 20px; }
  .contact-info {
    padding: 36px 26px 130px;
    border-radius: 0;
    background: #075db4 url("../../assets/images/backgrounds/form-bg.png") center bottom / cover no-repeat;
    backdrop-filter: none;
  }
  .contact-info h1 { font-size: clamp(29px, 8vw, 38px); }
  .contact-intro { font-size: 16px; }
  .contact-details { gap: 18px; }
  .contact-detail { grid-template-columns: 42px 1fr; gap: 14px; }
  .contact-detail__icon { width: 36px; }
  .contact-detail__icon svg { width: 19px; }
  .contact-detail div > a, .contact-detail div > span { font-size: 14px; }
  .contact-form-card { margin-top: 0; padding: 32px 22px 24px; border-radius: 0; transform: none; }
  .contact-form-card h2 { font-size: 27px; }
  .contact-form-card > p { margin-bottom: 24px; font-size: 14px; }
  .contact-form__row { grid-template-columns: 1fr; gap: 19px; }
  .contact-form__help--spacer { display: none; }
  .contact-desktop-break { display: none; }
}

@media (max-width: 380px) {
  .contact-layout { width: min(100% - 20px, 600px); }
  .contact-info { padding-inline: 15px; }
  .contact-info h1 { font-size: 29px; }
  .contact-eyebrow { font-size: 13px; }
}
