@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/montserrat-400.ttf") format("truetype");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/montserrat-500.ttf") format("truetype");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/montserrat-700.ttf") format("truetype");
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --text: #011a3f;
  --muted: #4a5f7a;
  --border: #d0d8e4;
  --button-bg: transparent;
  --button-border: #011a3f;
  --button-text: #011a3f;
  --primary-bg: #011a3f;
  --primary-text: #ffffff;
  --focus: #0d99dd;
  --error: #b42318;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #011230;
    --text: #ffffff;
    --muted: #b8c9de;
    --border: #2a3f5c;
    --button-bg: transparent;
    --button-border: #21bae2;
    --button-text: #ffffff;
    --primary-bg: #ffffff;
    --primary-text: #011230;
    --focus: #21bae2;
    --error: #ff8a8a;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: Montserrat, system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

body.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.site-shell > .contact-page {
  flex: 1;
}

a {
  color: inherit;
}

/* —— Home —— */
.home {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.home-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 1rem;
}

.home-lockup picture,
.home-lockup img {
  display: block;
  min-height: 120px;
  height: auto;
  width: auto;
  max-width: min(320px, 85vw);
  transform: translateY(-2vh);
}

.home-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 1.5rem calc(48px + env(safe-area-inset-bottom, 0px));
}

.btn-home-contact {
  min-height: 44px;
  padding: 0.55rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-footer--home {
  padding: 0;
}

/* —— Contact intro —— */
.contact-intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background: transparent;
  transition: opacity 0.5s ease;
}

.contact-intro--exiting {
  opacity: 0;
  pointer-events: none;
}

.contact-intro--done {
  display: none;
}

.contact-intro-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  object-fit: cover;
  background: transparent;
  display: block;
  pointer-events: none;
}

body.contact-intro-pending .contact-page,
body.contact-intro-pending .site-footer {
  visibility: hidden;
}

/* —— Contact —— */
.contact-page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 1.5rem;
  width: 100%;
}

.contact-title {
  text-align: left;
}

.inquiry-type-screen {
  max-width: 28rem;
  margin: 0 auto;
}

.type-prompt {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
}

.inquiry-type-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inquiry-type-card {
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  text-align: left;
  min-height: 44px;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--button-border);
  background: var(--button-bg);
  color: var(--button-text);
  cursor: pointer;
  width: 100%;
}

.inquiry-type-card:hover {
  opacity: 0.9;
}

.inquiry-type-card:focus {
  outline: none;
}

.inquiry-type-card:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.form-type-change {
  margin: 0 0 1.25rem;
}

.link-back {
  padding: 0;
  border: none;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-back:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.contact-header {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.contact-header picture,
.contact-header img {
  display: block;
  min-height: 120px;
  height: auto;
  width: auto;
  max-width: 200px;
}

h1 {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 1.5rem;
}

#form-panel > h1.contact-title {
  margin-bottom: 0.35rem;
}

.required-legend {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.req {
  color: var(--text);
  font-weight: 700;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 4px;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem 1.25rem;
}

legend {
  font-weight: 700;
  padding: 0 0.35rem;
}

.section-rule {
  display: none;
}

.field,
.field-radios {
  margin-bottom: 20px;
}

.field:last-child,
.field-radios:last-child {
  margin-bottom: 0;
}

.field label,
.field-label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem 0.65rem;
}

.field input:not([type="radio"]):not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.field input:not([type="radio"]):not([type="checkbox"])[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field-hint {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  padding: 0.45rem 1.1rem;
  border-radius: 4px;
  border: 1px solid var(--button-border);
  background: var(--button-bg);
  color: var(--button-text);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn:focus {
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary-bg);
  color: var(--primary-text);
  border-color: var(--primary-bg);
}

.form-actions {
  margin-top: 1.25rem;
}

.confidential {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.privacy-link {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.privacy-link a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 1.25rem 1rem 1.5rem;
}

.privacy-page .privacy-body {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.privacy-page .privacy-body p {
  margin: 0 0 1rem;
}

.form-errors {
  color: var(--error);
  font-size: 0.875rem;
  margin-bottom: 20px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--error);
  border-radius: 4px;
}

.form-errors:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.form-errors-intro {
  margin: 0 0 0.35rem;
  font-weight: 500;
}

.form-errors-list {
  margin: 0;
  padding-left: 1.15rem;
}

.form-errors-list a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-errors-list a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.field-error {
  color: var(--error);
  font-size: 0.8125rem;
  margin: 6px 0 0;
}

.thank-you {
  text-align: center;
  padding: 3rem 1rem;
}

.thank-you h1:focus {
  outline: none;
}

.thank-you p {
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

.turnstile-wrap {
  margin: 1rem 0;
  min-height: 0;
}

.char-count {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  margin-top: 0.35rem;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.field label.radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  width: 100%;
  margin-bottom: 0;
  padding: 0 0.15rem;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
}

.radio-row input[type="radio"],
.radio-row input[type="checkbox"] {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
}

.radio-row-text {
  flex: 0 1 auto;
  line-height: 1.25;
}

@media (max-width: 767px) {
  .contact-page {
    padding: 1.75rem 16px 0.5rem;
  }

  fieldset.form-section {
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0 0 1.75rem;
  }

  fieldset.form-section legend {
    padding: 0;
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .section-rule {
    display: block;
    height: 0;
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 0 1.25rem;
  }

  .field input,
  .field select {
    min-height: 44px;
    font-size: 16px;
    padding: 0.55rem 0.65rem;
  }

  .field textarea {
    font-size: 16px;
    padding: 0.55rem 0.65rem;
  }

  .btn-submit {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
  }

  .contact-shell .site-footer {
    padding-top: 1rem;
  }
}

@media (min-width: 768px) {
  .btn-submit {
    min-height: 44px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
