.pg-contact {
  --contact-bg: #080d24;
  --contact-card: #111936;
  --contact-surface: #151c3b;
  --contact-purple: #7c3aed;
  --contact-bright: #9333ea;
  --contact-violet: #a855f7;
  --contact-text: #fff;
  --contact-muted: #b8b7d9;
  position: relative;
  isolation: isolate;
  min-height: 70vh;
  overflow: hidden;
  padding: 1.5rem 0 3rem;
  background: radial-gradient(circle at 84% 3%, rgba(124, 58, 237, .16), transparent 24rem), var(--contact-bg);
  color: var(--contact-text);
  font-size: 1rem;
}

.pg-contact__glow { position: absolute; z-index: -1; top: -18rem; right: -12rem; width: 38rem; height: 38rem; border-radius: 50%; background: radial-gradient(circle, rgba(147, 51, 234, .3), transparent 67%); }
.pg-contact__inner { width: min(calc(100% - 3rem), 80rem); margin-inline: auto; }
.pg-contact :where(a, button, input, select, textarea):focus-visible { outline: 3px solid #c084fc; outline-offset: 3px; }

body.public-app:has(.pg-contact) {
  --select-control: #101633;
  --select-control-glass: rgba(16, 22, 51, .98);
  --select-panel: #151c3b;
  --select-panel-glass: rgba(21, 28, 59, .98);
  --select-text: #fff;
  --select-muted: #b8b7d9;
  --select-border: #7c3aed;
  --select-focus: #a855f7;
  --select-hover: #271350;
  --select-active: #6d28d9;
  --select-selected: rgba(109, 40, 217, .72);
  --select-shadow: 0 18px 38px rgba(2, 6, 23, .42);
  --select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23c084fc' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
  background: #080d24;
}
body:has(.pg-contact) .public-header { position: relative; z-index: 10; border-color: rgba(139, 92, 246, .28); background: rgba(7, 12, 35, .98); }
body:has(.pg-contact) .public-header .nav-link[aria-current] { background: linear-gradient(135deg, #7c3aed, #a21caf); color: #fff; box-shadow: 0 8px 24px rgba(124, 58, 237, .28); }
body:has(.pg-contact) .site-nav-login { border-color: #713bbb; border-radius: 999px; background: rgba(124, 58, 237, .16); }
body:has(.pg-contact) .public-footer { border-color: rgba(139, 92, 246, .22); background: #080d24; color: #fff; }
body:has(.pg-contact) .public-footer :where(p, .public-copyright) { color: #aaa8c6; }
body:has(.pg-contact) .public-footer h2 { color: #fff; }
body:has(.pg-contact) .public-footer-links a { color: #ddd8ef; }
body:has(.pg-contact) .public-footer .public-brand { color: #fff; }
body:has(.pg-contact) .public-copyright { border-color: rgba(139, 92, 246, .19); }

.pg-contact__hero { display: grid; grid-template-columns: minmax(23rem, .9fr) minmax(0, 1.4fr); align-items: stretch; min-height: 18.5rem; overflow: hidden; border: 1px solid rgba(168, 85, 247, .42); border-radius: 1.15rem; background: linear-gradient(130deg, rgba(60, 28, 112, .8), rgba(17, 25, 54, .98) 55%); box-shadow: 0 22px 58px rgba(0, 0, 0, .28); }
.pg-contact__hero-copy { align-self: center; padding: 2.2rem 1rem 2.2rem 3.5rem; }
.pg-contact__eyebrow { margin: 0 0 .5rem; color: #d96cff; font-size: .875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pg-contact__hero h1 { margin: 0; color: #fff; font-size: clamp(2.75rem, 4.3vw, 3.35rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.02; }
.pg-contact__hero-copy > p:last-child { max-width: 34rem; margin: 1rem 0 0; color: #d1cee1; font-size: 1rem; line-height: 1.6; }
.pg-contact__hero-photo { position: relative; min-width: 0; min-height: 18.5rem; margin: 0; overflow: hidden; background: #111936; }
.pg-contact__hero-photo picture, .pg-contact__hero-photo img { display: block; width: 100%; height: 100%; }
.pg-contact__hero-photo img { min-height: 18.5rem; object-fit: cover; object-position: 78% 55%; }
.pg-contact__hero-photo::before { position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, rgba(50, 25, 102, .78), transparent 38%), linear-gradient(0deg, rgba(8, 13, 36, .18), transparent 45%); content: ""; pointer-events: none; }
.pg-contact__hero-photo figcaption { position: absolute; z-index: 2; right: .8rem; bottom: .75rem; padding: .36rem .65rem; border: 1px solid rgba(255, 255, 255, .23); border-radius: 999px; background: rgba(8, 13, 36, .72); color: #e8e4f7; font-size: .75rem; font-weight: 700; backdrop-filter: blur(10px); }

.pg-contact__layout { display: grid; grid-template-columns: minmax(20rem, 2fr) minmax(0, 3fr); gap: 1.4rem; align-items: start; margin-top: 1.3rem; }
.pg-contact__section-heading { display: flex; align-items: center; gap: .8rem; margin: .25rem 0 1rem; }
.pg-contact__section-heading > span { display: grid; width: 3rem; height: 3rem; flex: 0 0 auto; place-items: center; color: #c64cff; font-size: 2rem; }
.pg-contact__section-heading p { margin: 0 0 .1rem; color: #bb73f9; font-size: .75rem; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
.pg-contact__section-heading h2 { margin: 0; color: #fff; font-size: 1.8rem; font-weight: 800; letter-spacing: -.035em; }
.pg-contact__categories { display: grid; gap: .85rem; }
.pg-contact__category { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 1rem; min-height: 9.25rem; padding: 1.25rem 1.35rem; border: 1px solid rgba(139, 92, 246, .27); border-radius: 1rem; background: linear-gradient(145deg, rgba(20, 28, 62, .98), rgba(13, 20, 47, .98)); box-shadow: 0 14px 34px rgba(0, 0, 0, .19); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.pg-contact__category:hover { border-color: rgba(192, 132, 252, .58); box-shadow: 0 20px 42px rgba(0, 0, 0, .27); transform: translateY(-3px); }
.pg-contact__category-icon { display: grid; width: 3.7rem; height: 3.7rem; place-items: center; border: 1px solid rgba(192, 132, 252, .25); border-radius: .95rem; background: linear-gradient(145deg, #562097, #8629c4); color: #e9d5ff; font-size: 1.55rem; }
.pg-contact__category h3 { margin: .05rem 0 0; color: #fff; font-size: 1.2rem; font-weight: 800; }
.pg-contact__category p { margin: .35rem 0 0; color: #c4c1d4; font-size: .9375rem; line-height: 1.52; }
.pg-contact__category a { display: inline-block; margin-top: .55rem; color: #df84ff; font-size: .875rem; font-weight: 750; text-underline-offset: .25rem; }
.pg-contact__category a:hover { color: #f0b4ff; }

.pg-contact__details { margin-top: 1rem; padding: 1.35rem; border: 1px solid rgba(168, 85, 247, .5); border-radius: 1rem; background: linear-gradient(145deg, rgba(17, 25, 54, .98), rgba(16, 22, 51, .98)); box-shadow: 0 16px 38px rgba(0, 0, 0, .2); }
.pg-contact__details > header > p:first-child { margin: 0 0 .25rem; color: #c084fc; font-size: .75rem; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
.pg-contact__details h2 { margin: 0; color: #fff; font-size: 1.45rem; font-weight: 800; letter-spacing: -.035em; }
.pg-contact__details > header > p:last-child { margin: .55rem 0 0; color: #b8b7d9; font-size: .9375rem; line-height: 1.55; }
.pg-contact__details-list { display: grid; gap: .7rem; margin: 1.1rem 0 0; font-style: normal; }
.pg-contact__detail-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .85rem; min-width: 0; padding: .85rem; border: 1px solid rgba(168, 85, 247, .22); border-radius: .8rem; background: rgba(8, 13, 36, .55); transition: border-color .18s ease, background-color .18s ease, transform .18s ease; }
.pg-contact__detail-row:hover { border-color: rgba(168, 85, 247, .62); background: rgba(39, 19, 80, .52); transform: translateY(-2px); }
.pg-contact__detail-icon { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border-radius: .72rem; color: #f3e8ff; background: linear-gradient(145deg, #6d28d9, #9333ea); box-shadow: 0 8px 22px rgba(124, 58, 237, .28); font-size: 1.15rem; }
.pg-contact__detail-row > span:last-child { min-width: 0; }
.pg-contact__detail-row small, .pg-contact__detail-row strong, .pg-contact__detail-row a { display: block; }
.pg-contact__detail-row small { margin-bottom: .12rem; color: #b8b7d9; font-size: .78rem; font-weight: 700; }
.pg-contact__detail-row strong, .pg-contact__detail-row a { color: #fff; font-size: .9375rem; font-weight: 750; overflow-wrap: anywhere; }
.pg-contact__detail-row a { text-decoration-color: rgba(192, 132, 252, .65); text-underline-offset: .2rem; }
.pg-contact__detail-row a:hover { color: #e9d5ff; }

.pg-contact__form-card { min-width: 0; padding: 1.6rem; border: 1px solid rgba(168, 85, 247, .6); border-radius: 1.1rem; background: linear-gradient(145deg, rgba(25, 24, 72, .98), rgba(16, 22, 53, .98)); box-shadow: 0 22px 54px rgba(0, 0, 0, .28); }
.pg-contact__form-heading { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.15rem; }
.pg-contact__form-heading > span { display: grid; width: 3.5rem; height: 3.5rem; flex: 0 0 auto; place-items: center; border-radius: .9rem; background: linear-gradient(145deg, #6425aa, #9333ea); color: #f3e8ff; font-size: 1.55rem; box-shadow: 0 10px 26px rgba(124, 58, 237, .26); }
.pg-contact__form-heading > div { min-width: 0; flex: 1; }
.pg-contact__form-title-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.pg-contact__form-title-row h2 { margin: 0; color: #fff; font-size: 1.6rem; font-weight: 800; letter-spacing: -.035em; }
.pg-contact__form-title-row strong { flex: 0 0 auto; padding: .35rem .6rem; border: 1px solid rgba(245, 158, 11, .38); border-radius: 999px; background: rgba(245, 158, 11, .1); color: #fcd34d; font-size: .75rem; }
.pg-contact__form-heading p { max-width: 43rem; margin: .3rem 0 0; color: #c5c1d7; font-size: .9375rem; line-height: 1.5; }
.pg-contact__form-card fieldset { margin: 0; min-width: 0; padding: 0; border: 0; }
.pg-contact__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; }
.pg-contact__field { min-width: 0; }
.pg-contact__field--wide { grid-column: 1 / -1; }
.pg-contact__field label { display: block; margin-bottom: .35rem; color: #eeeafd; font-size: .875rem; font-weight: 750; }
.pg-contact__field > div { position: relative; }
.pg-contact__field > div > i { position: absolute; z-index: 1; top: 50%; left: .9rem; color: #d8b4fe; font-size: 1rem; transform: translateY(-50%); }
.pg-contact__field input, .pg-contact__field select, .pg-contact__field textarea { display: block; width: 100%; border: 1px solid #55518a; border-radius: .72rem; background: rgba(11, 17, 47, .82); color: #eeeafd; font: inherit; font-size: .9375rem; opacity: 1; }
.pg-contact__field input, .pg-contact__field select { min-height: 3rem; padding: .65rem .85rem .65rem 2.7rem; }
.pg-contact__field textarea { min-height: 8.2rem; padding: .8rem .85rem .8rem 2.7rem; resize: vertical; }
.pg-contact__field .pg-contact__textarea > i { top: 1rem; transform: none; }
.pg-contact__field input::placeholder, .pg-contact__field textarea::placeholder { color: #918dab; opacity: 1; }
.pg-contact__field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #c4b5fd 50%), linear-gradient(135deg, #c4b5fd 50%, transparent 50%); background-position: calc(100% - 1.15rem) 1.25rem, calc(100% - .85rem) 1.25rem; background-repeat: no-repeat; background-size: .3rem .3rem, .3rem .3rem; }
body.public-app:has(.pg-contact) .pg-contact__field .searchable-select.form-select,
body.public-app:has(.pg-contact) .pg-contact__field .searchable-select.single {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}
body.public-app:has(.pg-contact) .pg-contact__field .searchable-select .ts-control {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  flex: 0 0 auto;
  padding: .65rem 2.4rem .65rem 2.7rem;
  border: 1px solid var(--select-border);
  border-radius: .72rem;
  background-color: var(--select-control);
  color: var(--select-text);
}
.pg-contact__field .searchable-select.form-select.single::after { display: none; }
.pg-contact__field .searchable-select .ts-control .item {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pg-contact__field > div:has(> .searchable-select) > i { top: 1.5rem; }
.pg-contact__field .searchable-select .ts-dropdown,
.pg-contact__field .searchable-select-above .ts-dropdown {
  position: static;
  inset: auto;
  width: 100%;
  max-width: none;
  flex: 0 0 auto;
  align-self: stretch;
  margin: .5rem 0 0;
}
.pg-contact__field .searchable-select .ts-dropdown .option {
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
}
.pg-contact__field .searchable-select .option { font-size: .9375rem; }
.pg-contact__field :where(input, textarea):disabled { background-color: rgba(11, 17, 47, .82); border-color: #55518a; color: #eeeafd; opacity: 1; -webkit-text-fill-color: #eeeafd; cursor: not-allowed; }
.pg-contact__submit { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; gap: .55rem; margin-top: 1.05rem; padding: .7rem 1.2rem; border: 0; border-radius: .8rem; background: linear-gradient(135deg, #7c3aed, #c026d3); color: #fff; font-size: .9375rem; font-weight: 800; opacity: .64; cursor: not-allowed; }

@media (max-width: 61.99rem) {
  .pg-contact__hero { grid-template-columns: 1fr; }
  .pg-contact__hero-copy { padding: 2rem; }
  .pg-contact__hero-photo { min-height: 18rem; }
  .pg-contact__hero-photo img { min-height: 18rem; }
  .pg-contact__layout { grid-template-columns: 1fr; }
  .pg-contact__categories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pg-contact__category { grid-template-columns: 1fr; min-height: 0; }
}

@media (max-width: 47.99rem) {
  .pg-contact { padding-top: 1rem; }
  .pg-contact__inner { width: min(calc(100% - 2rem), 80rem); }
  .pg-contact__hero h1 { font-size: clamp(2.35rem, 11vw, 3.1rem); }
  .pg-contact__hero-photo, .pg-contact__hero-photo img { min-height: 15rem; }
  .pg-contact__categories { grid-template-columns: 1fr; }
  .pg-contact__fields { grid-template-columns: 1fr; }
  .pg-contact__field--wide { grid-column: 1; }
  .pg-contact__form-card { padding: 1.2rem; }
}

@media (max-width: 30rem) {
  .pg-contact__hero-copy { padding: 1.35rem; }
  .pg-contact__category, .pg-contact__form-heading { align-items: flex-start; flex-direction: column; }
  .pg-contact__category { display: grid; }
  .pg-contact__form-heading { display: flex; }
  .pg-contact__form-title-row { align-items: flex-start; flex-direction: column; gap: .5rem; }
  .pg-contact__submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .pg-contact *, .pg-contact__category { transition: none !important; }
}
