/* ==========================================================================
   PRISM — Contact page (page-specific; shared components live in
   components.css / sections.css and are reused here, not redefined)
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* Contact hero — centered, text-only, same recipe as the About hero       */
/* ---------------------------------------------------------------------- */
.contact-hero {
  background: radial-gradient(120% 85% at 50% -5%, var(--bg-alt) 0%, #F4F7FC 55%, #E9ECF0 100%);
  padding-top: 57.600px;
  padding-bottom: var(--space-8);
  position: relative;
  overflow: clip;
  text-align: center;
}
.contact-hero__inner { position: relative; z-index: 1; max-width: 700px; margin-inline: auto; }
.contact-hero__badge { margin-bottom: var(--space-5); }
.contact-hero__badge svg { color: var(--brand-blue); }
.contact-hero__title { margin-bottom: var(--space-5); }
.contact-hero__title em {
  font-style: normal;
  font-weight: inherit;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: var(--color-secondary, #3F8DFE);
  color: var(--color-secondary, #3F8DFE);
}
.contact-hero__sub { font-size: var(--fs-lead); color: var(--ink-500); max-width: 56ch; margin-inline: auto; }

.contact-hero .bg-mesh__blob--1 { width: 360px; height: 360px; top: -120px; right: -80px; opacity: 0.32; }
.contact-hero .bg-mesh__blob--2 { width: 300px; height: 300px; bottom: -140px; left: -100px; opacity: 0.26; }
[data-theme="dark"] .contact-hero .bg-mesh__blob--1 { opacity: 0.22; }
[data-theme="dark"] .contact-hero .bg-mesh__blob--2 { opacity: 0.18; }
@media (max-width: 640px) {
  .contact-hero .bg-mesh__blob--1 { width: 240px; height: 240px; top: -70px; right: -60px; opacity: 0.28; }
  .contact-hero .bg-mesh__blob--2 { width: 200px; height: 200px; bottom: -90px; left: -70px; opacity: 0.22; }
}

/* ---------------------------------------------------------------------- */
/* Contact form + info                                                     */
/* ---------------------------------------------------------------------- */
.contact__grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

/* On mobile, place the bypass / contact info card above the contact form */
@media (max-width: 767px) {
  .page-id-24 .contact-info,
  .page-template-page-contact .contact-info {
    order: 1;
  }
  .page-id-24 .contact-form-card,
  .page-template-page-contact .contact-form-card {
    order: 2;
  }
}

/* The form is taller than the info card, so on desktop the info card
   stays pinned in view (rather than leaving blank space beside the form)
   as the visitor scrolls through the longer form. Disabled once the grid
   collapses to a single column, where sticking would look broken. */
@media (min-width: 901px) {
  .contact-info { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
}

.contact-form-card { position: relative; }
.contact-form-card__title { margin-bottom: var(--space-5); }

.contact-info-card__title { margin-bottom: var(--space-5); }
.contact-info-card__list { margin-bottom: var(--space-5); }
.contact-info-card .divider { margin-bottom: var(--space-5); }
.contact-info-card__social { margin-top: var(--space-5); justify-content: center; }

[data-theme="dark"] .contact-hero {
  background: radial-gradient(120% 85% at 50% -5%, #0F1A2D 0%, #06101E 65%, #03070E 100%);
}

.contact-hero .bg-mesh__blob--1 {
  background: radial-gradient(circle, rgba(63, 141, 254, 0.24) 0%, rgba(161, 200, 243, 0.1) 60%, transparent 80%);
}
.contact-hero .bg-mesh__blob--2 {
  background: radial-gradient(circle, rgba(161, 200, 243, 0.3) 0%, rgba(233, 236, 240, 0.15) 60%, transparent 80%);
}
[data-theme="dark"] .contact-hero .bg-mesh__blob--1 {
  background: radial-gradient(circle, rgba(63, 141, 254, 0.22) 0%, transparent 75%);
}
[data-theme="dark"] .contact-hero .bg-mesh__blob--2 {
  background: radial-gradient(circle, rgba(161, 200, 243, 0.15) 0%, transparent 75%);
}

[data-theme="dark"] .contact-hero__title {
  color: #FFFFFF;
}
[data-theme="dark"] .contact-hero__title em {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: var(--color-secondary, #3F8DFE);
  color: var(--color-secondary, #3F8DFE);
}
[data-theme="dark"] .contact-hero__sub {
  color: #A1C8F3;
}


/* Dropdown light/dark visibility fix */
/* Custom select option states (Light & Dark mode visibility) */
.custom-select-option.is-selected {
  background: color-mix(in srgb, var(--brand-indigo) 18%, transparent) !important;
  color: var(--ink-900) !important;
  font-weight: 600 !important;
}
.custom-select-option.is-selected:hover {
  background: color-mix(in srgb, var(--brand-indigo) 25%, transparent) !important;
  color: var(--color-secondary, #3F8DFE) !important;
}
[data-theme="dark"] .custom-select-option.is-selected {
  background: color-mix(in srgb, var(--brand-indigo) 35%, transparent) !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
}
[data-theme="dark"] .custom-select-option.is-selected:hover {
  background: color-mix(in srgb, var(--brand-indigo) 45%, transparent) !important;
  color: #FFFFFF !important;
}
