.contact-page {
  background: var(--paper-deep);
}

.contact-hero {
  min-height: 720px;
  height: 90vh;
  position: relative;
  display: flex;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 14, 16, 0.95) 0%, rgba(7, 14, 16, 0.82) 37%, rgba(7, 14, 16, 0.42) 70%, rgba(7, 14, 16, 0.28) 100%),
    linear-gradient(0deg, rgba(7, 14, 16, 0.74) 0%, transparent 55%),
    url("assets/bstl-contact-hero-triptych.webp") center / cover no-repeat;
  color: var(--white);
}

.contact-hero-lines {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 33.25%, rgba(255, 255, 255, 0.17) 33.333%, transparent 33.42%, transparent 66.58%, rgba(255, 255, 255, 0.17) 66.666%, transparent 66.75%);
  pointer-events: none;
}

.contact-hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 145px;
  padding-bottom: clamp(68px, 9vh, 105px);
}

.contact-hero-copy {
  max-width: 1080px;
}

.contact-hero h1 {
  margin-top: 25px;
  font-size: clamp(5rem, 8.2vw, 9.2rem);
  line-height: 0.79;
}

.contact-hero h1 em {
  color: var(--gold-light);
}

.contact-hero-copy > p:last-child {
  max-width: 590px;
  margin-top: 36px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  line-height: 1.75;
}

.contact-strip {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.contact-strip-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
}

.contact-strip-grid > div {
  display: grid;
  gap: 12px;
  min-height: 132px;
  align-content: center;
  padding: 28px 34px;
  border-left: 1px solid var(--line);
}

.contact-strip-grid > div:last-child {
  border-right: 1px solid var(--line);
}

.contact-strip span {
  color: #9b7950;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-strip a {
  width: fit-content;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.contact-strip a:hover {
  color: #9b7950;
}

.contact-form-section {
  background: var(--paper-deep);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(65px, 9vw, 140px);
  align-items: start;
}

.contact-form-intro {
  position: sticky;
  top: 130px;
}

.contact-form-intro h2 {
  margin-top: 24px;
  font-size: clamp(4rem, 6.4vw, 7rem);
  line-height: 0.89;
}

.contact-form-intro h2 em {
  color: #9b7950;
}

.contact-form-intro > p:not(.eyebrow) {
  max-width: 550px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.75;
}

.contact-pastoral-note {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 50px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.contact-pastoral-note > span {
  color: #9b7950;
  font: 400 3.2rem/0.8 var(--serif);
}

.contact-pastoral-note p {
  max-width: 390px;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

.contact-form {
  padding: clamp(30px, 5vw, 62px);
  background: var(--white);
  box-shadow: 0 30px 80px rgba(67, 89, 96, 0.11);
}

.contact-form-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 42px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.contact-form-heading > p:last-child {
  color: var(--muted);
  font-size: 0.65rem;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-field {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.contact-field > span:first-child,
.contact-reasons legend {
  color: #435960;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: 0.82rem;
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-field input {
  height: 58px;
  padding: 0 17px;
}

.contact-field textarea {
  min-height: 190px;
  padding: 16px 17px;
  line-height: 1.65;
  resize: vertical;
}

.contact-field textarea::placeholder {
  color: rgba(67, 89, 96, 0.55);
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(252, 130, 108, 0.12);
}

.contact-field input:user-invalid,
.contact-field textarea:user-invalid {
  border-color: #bd4f42;
}

.contact-reasons {
  display: grid;
  gap: 10px;
  margin: 8px 0 28px;
  padding: 0;
  border: 0;
}

.contact-reasons legend {
  margin-bottom: 14px;
}

.contact-reason {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 15px;
  align-items: center;
  min-height: 70px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.contact-reason-number {
  color: #9b7950;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.contact-reason > span:last-child {
  font-size: 0.73rem;
  line-height: 1.5;
}

.contact-reason:hover,
.contact-reason:focus-within {
  border-color: #8e9b9f;
  transform: translateX(3px);
}

.contact-reason:has(input:checked) {
  border-color: var(--ink-soft);
  background: var(--ink-soft);
  color: var(--white);
}

.contact-reason:has(input:checked) .contact-reason-number {
  color: var(--gold-light);
}

.contact-consent {
  display: grid;
  grid-template-columns: 19px 1fr;
  gap: 13px;
  align-items: start;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.55;
  cursor: pointer;
}

.contact-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--ink-soft);
}

.contact-submit {
  margin-top: 34px;
  border: 0;
  cursor: pointer;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.66;
}

.contact-form-status {
  min-height: 24px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.65;
}

.contact-form-status.is-success {
  padding: 20px;
  border-left: 3px solid #9b7950;
  background: rgba(84, 106, 114, 0.08);
  color: var(--ink-soft);
  white-space: pre-line;
}

.contact-form-status.is-error {
  color: #a63d34;
}

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

@media (max-width: 1040px) {
  .contact-strip-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-strip-grid > div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

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

  .contact-form-intro {
    position: static;
    max-width: 760px;
  }
}

@media (max-width: 780px) {
  .contact-hero {
    min-height: 700px;
    height: 100svh;
    background-position: center, center, 51% center;
  }

  .contact-hero-inner {
    padding-top: 120px;
    padding-bottom: 58px;
  }

  .contact-hero h1 {
    font-size: clamp(4rem, 18vw, 5.9rem);
    line-height: 0.82;
  }

  .contact-hero-copy > p:last-child {
    margin-top: 28px;
    font-size: 0.8rem;
  }

  .contact-strip-grid {
    grid-template-columns: 1fr;
  }

  .contact-strip-grid > div,
  .contact-strip-grid > div:last-child {
    min-height: 108px;
    grid-column: auto;
    border-right: 1px solid var(--line);
  }

  .contact-form-intro h2 {
    font-size: clamp(3.5rem, 15vw, 5.2rem);
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-form {
    padding: 30px 22px;
  }

  .contact-form-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .contact-hero h1 {
    font-size: clamp(3.55rem, 17vw, 4.8rem);
  }

  .contact-reason {
    grid-template-columns: 32px 1fr;
    padding-inline: 15px;
  }

  .contact-form .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-reason {
    transition: none;
  }
}
