/* =========================================================
   BOLI · For-Physicians · Brochure request encart (#join)
   ========================================================= */

.phys-brochure {
  position: relative;
  background:
    radial-gradient(900px 620px at 12% 16%, rgba(231, 239, 233, .55) 0%, transparent 62%),
    radial-gradient(800px 540px at 88% 84%, rgba(240, 200, 121, .18) 0%, transparent 60%),
    var(--paper);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  padding: var(--sp-section) 0;
  color: var(--ink-soft);
  overflow: hidden;
}

/* Two-column layout: pitch on the left, form card on the right */
.phys-brochure-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.phys-brochure-head {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  position: sticky;
  top: var(--sp-7);
}

.phys-brochure-head h2 {
  font-family: var(--font-head);
  font-size: var(--fs-title);
  line-height: var(--lh-snug);
  letter-spacing: var(--tr-snug);
  color: var(--ink);
  margin: 0;
  font-weight: 500;
  max-width: 18ch;
}
.phys-brochure-head h2 em {
  font-style: italic;
  color: var(--green);
}
.phys-brochure-head .lede,
.phys-brochure-head > p {
  font-family: var(--font-body);
  font-size: var(--fs-lede);
  line-height: var(--lh-base);
  color: var(--ink-soft);
  margin: 0;
  max-width: 48ch;
}

.phys-brochure-bullets {
  list-style: none;
  margin: var(--sp-2) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 44ch;
}
.phys-brochure-bullets li {
  position: relative;
  padding-left: 22px;
}
.phys-brochure-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 30%, var(--gold) 0 4px, transparent 5px),
    var(--green-50);
  border: 1px solid #b8d0c1;
}

.phys-brochure-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: var(--sp-3);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.phys-brochure-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.phys-brochure-meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-green);
  opacity: .85;
}

.phys-brochure-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--sp-4);
  align-self: flex-start;
  padding: 10px 18px 10px 16px;
  border-radius: 999px;
  background: rgba(255, 254, 250, .92);
  border: 1px solid #c9d9cf;
  color: var(--green);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .005em;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.phys-brochure-contact::after {
  content: "→";
  font-weight: 400;
  font-size: 15px;
  color: var(--green);
  transform: translateY(-1px);
}
.phys-brochure-contact:hover {
  transform: translateY(-1px);
  border-color: #abc9b8;
  background: var(--green-50);
}
.phys-brochure-contact:focus-visible {
  outline: 3px solid rgba(13, 91, 63, .22);
  outline-offset: 2px;
}

/* Form card — reuses the .ea-* tokens, but with its own elevation in this context */
.phys-brochure-card {
  position: relative;
  background: #fffefa;
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  box-shadow:
    0 32px 64px -36px rgba(13, 26, 20, .22),
    0 12px 28px -22px rgba(13, 91, 63, .12);
  padding: clamp(24px, 3vw, 36px);
  text-align: left;
}
.phys-brochure-card::before {
  /* tiny gold corner accent to align with the design system */
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(28px, 4vw, 44px);
  width: clamp(56px, 6vw, 84px);
  height: 3px;
  background: linear-gradient(90deg, var(--gold), color-mix(in srgb, var(--gold) 30%, transparent));
  border-radius: 0 0 4px 4px;
}

.phys-brochure-card .ea-form { gap: 14px; }
.phys-brochure-card .ea-grid { gap: 12px; }
.phys-brochure-card .ea-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--sp-3);
}
.phys-brochure-card .ea-card-head .ea-card-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green);
}
.phys-brochure-card .ea-card-head .ea-card-icon svg {
  width: 20px;
  height: 20px;
}
.phys-brochure-card .ea-card-head .ea-card-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.phys-brochure-card .ea-card-head h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--ink);
  margin: 0;
}
.phys-brochure-card .ea-card-head .ea-card-sub {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--ink-muted);
  letter-spacing: .005em;
}

/* Submitted state: collapse padding so the success block centers nicely */
.phys-brochure-card.is-submitted {
  text-align: center;
}
.phys-brochure-card.is-submitted .ea-card-head { display: none; }

@media (max-width: 980px) {
  .phys-brochure-grid {
    grid-template-columns: 1fr;
    gap: clamp(28px, 4vw, 44px);
  }
  .phys-brochure-head {
    position: static;
  }
  .phys-brochure-head h2 { max-width: none; }
}
