/* ── PRODUCT HERO ── */
.product-hero {
  min-height: 100vh;
  padding: 10rem var(--section-pad-x) 7rem;
  background: var(--white);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 0.5px solid var(--border);
}
.product-hero-copy {
  position: relative;
  z-index: 1;
  width: 52%;
  max-width: 700px;
  padding-right: 3rem;
}
.product-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.product-hero h1 em {
  font-style: italic;
  color: var(--rose);
}
.product-hero .hero-sub {
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}
.product-hero .hero-cta-row {
  opacity: 0;
  animation: fadeUp 0.8s 0.55s forwards;
}
.product-hero-eyebrow {
  opacity: 0;
  animation: fadeUp 0.7s 0.05s forwards;
}
.product-hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: min(50%, 1400px);
  height: 100%;
  overflow: hidden;
  opacity: 0;
  animation: fadeUp 0.9s 0.3s forwards;
}
.product-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── GRANTS INTRO ── */
.grants-intro {
  padding: 7rem var(--section-pad-x);
  background: var(--cream);
  border-bottom: 0.5px solid var(--border);
}
.grants-intro > div {
  max-width: 720px;
}
.grants-intro h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}
.grants-intro p {
  font-size: 17px;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.grants-intro p:last-child {
  margin-bottom: 0;
}

/* ── CONTACT FORM ── */
.product-contact {
  padding: 8rem var(--section-pad-x);
  background: var(--ink);
  color: var(--white);
}
.product-contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 7rem;
  align-items: start;
}
.product-contact-copy h2 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}
.product-contact-copy p {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 1.15rem;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2.5rem;
}
.contact-detail svg {
  flex-shrink: 0;
  stroke: var(--rose);
}
.contact-detail a {
  color: var(--rose);
  text-decoration: none;
}
.contact-detail a:hover {
  text-decoration: underline;
}
.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.form-field label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--white);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 300;
  padding: 12px 14px;
  border-radius: 2px;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s;
  -webkit-appearance: none;
  appearance: none;
  /* Let controls shrink below their intrinsic width. The grant-program
     <select> has a long option ("Clinical Breast Examiner Certification
     Grant") whose min-content otherwise forces the column past a 320px
     viewport. */
  min-width: 0;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}
.form-field select {
  cursor: pointer;
}
/* Match placeholder brightness while the empty option is selected;
   real selections stay full --white. */
.form-field select:has(option[value=""]:checked) {
  color: rgba(255, 255, 255, 0.7);
}
.form-field select option {
  background: #252627;
  color: var(--white);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--rose);
  background: rgba(176, 66, 92, 0.06);
}
.form-field textarea {
  resize: vertical;
  min-height: 110px;
}
.btn-form-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--rose);
  border: none;
  padding: 15px 36px;
  border-radius: 2px;
  cursor: pointer;
  width: fit-content;
  font-family: "DM Sans", sans-serif;
  transition: background 0.2s;
  margin-top: 0.25rem;
}
.btn-form-submit:hover {
  background: var(--rose-dark);
}
.form-note {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* ── PAGE-LEVEL RESPONSIVE ── */
@media (max-width: 900px) {
  .product-contact-inner {
    /* minmax(0, 1fr), not 1fr: a plain 1fr track keeps an implicit min-content
       floor, so the long grant-program <select> option would hold the single
       column wider than a 320px viewport. minmax(0,...) lets it shrink and the
       control (min-width:0 above) clips instead of overflowing. */
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }
  .product-hero {
    min-height: auto;
    flex-direction: column;
    padding-top: 7rem;
    padding-bottom: 5rem;
  }
  .product-hero-copy {
    width: 100%;
    padding-right: 0;
  }
  .product-hero-image {
    position: relative;
    width: 100%;
    height: 380px;
    margin-top: 3rem;
  }
  .product-hero,
  .grants-intro,
  .product-contact {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .product-contact-inner {
    gap: 4rem;
  }
  /* Trim the desktop section padding in the tablet band too; ≤600 goes tighter
     still below. (.solution already gets 4.5rem here from styles.css.) */
  .grants-intro,
  .product-contact {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

@media (max-width: 600px) {
  /* Tighten section vertical padding on phones: the 8rem gaps read as premium
     whitespace on desktop but leave big dead zones between sections on a
     phone. Vertical only — the horizontal gutter is untouched. */
  .grants-intro,
  .solution,
  .product-contact {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .product-hero {
    padding-top: 7rem;
    padding-bottom: 3.5rem;
  }
  .solution-header {
    margin-bottom: 2.5rem;
  }
}

/* ── APPLY MODAL ── */
.apply-modal {
  /* The site-wide `* { margin: 0 }` reset strips the native <dialog>
     centering trick (which relies on margin: auto), so position it
     explicitly instead of relying on the UA default. */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  border: none;
  border-radius: 4px;
  padding: 2.5rem;
  max-width: 480px;
  width: calc(100% - 2rem);
  max-height: calc(100% - 4rem);
  overflow-y: auto;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(26, 20, 16, 0.25);
}
.apply-modal::backdrop {
  background: rgba(26, 20, 16, 0.55);
  backdrop-filter: blur(2px);
}
.apply-modal-close-form {
  position: absolute;
  top: 1rem;
  right: 1rem;
  margin: 0;
}
.apply-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.apply-modal-close:hover {
  background: var(--rose-pale);
  color: var(--rose);
}
.apply-form .form-field label {
  color: var(--ink);
}
.apply-form .form-legend {
  color: var(--ink-muted-dark);
}
.apply-form .form-field input,
.apply-form .form-field textarea {
  background: var(--cream);
  border: 0.5px solid var(--border);
  color: var(--ink);
}
.apply-form .form-field input::placeholder,
.apply-form .form-field textarea::placeholder {
  color: var(--ink-muted-dark);
}
.apply-form .form-field input:focus,
.apply-form .form-field textarea:focus {
  border-color: var(--rose);
  background: var(--white);
}
.apply-form .form-note {
  color: var(--ink-muted-dark);
}
