/* =========================================================
   J. ELAINE — CONTACT PAGE
   Standalone page styles
========================================================= */

.contact-page {
  background: #fffaf7;
}

.contact-page-main {
  min-height: 100vh;
  overflow: hidden;
}

.contact-page-hero {
  position: relative;
  padding:
    clamp(9rem, 14vw, 12rem)
    0
    clamp(4rem, 8vw, 6.5rem);
  background:
    radial-gradient(
      circle at 15% 18%,
      rgba(255, 224, 211, 0.88),
      transparent 34%
    ),
    radial-gradient(
      circle at 86% 25%,
      rgba(244, 193, 204, 0.5),
      transparent 32%
    ),
    linear-gradient(
      145deg,
      #fffaf7 0%,
      #fce7e0 50%,
      #f7d8df 100%
    );
}

.contact-page-hero__inner {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.contact-page-eyebrow {
  margin: 0 0 0.8rem;
  color: #a04461;
  font-family: var(--nav-font, var(--default-font, sans-serif));
  font-size: clamp(0.78rem, 0.72rem + 0.18vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-page-hero h1 {
  margin: 0;
  color: #2a1034;
  font-family:
    "Timberline Regular Web",
    var(--heading-font, Georgia, serif);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.contact-page-intro {
  max-width: 650px;
  margin: clamp(1.4rem, 3vw, 2rem) auto 0;
  color: var(--default-color, #342b38);
  font-family: var(--default-font, sans-serif);
  font-size: clamp(1.05rem, 0.96rem + 0.35vw, 1.3rem);
  line-height: 1.75;
}

.contact-page-form-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: #fffaf7;
}

.contact-page-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-page-info,
.contact-page-form-card {
  border: 1px solid rgba(42, 16, 52, 0.1);
  border-radius: clamp(1.35rem, 1rem + 0.8vw, 2rem);
  background: rgba(255, 252, 248, 0.92);
  box-shadow: 0 1.4rem 3.2rem rgba(42, 16, 52, 0.08);
}

.contact-page-info {
  padding: clamp(1.6rem, 2vw + 1rem, 2.8rem);
}

.contact-page-info h2 {
  margin: 0 0 1rem;
  color: #2a1034;
  font-size: clamp(2rem, 1.6rem + 1.5vw, 3rem);
  line-height: 1.1;
}

.contact-page-info p,
.contact-page-info li {
  font-family: var(--default-font, sans-serif);
  font-size: clamp(1rem, 0.96rem + 0.16vw, 1.08rem);
  line-height: 1.75;
}

.contact-page-info ul {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-page-info li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.contact-page-info li i {
  margin-top: 0.25rem;
  color: #a04461;
}

.contact-page-form-card {
  padding: clamp(1.5rem, 2vw + 1rem, 3rem);
}

.contact-page-form-card .form-label {
  color: #2a1034;
  font-family: var(--nav-font, var(--default-font, sans-serif));
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-page-form-card .form-control,
.contact-page-form-card .form-select {
  min-height: 3.25rem;
  border: 1px solid rgba(42, 16, 52, 0.16);
  border-radius: 0.85rem;
  background: #fff;
  color: #342b38;
  font-family: var(--default-font, sans-serif);
  font-size: 1rem;
  box-shadow: none;
}

.contact-page-form-card textarea.form-control {
  min-height: 10rem;
  padding-top: 0.9rem;
  resize: vertical;
}

.contact-page-form-card .form-control:focus,
.contact-page-form-card .form-select:focus {
  border-color: #a04461;
  box-shadow: 0 0 0 0.22rem rgba(160, 68, 97, 0.12);
}

.contact-page-form-card .submit-btn {
  display: inline-flex;
  min-height: clamp(3rem, 2.7rem + 0.75vw, 3.65rem);
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding:
    clamp(0.82rem, 0.72rem + 0.25vw, 1rem)
    clamp(1.3rem, 1rem + 0.9vw, 1.9rem);
  border: 1px solid #2a1034;
  border-radius: 999px;
  background: #2a1034;
  color: #fffaf7;
  font-family: var(--nav-font, var(--default-font, sans-serif));
  font-size: clamp(0.9rem, 0.85rem + 0.16vw, 1rem);
  font-weight: 700;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.contact-page-form-card .submit-btn:hover,
.contact-page-form-card .submit-btn:focus-visible {
  background: #4a2155;
  border-color: #4a2155;
  transform: translateY(-2px);
  box-shadow: 0 1rem 2.4rem rgba(42, 16, 52, 0.18);
}

.contact-page-form-card .loading,
.contact-page-form-card .error-message,
.contact-page-form-card .sent-message {
  display: none;
  margin: 0.75rem 0;
  padding: 0.8rem 1rem;
  border-radius: 0.75rem;
  font-family: var(--default-font, sans-serif);
}

.contact-page-form-card .loading {
  background: #f4ece8;
}

.contact-page-form-card .error-message {
  background: #f8dddd;
  color: #7b2020;
}

.contact-page-form-card .sent-message {
  background: #e1f2e6;
  color: #245f35;
}

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

@media (max-width: 991px) {
  .contact-page-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .contact-page-hero {
    padding-top: clamp(7.5rem, 26vw, 9rem);
  }

  .contact-page-hero h1 {
    font-size: clamp(3.8rem, 19vw, 6.5rem);
  }

  .contact-page-form-card .submit-btn {
    width: 100%;
  }
}

/* =========================================================
   CONTACT PAGE — Hero spacing refinement
   Purpose:
   - reduce excess vertical space
   - give the headline clearer separation from the intro
========================================================= */

.contact-page-hero {
  padding:
    clamp(8rem, 11vw, 9.75rem)
    0
    clamp(3.25rem, 5vw, 4.5rem);
}

.contact-page-hero h1 {
  margin-bottom: clamp(1rem, 1.6vw, 1.5rem);
}

.contact-page-intro {
  margin-top: 0;
}

/* =========================================================
   CONTACT PAGE — Eyebrow/title lockup refinement
   Purpose:
   - bring the eyebrow closer to the script headline
   - create stronger separation below the headline
========================================================= */

.contact-page-eyebrow {
  margin-bottom: clamp(0.2rem, 0.45vw, 0.4rem);
}

.contact-page-hero h1 {
  margin-top: 0;
  margin-bottom: clamp(1.7rem, 2.6vw, 2.4rem);
}

.contact-page-intro {
  margin-top: 0;
}

/* =========================================================
   CONTACT PAGE — Explicit hero lockup spacing
   Purpose:
   - control eyebrow, title, and intro as a single grid
   - avoid unreliable margin behavior from the script font
========================================================= */

.contact-page-hero__inner {
  display: grid !important;
  justify-items: center;
  gap: 0 !important;
}

.contact-page-hero .contact-page-eyebrow {
  margin: 0 0 0.15rem !important;
}

.contact-page-hero h1 {
  margin: 0 0 2.25rem !important;
  line-height: 0.78 !important;
}

.contact-page-hero .contact-page-intro {
  margin: 0 !important;
}

.contact-page-hero {
  padding-top: clamp(7.4rem, 9vw, 8.5rem) !important;
  padding-bottom: clamp(2.8rem, 4vw, 3.6rem) !important;
}

/* =========================================================
   CONTACT PAGE — Exact visible title spacing
   Purpose:
   - compensate for Timberline's oversized internal line box
   - connect eyebrow tightly to visible headline
   - preserve clear space below headline before intro
========================================================= */

.contact-page-hero {
  padding-top: 7rem !important;
  padding-bottom: 2.75rem !important;
}

.contact-page-hero__inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.contact-page-hero .contact-page-eyebrow {
  margin: 0 0 -1.65rem !important;
  position: relative !important;
  z-index: 2 !important;
}

.contact-page-hero h1 {
  margin: 0 0 1.65rem !important;
  line-height: 0.72 !important;
}

.contact-page-hero .contact-page-intro {
  margin: 0 !important;
}

/* =========================================================
   CONTACT PAGE — Corrected hero lockup
   Purpose:
   - keep eyebrow visually connected to title
   - prevent title from colliding with intro copy
   - preserve clear space beneath the script wordmark
========================================================= */

.contact-page-hero {
  padding-top: 6.75rem !important;
  padding-bottom: 2.75rem !important;
}

.contact-page-hero__inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.contact-page-hero .contact-page-eyebrow {
  margin: 0 !important;
  position: relative !important;
  z-index: 2 !important;
}

.contact-page-hero h1 {
  margin: 0 0 2.8rem !important;
  line-height: 0.82 !important;
  transform: translateY(-0.45rem) !important;
}

.contact-page-hero .contact-page-intro {
  margin: 0 !important;
  position: relative !important;
  z-index: 2 !important;
}
