/* Maryland Homebuyer Hub — reusable conversion CTA components (Phase 1A)
 *
 * Own namespace (.mhh-cta-pair / .mhh-booking-embed) so the component can render
 * on the homepage, the pillar page, the seminar page and the loan-program family
 * without depending on any one of those stylesheets. Local custom properties fall
 * back to the shared palette when the surrounding shell does not define it.
 */

.mhh-cta-pair,
.mhh-booking-embed,
.mhh-start-here-embed{
  --mhh-cta-red:#c91525;
  --mhh-cta-gold:#ffbd12;
  --mhh-cta-ink:#111214;
  --mhh-cta-muted:#5b5e63;
  --mhh-cta-line:#e7e4df;
  --mhh-cta-cream:#f7f5f0;
}

/* ---------- CTA pair ---------- */

.mhh-cta-pair{
  background:var(--mhh-cta-cream);
  border:1px solid var(--mhh-cta-line);
  border-top:4px solid var(--mhh-cta-gold);
  border-radius:9px;
  padding:28px 26px;
  margin:34px 0;
}

.mhh-cta-pair--dark{
  background:var(--mhh-cta-ink);
  border-color:var(--mhh-cta-ink);
  border-top-color:var(--mhh-cta-gold);
  color:#fff;
}

.mhh-cta-pair--center{text-align:center;}
.mhh-cta-pair--center .mhh-cta-pair__actions{justify-content:center;}

.mhh-cta-pair__copy{margin-bottom:20px;}
.mhh-cta-pair__copy > :last-child{margin-bottom:0;}

.mhh-cta-pair__kicker{
  display:block;
  font-size:12px;
  font-weight:900;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--mhh-cta-red);
  margin-bottom:10px;
}
.mhh-cta-pair--dark .mhh-cta-pair__kicker{color:var(--mhh-cta-gold);}

.mhh-cta-pair__title{
  font-size:23px;
  line-height:1.22;
  letter-spacing:-.5px;
  font-weight:800;
  margin:0 0 10px;
}
.mhh-cta-pair--dark .mhh-cta-pair__title{color:#fff;}

.mhh-cta-pair__text{
  font-size:16px;
  line-height:1.6;
  color:var(--mhh-cta-muted);
  margin:0;
  max-width:64ch;
}
.mhh-cta-pair--dark .mhh-cta-pair__text{color:#d3d4d6;}

.mhh-cta-pair__actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:14px;
}

.mhh-cta-pair__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:15px 26px;
  min-height:52px;
  border-radius:6px;
  font-weight:900;
  font-size:15.5px;
  line-height:1.15;
  text-align:center;
  text-decoration:none;
  border:2px solid transparent;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}

.mhh-cta-pair__btn--primary{
  background:var(--mhh-cta-gold);
  border-color:var(--mhh-cta-gold);
  color:#111 !important;
}
.mhh-cta-pair__btn--primary:hover,
.mhh-cta-pair__btn--primary:focus-visible{background:#ffd052;border-color:#ffd052;}

.mhh-cta-pair__btn--secondary{
  background:transparent;
  border-color:rgba(17,18,20,.28);
  color:var(--mhh-cta-ink) !important;
}
.mhh-cta-pair__btn--secondary:hover,
.mhh-cta-pair__btn--secondary:focus-visible{border-color:var(--mhh-cta-ink);background:rgba(17,18,20,.04);}

.mhh-cta-pair--dark .mhh-cta-pair__btn--secondary{
  border-color:rgba(255,255,255,.45);
  color:#fff !important;
}
.mhh-cta-pair--dark .mhh-cta-pair__btn--secondary:hover,
.mhh-cta-pair--dark .mhh-cta-pair__btn--secondary:focus-visible{border-color:#fff;background:rgba(255,255,255,.08);}

.mhh-cta-pair__btn:focus-visible{
  outline:3px solid var(--mhh-cta-gold);
  outline-offset:3px;
}
.mhh-cta-pair--dark .mhh-cta-pair__btn--primary:focus-visible{
  outline-color:#fff;
}

.mhh-cta-pair__compliance{
  font-size:12.5px;
  line-height:1.55;
  color:var(--mhh-cta-muted);
  margin:16px 0 0;
  max-width:70ch;
}
.mhh-cta-pair--dark .mhh-cta-pair__compliance{color:#a9abaf;}
.mhh-cta-pair--center .mhh-cta-pair__compliance{margin-left:auto;margin-right:auto;}

/* Screen-reader-only external-link hint. */
.mhh-cta-pair__sr{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}

/* Bare drops the card chrome so the pair can sit inside an existing band
   (for example the dark final CTA band on loan program pages). */
.mhh-cta-pair--bare{
  background:transparent;
  border:0;
  border-radius:0;
  padding:0;
  margin:0;
}
.mhh-cta-pair--bare .mhh-cta-pair__compliance{margin-top:18px;}
.mhh-cta-pair.mhh-lp2-final-cta{margin-top:24px;width:100%;}

/* ---------- booking embed ---------- */

.mhh-booking-embed{
  margin:26px 0;
  background:#fff;
  border:1px solid var(--mhh-cta-line);
  border-radius:9px;
  overflow:hidden;
}

.mhh-booking-embed iframe{
  display:block;
  width:100%;
  border:0;
}

/* ---------- Start Here survey embed ---------- */

/* Same card chrome as the booking embed so the two conversion surfaces read as
 * one system. The min-height reserves space while the cross-origin survey loads
 * and before the vendor's form_embed.js posts its measured height back, which
 * keeps the sections below it from jumping. Kept deliberately modest: reserving
 * more than the survey actually needs would leave dead space under a short form. */

.mhh-start-here-embed{
  margin:24px 0 34px;
  background:#fff;
  border:1px solid var(--mhh-cta-line);
  border-radius:9px;
  overflow:hidden;
  min-height:420px;
}

.mhh-start-here-embed iframe{
  display:block;
  width:100%;
  max-width:100%;
  border:0;
}

/* ---------- responsive ---------- */

@media (max-width:640px){
  .mhh-start-here-embed{margin:20px 0 28px;border-radius:8px;min-height:460px;}
  .mhh-cta-pair{padding:24px 20px;margin:28px 0;}
  .mhh-cta-pair__title{font-size:20px;}
  .mhh-cta-pair__actions{gap:12px;}
  .mhh-cta-pair__btn{width:100%;}
  .mhh-booking-embed iframe{min-height:640px;}
}

@media (prefers-reduced-motion:reduce){
  .mhh-cta-pair__btn{transition:none;}
}


/* ---------- global compliance panel ----------
 * The compliance component renders on every MHH template, but its styling has
 * lived only in pillar-page.css. The homepage loads homepage.css and this
 * sheet, never pillar-page.css, so the panel arrived there unstyled. These
 * rules give the shared component a home in the shared component stylesheet.
 *
 * This sheet prints BEFORE pillar-page.css, so on pillar, loan-program, seminar
 * and simple-conversion pages the identical pillar-page.css rules still win and
 * nothing changes. Values are copied verbatim from pillar-page.css.
 *
 * .mhh-kicker is scoped to inside the panel on purpose: pillar-page.css styles
 * it globally, and an unscoped copy here could restyle unrelated homepage
 * markup that happens to carry the class. */

.mhh-trust-panel{
  margin-top:72px;
  border-top:5px solid var(--mhh-red,#c91525);
  background:#f6f4ef;
  padding:30px;
  border-radius:0 0 8px 8px;
}
.mhh-trust-heading{display:flex;gap:14px;align-items:center}
.mhh-trust-heading h2{font-size:28px;margin:3px 0 20px}
.mhh-global-compliance .mhh-kicker{
  display:block;
  text-transform:uppercase;
  font-size:11px;
  letter-spacing:1.2px;
  font-weight:900;
  color:var(--mhh-red,#c91525);
}
.mhh-trust-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1px;
  background:#dedbd4;
  border:1px solid #dedbd4;
}
.mhh-trust-grid>div{background:#fff;padding:18px}
.mhh-trust-grid span,.mhh-trust-grid small{display:block}
.mhh-trust-grid span{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:#707277;font-weight:800}
.mhh-trust-grid strong{display:block;color:#111;margin:3px 0}
.mhh-trust-grid small{font-size:12px;color:#666;line-height:1.45}
.mhh-editorial-note{font-size:13px;color:#666;margin:18px 0 0}

/* Bottom breathing room for the homepage instance, which sits last inside
 * <main>. Longhand only -- a padding shorthand on a .mhh-wrap element would
 * silently zero the shared horizontal gutter. */
.mhh-home-trust{padding-bottom:64px}

@media (max-width:620px){
  .mhh-trust-panel{padding:24px 20px}
  .mhh-trust-grid{grid-template-columns:1fr}
  .mhh-trust-heading h2{font-size:25px}
}
