.footer-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100400;
  display: grid;
  place-items: center;
  padding: 20px;
}

.footer-contact-modal.hidden {
  display: none;
}

html.footer-contact-open,
html.footer-contact-open body {
  overflow: hidden;
}

.footer-contact-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 82% 14%, rgba(73, 191, 210, 0.22), transparent 30%),
    radial-gradient(circle at 18% 82%, rgba(126, 87, 194, 0.24), transparent 32%),
    rgba(15, 20, 31, 0.66);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-contact-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(300px, 0.94fr) minmax(0, 1.06fr);
  width: min(980px, calc(100vw - 32px));
  max-height: min(88dvh, 760px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 252, 0.98));
  color: #241437;
  box-shadow: 0 34px 96px rgba(19, 24, 39, 0.36);
}

.footer-contact-close {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-start: 16px;
  z-index: 3;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.footer-contact-close:hover {
  transform: scale(1.04);
  background: rgba(255, 255, 255, 0.22);
}

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

.footer-contact-hero {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 16px;
  min-height: 100%;
  padding: 34px 34px 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 16%, rgba(73, 191, 210, 0.30), transparent 30%),
    radial-gradient(circle at 82% 76%, rgba(230, 197, 92, 0.12), transparent 34%),
    linear-gradient(150deg, #2b145f 0%, #51258d 48%, #172537 100%);
  color: #fff;
  text-align: start;
}

.footer-contact-hero::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  pointer-events: none;
}

.footer-contact-hero::before {
  content: "";
  position: absolute;
  inset-inline-start: 30px;
  inset-block-start: 24px;
  width: 96px;
  height: 2px;
  background: linear-gradient(90deg, rgba(73, 191, 210, 0), rgba(73, 191, 210, 0.92), rgba(230, 197, 92, 0.84));
}

.footer-contact-brand {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  padding-inline-start: 52px;
  padding-block: 6px;
}

.footer-contact-logo {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  overflow: hidden;
  color: #fff;
  font-size: 28px;
  font-weight: 950;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(240, 247, 255, 0.88));
  box-shadow: 0 18px 36px rgba(11, 18, 32, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.footer-contact-logo.has-image {
  padding: 7px;
}

.footer-contact-logo:not(.has-image) {
  background:
    linear-gradient(135deg, rgba(126, 87, 194, 0.98), rgba(31, 181, 168, 0.86));
}

.footer-contact-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-contact-brand-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.footer-contact-brand-copy strong {
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.2;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.26);
}

.footer-contact-brand-copy small {
  max-width: 260px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.7;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.20);
}

.footer-contact-hero > :not(.footer-contact-brand) {
  justify-self: start;
}

.footer-contact-crest {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(230, 197, 92, 0.48);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(230, 197, 92, 0.16), rgba(255, 255, 255, 0.08));
  color: #e6c55c;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.footer-contact-crest svg {
  width: 27px;
  height: 27px;
}

.footer-contact-eyebrow {
  position: relative;
  z-index: 1;
  width: max-content;
  max-width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(230, 197, 92, 0.28);
  border-radius: 8px;
  background: rgba(73, 191, 210, 0.12);
  color: #e9fffc;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.footer-contact-hero h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff !important;
  font-size: 34px;
  line-height: 1.18;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.footer-contact-hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 320px;
  color: rgba(248, 250, 252, 0.92) !important;
  font-size: 14px;
  line-height: 1.9;
  font-weight: 750;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.24);
}

.footer-contact-form {
  display: grid;
  gap: 18px;
  padding: 34px;
  background:
    radial-gradient(circle at 94% 8%, rgba(73, 191, 210, 0.10), transparent 28%),
    radial-gradient(circle at 12% 100%, rgba(126, 87, 194, 0.09), transparent 34%);
}

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

.footer-contact-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

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

.footer-contact-field span,
.footer-contact-methods legend {
  color: #3f3153;
  font-size: 13px;
  font-weight: 900;
}

.footer-contact-field input,
.footer-contact-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(98, 89, 120, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 253, 0.96));
  color: #241437;
  font-family: inherit;
  font-size: 14px;
  font-weight: 750;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.footer-contact-field input {
  height: 48px;
  padding: 0 14px;
}

.footer-contact-field textarea {
  min-height: 132px;
  resize: vertical;
  padding: 13px 14px;
  line-height: 1.75;
}

.footer-contact-field input:focus,
.footer-contact-field textarea:focus {
  border-color: rgba(73, 191, 210, 0.74);
  box-shadow: 0 0 0 4px rgba(73, 191, 210, 0.14);
}

.footer-contact-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.footer-contact-methods legend {
  grid-column: 1 / -1;
  padding: 0;
}

.footer-contact-method {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 13px;
  border: 1px solid rgba(98, 89, 120, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.footer-contact-method:hover,
.footer-contact-method:has(input:checked) {
  transform: translateY(-1px);
  border-color: rgba(73, 191, 210, 0.48);
  box-shadow: 0 14px 28px rgba(49, 38, 82, 0.12);
}

.footer-contact-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.footer-contact-method-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  font-size: 14px;
  font-weight: 950;
}

.footer-contact-method-icon-mail {
  background: linear-gradient(135deg, #6e3fa0, #4a1f7b);
}

.footer-contact-method strong,
.footer-contact-method small {
  display: block;
}

.footer-contact-method strong {
  color: #241437;
  font-size: 14px;
  font-weight: 950;
}

.footer-contact-method small {
  margin-top: 3px;
  color: #74677f;
  font-size: 11.5px;
  font-weight: 750;
  line-height: 1.45;
}

.footer-contact-method.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.footer-contact-error {
  min-height: 20px;
  margin: 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 850;
}

.footer-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.footer-contact-submit,
.footer-contact-secondary {
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.footer-contact-submit {
  border: 0;
  background: linear-gradient(135deg, #7e57c2 0%, #5b2e87 58%, #1fb5a8 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(74, 31, 123, 0.24), inset 0 1px 0 rgba(230, 197, 92, 0.32);
}

.footer-contact-secondary {
  border: 1px solid rgba(103, 58, 183, 0.18);
  background: rgba(255, 255, 255, 0.74);
  color: #5b2e87;
}

.footer-contact-submit:hover,
.footer-contact-secondary:hover {
  transform: translateY(-1px);
}

.footer-contact-submit:disabled,
.footer-contact-submit[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

html[data-theme="dark"] .footer-contact-card {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(31, 23, 44, 0.98), rgba(17, 24, 39, 0.98));
  color: #f8f4ff;
}

html[data-theme="dark"] .footer-contact-form {
  background:
    radial-gradient(circle at 94% 8%, rgba(73, 191, 210, 0.09), transparent 28%),
    radial-gradient(circle at 12% 100%, rgba(126, 87, 194, 0.16), transparent 34%);
}

html[data-theme="dark"] .footer-contact-field span,
html[data-theme="dark"] .footer-contact-methods legend,
html[data-theme="dark"] .footer-contact-method strong {
  color: #f8f4ff;
}

html[data-theme="dark"] .footer-contact-field input,
html[data-theme="dark"] .footer-contact-field textarea,
html[data-theme="dark"] .footer-contact-method,
html[data-theme="dark"] .footer-contact-secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.62);
  color: #f8f4ff;
}

html[data-theme="dark"] .footer-contact-method small {
  color: rgba(248, 244, 255, 0.68);
}

@media (max-width: 820px) {
  .footer-contact-card {
    grid-template-columns: 1fr;
  }

  .footer-contact-hero {
    min-height: 210px;
    padding: 28px 24px 26px;
    gap: 14px;
  }

  .footer-contact-hero h2 {
    font-size: 32px;
  }

  .footer-contact-form {
    padding: 24px;
  }

  .footer-contact-brand {
    padding-inline-start: 54px;
  }
}

@media (max-width: 560px) {
  .footer-contact-modal {
    padding: 10px;
    align-items: end;
  }

  .footer-contact-card {
    width: 100%;
    max-height: calc(100dvh - 20px);
    border-radius: 8px;
  }

  .footer-contact-close {
    inset-block-start: 12px;
    inset-inline-start: 12px;
  }

  .footer-contact-brand {
    grid-template-columns: auto minmax(0, 1fr);
    padding-inline-start: 46px;
  }

  .footer-contact-logo {
    width: 52px;
    height: 52px;
  }

  .footer-contact-brand-copy strong {
    font-size: 18px;
  }

  .footer-contact-brand-copy small {
    display: none;
  }

  .footer-contact-grid,
  .footer-contact-methods {
    grid-template-columns: 1fr;
  }

  .footer-contact-actions {
    display: grid;
  }

  .footer-contact-submit,
  .footer-contact-secondary {
    width: 100%;
  }
}
