/* 2026-11-19 EbookState conversion fixes r2 (Ali / Stacey) */

/* Fix 2 — offer clarity */
.hero-author-offer .es-offer-clarify{
  flex-basis:100%;font-size:13px;line-height:1.45;font-weight:500;margin:0;max-width:42rem;
  color:#fff;opacity:1; /* 2026-11-19 r2: high contrast on navy chip (global p color was too dark) */
}
.author-form-offer{font-size:14px;line-height:1.45;color:#4a5262;margin:6px 0 0}
.author-form-offer strong{color:#8c4615;font-size:inherit}

/* Fix 1 — Choose + Buy actions */
.plan .es-plan-actions{display:flex;flex-direction:column;gap:10px;margin-top:auto}
.plan .es-plan-actions .btn{width:100%;text-align:center}
.plan .btn-buy{
  background:transparent;color:var(--navy,#0b1b3a);border:1px solid var(--navy,#0b1b3a)
}
.plan .btn-buy:hover,.plan .btn-buy:focus-visible{background:#0b1b3a;color:#fff}

/* Fix 5 (revised 2026-12-04, Ali approved): WhatsApp float is shown again on phones/tablets, bottom-left, clear of the Tawk bubble (bottom-right).
   Previously hidden here with display:none. Tawk is untouched. */
@media (max-width:720px){
  html body a.es-wa{right:auto!important;left:max(16px,env(safe-area-inset-left))!important;bottom:calc(24px + env(safe-area-inset-bottom))!important}
}

/* Fix 3 — ≤960px: quote form after H1/intro, before hero cover images (desktop grid unchanged) */
@media (max-width:960px){
  .hero .wrap{
    display:flex;
    flex-direction:column;
    gap:22px;
  }
  .hero .wrap > div:first-child,
  .hero-aside{display:contents}
  .hero .wrap > div:first-child > br{display:none} /* decorative br after .usa; avoid order:0 flex item */
  .hero .tag{order:1}
  .hero .usa{order:2}
  .hero-author-offer{order:3}
  .hero h1{order:4}
  .hero-ghost-note{order:5}
  .hero .hero-lead{order:6}
  #heroForm{order:7}
  .hero .ctas{order:8}
  .hero .watch-intro{order:9}
  .hero .mini{order:10}
  .hero-books{order:11;margin-top:8px}
  #heroForm.qcard{padding:18px 16px}
  #heroForm .qhead h3{font-size:22px}
}

/* Contact page quote form */
.es-contact-form{
  position:relative;margin:28px 0 8px;padding:22px 20px;background:#fff;
  border:1px solid #d8cdb6;border-left:4px solid #f4a340;
  box-shadow:4px 4px 0 #0b1b3a22;max-width:640px
}
.es-contact-form h2{margin:0 0 6px;font-size:28px;color:#0b1b3a}
.es-contact-form .es-contact-lead{margin:0 0 16px;color:#4a5262;font-size:15px;line-height:1.5}
.es-contact-form .fl{display:block;margin:0 0 12px}
.es-contact-form .fl > span{display:block;font-size:13px;font-weight:600;margin-bottom:6px;color:#0b1b3a}
.es-contact-form input[type=text],
.es-contact-form input[type=email],
.es-contact-form input[type=tel],
.es-contact-form select,
.es-contact-form textarea{
  width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid #cfc4ae;
  border-radius:8px;font:inherit;font-size:16px;background:#fff
}
.es-contact-form .f2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.es-contact-form .consent{display:flex;gap:10px;align-items:flex-start;margin:8px 0 14px;font-size:14px;line-height:1.4}
.es-contact-form .qbtn{width:100%}
.es-contact-form .submit-status{margin-top:10px;font-size:14px}
.es-contact-form .form-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.es-contact-form .privacy-note{font-size:12px;line-height:1.5;margin-top:12px}
@media (max-width:600px){
  .es-contact-form .f2{grid-template-columns:1fr}
}

/* 2026-12-04 contact form on phones (Ali approved audit fixes): the name field had no type attribute so it missed the
   input[type=text] rule above (13px, unstyled, 21px tall) and the submit button had no brand style. */
.es-contact-form .fl input:not([type=checkbox]):not([type=hidden]),
.es-contact-form .fl select,
.es-contact-form .fl textarea{
  width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid #cfc4ae;border-radius:8px;
  font:inherit;font-size:16px;line-height:1.3;background:#fff;color:#0b1b3a
}
.es-contact-form .fl input:not([type=checkbox]):not([type=hidden]),
.es-contact-form .fl select{min-height:48px}
.es-contact-form .fl textarea{min-height:110px}
.es-contact-form .consent{min-height:48px;align-items:center;gap:12px;cursor:pointer}
.es-contact-form .consent input[type=checkbox]{flex:0 0 24px;width:24px;height:24px;margin:0;accent-color:#e8873a}
.es-contact-form .qbtn{
  display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;padding:14px 24px;
  border:0;border-radius:12px;cursor:pointer;font:inherit;font-size:16px;font-weight:700;line-height:1.25;text-align:center;
  background:linear-gradient(135deg,#f4a340,#e8873a);color:#0b1b3a;box-shadow:0 10px 24px -10px rgba(232,135,58,.7)
}
.es-contact-form .qbtn:hover{box-shadow:0 14px 30px -10px rgba(232,135,58,.85)}
.es-contact-form .qbtn:focus-visible,.es-contact-form .fl input:focus-visible,.es-contact-form .fl select:focus-visible,.es-contact-form .fl textarea:focus-visible{outline:3px solid #0b1b3a;outline-offset:2px}
.es-contact-form .qbtn[disabled]{opacity:.7;cursor:progress}

/* Anchor jumps to the contact form (sale-bar "Get My Quote" -> #contact-quote-title): land just under the sticky sale bar, not behind it. */
html.es-season-bar-on,html{scroll-padding-top:calc(var(--es-bf-bar-h,0px) + 14px)}

/* Phones/tablets: keep room under the submit button so the fixed Tawk bubble (bottom-right) never sits on it.
   Tawk's own settings/greeting are not touched. */
@media (max-width:960px){
  .es-contact-form{padding-bottom:104px}
  .es-contact-form .qbtn,.es-contact-form .consent{scroll-margin-bottom:112px}
}