:root {
  color-scheme: dark;
  --page-black: #050507;
  --page-charcoal: #111319;
  --page-blue: #081322;
  --page-blue-glow: #183b60;
  --page-red: #c8203b;
  --page-red-dark: #801323;
  --page-gold: #f2c94c;
  --page-gold-soft: #f0d37a;
  --page-white: #f7f4f1;
  --page-gray: #c7cbd3;
  --page-muted: #9ea5b1;
  --panel: rgb(13 18 27 / 91%);
  --panel-soft: rgb(24 31 43 / 86%);
  --border: rgb(247 244 241 / 24%);
  --focus: #8fc9ff;
  --danger: #ff8a9c;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--page-black);
}

body {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--page-black);
  color: var(--page-white);
  font-family: "Segoe UI", Arial, sans-serif;
}

a {
  color: #8fc9ff;
}

a:hover {
  color: #c7e5ff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.contact-page {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1rem, 3vw, 2.5rem);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 8%, rgb(54 132 218 / 58%) 0%, rgb(24 83 145 / 38%) 18%, transparent 38%),
    radial-gradient(circle at 10% 88%, rgb(128 19 35 / 50%), transparent 34%),
    linear-gradient(145deg, var(--page-black) 0%, var(--page-charcoal) 56%, var(--page-blue) 100%);
}

.contact-page::before {
  position: absolute;
  z-index: -1;
  inset: 12% auto auto 50%;
  width: min(82vw, 700px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(200 32 59 / 12%), transparent 69%);
  content: "";
  filter: blur(14px);
  transform: translateX(-50%);
}

.contact-shell {
  width: min(100%, 820px);
  min-width: 0;
  margin: auto;
}

.contact-header {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1rem, 4vw, 2rem) 1.25rem;
  text-align: center;
}

.brand-link,
.brand-link picture {
  display: block;
}

.contact-logo {
  display: block;
  width: clamp(170px, 28vw, 245px);
  max-width: min(72vw, 100%);
  height: auto;
  margin-inline: auto;
  filter: drop-shadow(0 1rem 2rem rgb(0 0 0 / 50%));
}

.contact-identity {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
}

.contact-brand {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-shadow: 0 0.35rem 0.9rem rgb(0 0 0 / 65%);
  text-transform: uppercase;
}

.contact-descriptor {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: var(--page-gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.95rem, 1.9vw, 1.1rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.contact-descriptor::before,
.contact-descriptor::after {
  width: 1.6rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(240 211 122 / 72%));
  content: "";
}

.contact-descriptor::after {
  background: linear-gradient(90deg, rgb(240 211 122 / 72%), transparent);
}

.contact-intro {
  display: grid;
  width: min(100%, 650px);
  justify-items: center;
  gap: 0.7rem;
  margin-top: 0.35rem;
}

.contact-eyebrow {
  margin: 0;
  color: var(--page-gold-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 7vw, 4.3rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

.contact-accent {
  width: min(42%, 240px);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--page-red-dark), #e2324b, var(--page-gold-soft), transparent);
}

.contact-intro > p:last-child {
  margin: 0;
  color: var(--page-gray);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.65;
  text-wrap: balance;
}

.contact-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  width: 100%;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--panel);
  box-shadow: 0 1.4rem 4rem rgb(0 0 0 / 42%);
  backdrop-filter: blur(12px);
}

.form-grid {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-group {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 0.45rem;
}

.field-group label,
.consent-panel legend {
  color: var(--page-white);
  font-size: 0.98rem;
  font-weight: 700;
}

.field-group label span {
  color: var(--page-gold);
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgb(247 244 241 / 38%);
  border-radius: 0.65rem;
  background: rgb(247 244 241 / 96%);
  color: #111319;
  font: inherit;
  font-size: 1rem;
}

input,
select {
  min-height: 48px;
  padding: 0.72rem 0.8rem;
}

textarea {
  min-height: 170px;
  padding: 0.8rem;
  line-height: 1.5;
  resize: vertical;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px rgb(255 138 156 / 28%);
}

.field-help {
  margin: 0;
  color: var(--page-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.4;
}

.consent-panel {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid rgb(143 201 255 / 26%);
  border-radius: 0.9rem;
  background: var(--panel-soft);
}

.consent-panel legend {
  padding-inline: 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.consent-intro {
  margin: 0;
  color: var(--page-gray);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: justify;
}

.consent-channel {
  display: grid;
  gap: 0.45rem;
}

.consent-channel + .consent-channel {
  padding-top: 0.15rem;
}

.consent-channel h2 {
  margin: 0;
  color: var(--page-gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.consent-channel > p {
  margin: 0;
  color: var(--page-white);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.45;
  text-align: justify;
}

.consent-choice {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid rgb(247 244 241 / 16%);
  border-radius: 0.75rem;
  background: rgb(5 5 7 / 32%);
  color: var(--page-gray);
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.55;
}

.consent-choice:hover {
  border-color: rgb(143 201 255 / 44%);
}

.consent-choice input {
  width: 1.2rem;
  min-height: 0;
  height: 1.2rem;
  margin: 0.2rem 0 0;
  accent-color: var(--page-red);
}

.policy-links {
  display: block;
  margin-top: 0.35rem;
  font-weight: 600;
}

.policy-links a,
.submit-policy a {
  text-underline-offset: 0.18em;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.spam-protection {
  display: grid;
  width: min(100%, 340px);
  justify-items: center;
  gap: 0.7rem;
  margin-inline: auto;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgb(240 211 122 / 30%);
  border-radius: 0.75rem;
  background: rgb(5 5 7 / 36%);
  color: var(--page-gray);
  text-align: center;
}

.turnstile-widget {
  width: 100%;
  min-height: 65px;
}

.spam-protection p {
  display: grid;
  gap: 0.15rem;
  margin: 0;
}

.spam-protection small {
  color: var(--page-muted);
  line-height: 1.35;
}

.submit-button {
  display: inline-flex;
  width: min(100%, 390px);
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-inline: auto;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--page-red-dark);
  border-radius: 999px;
  background: linear-gradient(135deg, #df2946, #bd1733);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.submit-button span {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: 0.6px currentColor;
}

.submit-button:hover {
  filter: brightness(1.08);
  box-shadow: 0 0.8rem 1.8rem rgb(200 32 59 / 32%);
  transform: translateY(-2px);
}

.submit-button:disabled {
  cursor: wait;
  filter: grayscale(0.25) brightness(0.8);
  transform: none;
}

.submit-policy {
  width: min(100%, 540px);
  margin: -0.35rem auto 0;
  color: var(--page-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
}

.form-error-summary,
.form-status {
  padding: 1rem;
  border-radius: 0.75rem;
  line-height: 1.5;
}

.form-error-summary {
  width: 100%;
  padding: 1rem 1.1rem 1.05rem;
  border: 1px solid #79091b;
  background: linear-gradient(135deg, #c91d36, #a90f27);
  box-shadow: 0 0.7rem 1.8rem rgb(126 8 28 / 24%);
  color: #fff;
}

.form-error-summary:focus {
  outline: none;
}

.form-error-summary p,
.form-error-summary ul {
  margin: 0;
}

.form-error-summary ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1rem;
  padding: 0.75rem 0 0;
  list-style: none;
}

.form-error-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-size: 1rem;
}

.form-error-title::before {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 1.55rem;
  place-items: center;
  border: 1px solid rgb(255 215 221 / 68%);
  border-radius: 50%;
  background: rgb(255 138 156 / 18%);
  content: "!";
  font-weight: 900;
  line-height: 1;
}

.form-error-summary li {
  position: relative;
  min-width: 0;
  padding-left: 0.95rem;
}

.form-error-summary li::before {
  position: absolute;
  top: 0.67em;
  left: 0;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #ff9bad;
  content: "";
}

.form-error-summary a {
  display: inline-block;
  padding: 0.05rem 0.2rem;
  border-radius: 0.25rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.form-error-summary a:hover {
  background: rgb(255 255 255 / 12%);
}

.form-error-summary a:focus-visible {
  outline: 2px solid rgb(255 255 255 / 82%);
  outline-offset: 2px;
}

.form-status {
  display: grid;
  gap: 0.2rem;
  border: 1px solid rgb(137 224 177 / 50%);
  background: rgb(26 117 75 / 24%);
  color: #d6ffea;
  text-align: center;
}

[hidden] {
  display: none !important;
}

.contact-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.25rem 1rem 0.5rem;
  color: var(--page-muted);
  font-size: 0.85rem;
  text-align: center;
}

.contact-footer a {
  color: var(--page-gray);
  text-underline-offset: 0.18em;
}

@media (max-width: 620px) {
  .contact-page {
    padding: 0;
  }

  .contact-shell {
    width: 100%;
  }

  .contact-header {
    padding: 1.4rem 1.15rem 1.15rem;
  }

  .contact-logo {
    width: clamp(175px, 53vw, 220px);
  }

  .contact-form {
    gap: 1.1rem;
    width: calc(100% - 2rem);
    margin-inline: auto;
    padding: 1.25rem 1.15rem 1.5rem;
    border-radius: 1rem;
  }

  .form-grid--two {
    grid-template-columns: 1fr;
  }

  .consent-panel {
    padding: 0.85rem;
  }

  .consent-choice {
    padding: 0.75rem;
  }

  .spam-protection {
    width: 100%;
  }

  .form-error-summary ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 370px) {
  .contact-brand {
    font-size: 1.05rem;
    letter-spacing: 0.1em;
  }

  .contact-descriptor {
    gap: 0.45rem;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
  }

  .contact-descriptor::before,
  .contact-descriptor::after {
    width: 1.1rem;
  }

  .contact-eyebrow {
    letter-spacing: 0.14em;
  }

  h1 {
    font-size: 2.55rem;
  }
}

@media (min-width: 2400px) {
  .contact-shell {
    width: min(100%, 1260px);
  }

  .contact-header {
    gap: 1rem;
    padding-block: 2.5rem 1.75rem;
  }

  .contact-logo {
    width: 360px;
  }

  .contact-brand {
    font-size: 2rem;
  }

  .contact-descriptor {
    font-size: 1.35rem;
  }

  .contact-eyebrow {
    font-size: 1rem;
  }

  h1 {
    font-size: 5.5rem;
  }

  .contact-intro {
    width: min(100%, 900px);
  }

  .contact-intro > p:last-child {
    font-size: 1.35rem;
  }

  .contact-form {
    gap: 1.6rem;
    padding: 3rem;
  }

  .form-grid,
  .field-group {
    gap: 0.7rem;
  }

  .field-group label {
    font-size: 1.1rem;
  }

  input,
  select {
    min-height: 58px;
    font-size: 1.1rem;
  }

  textarea {
    min-height: 220px;
    font-size: 1.1rem;
  }

  .field-help,
  .consent-intro,
  .consent-channel > p {
    font-size: 1rem;
  }

  .consent-panel {
    gap: 1.1rem;
    padding: 1.35rem;
  }

  .consent-panel legend {
    font-size: 1.55rem;
  }

  .consent-channel h2 {
    font-size: 1.3rem;
  }

  .consent-choice {
    grid-template-columns: 1.4rem minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1.1rem;
    font-size: 1rem;
  }

  .consent-choice input {
    width: 1.35rem;
    height: 1.35rem;
  }

  .spam-protection {
    width: 420px;
    font-size: 1rem;
  }

  .submit-button {
    width: 480px;
    min-height: 62px;
    font-size: 1.1rem;
  }

  .submit-policy,
  .contact-footer {
    font-size: 0.95rem;
  }
}

@media (hover: none) {
  .submit-button:hover {
    box-shadow: none;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .submit-button {
    transition: none;
  }
}
