/* ExpertSender - demo booking + thank you pages (redesign 2026-08)
   Prefix: .esd- */

/* Keep the header focused on the booking flow - no competing CTA. */
.header__try { display: none; }

.esd {
  --esd-violet: #201547;
  --esd-magenta: #DA1884;
  --esd-magenta-bright: #FE43A6;
  --esd-magenta-dark: #A3126A;
  --esd-ink: #1A1A2E;
  --esd-muted: #6B6B7B;
  --esd-line: #E5E5EC;
  box-sizing: border-box;
  font-family: "Uni Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #fff;
  background: radial-gradient(120% 90% at 70% 40%, #3B1C58, #271C4D 55%, #201547);
  padding: 48px 24px 56px;
  min-height: 100vh;
  /* Break out of the theme's page wrapper so the section is always
     edge-to-edge, regardless of any padding/max-width on ancestors. */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.esd *, .esd *::before, .esd *::after { box-sizing: border-box; }

/* Thank-you page: .esd's own min-height:100vh sits BELOW the real site
   header, adding a full viewport height on top of it and pushing the
   centered card down by the header's height. --esd-header-h is set by a
   tiny inline script in thank-you.php (measures the real header, which
   varies by breakpoint and sticky state) so this subtracts the header's
   actual height instead of guessing a fixed pixel value. */
.esd--thanks {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--esd-header-h, 0px));
}

.esd-grid {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 820px;
  gap: 56px;
  align-items: start;
}
.esd-left { padding-top: 8px; position: sticky; top: 24px; }
.esd-eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--esd-magenta-bright); padding-bottom: 16px; }
.esd h1 { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; margin: 0 0 20px; text-wrap: pretty; color: #fff; }
.esd-lead { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.78); margin: 0 0 24px; max-width: 520px; text-wrap: pretty; }

.esd-benefits { display: grid; gap: 12px; padding-bottom: 28px; }
.esd-benefit { display: flex; align-items: center; gap: 12px; font-size: 16px; color: rgba(255,255,255,.9); }
.esd-benefit i {
  width: 22px; height: 22px; flex: none; border-radius: 999px;
  background: rgba(254,67,166,.18); color: var(--esd-magenta-bright);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; font-style: normal;
}

.esd-proof { border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; }
.esd-proof-label { font-size: 13px; letter-spacing: .06em; color: rgba(255,255,255,.55); padding-bottom: 20px; }
.esd-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; opacity: .85; filter: brightness(0) invert(1); }
.esd-logos img { width: auto; }

.esd-card {
  background: #fff; color: var(--esd-ink); border-radius: 24px;
  box-shadow: 0 28px 70px rgba(32,21,71,.35); overflow: hidden;
}
.esd-progress { display: flex; gap: 8px; padding: 20px 28px 0; }
.esd-progress span { height: 4px; flex: 1; border-radius: 999px; background: var(--esd-line); }
.esd-progress span.is-on { background: var(--esd-magenta); }

/* Named stages replace the "Step 1 of 2" counter: the visitor sees up front that
   picking a time and filling in details are still ahead of them. */
.esd-stages { display: flex; gap: 8px; list-style: none; margin: 10px 0 0; padding: 0 28px; }
.esd-stage { flex: 1; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--esd-muted); }
.esd-stage.is-current { color: var(--esd-magenta); }

.esd-step { padding: 22px 28px 32px; }
.esd-step[hidden] { display: none; }
.esd-card h2 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; text-wrap: pretty; }
.esd-card p { font-size: 15px; line-height: 1.6; color: var(--esd-muted); margin: 0 0 24px; }

.esd-options { display: grid; gap: 10px; }
.esd-option {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; text-align: left; padding: 16px 18px; border-radius: 12px;
  border: 1px solid var(--esd-line); background: #fff;
  font: inherit; font-size: 16px; font-weight: 600; color: var(--esd-ink);
  cursor: pointer; transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.esd-option:hover { border-color: var(--esd-magenta); box-shadow: 0 2px 6px rgba(32,21,71,.07); transform: translateY(-2px); }
.esd-option:focus-visible { outline: none; border-color: var(--esd-magenta); box-shadow: 0 0 0 3px rgba(218,24,132,.30); }
.esd-option span:last-child { color: var(--esd-magenta); font-size: 18px; }
@media (prefers-reduced-motion: reduce) { .esd-option:hover { transform: none; } }

/* Escape hatch under the tier list - deliberately quieter than the options,
   so it does not compete with the qualifying answer we would rather have. */
.esd-skip {
  display: block; width: 100%; margin-top: 14px; padding: 6px 0;
  background: none; border: none; font: inherit; font-size: 14px;
  color: var(--esd-muted); text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; text-align: left;
}
.esd-skip:hover { color: var(--esd-magenta); }
.esd-skip:focus-visible { outline: 2px solid var(--esd-magenta); outline-offset: 3px; border-radius: 6px; }

.esd-note { display: flex; align-items: center; gap: 10px; padding-top: 22px; font-size: 13px; color: var(--esd-muted); }
.esd-note img { width: 18px; height: 18px; }

.esd-step-2 { padding: 16px 20px 20px; }
.esd-step-2-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 10px; }
.esd-back { background: none; border: none; padding: 0; font: inherit; font-size: 14px; color: var(--esd-muted); cursor: pointer; }
.esd-back:hover { color: var(--esd-magenta); }
.esd-picked { font-size: 13px; color: var(--esd-muted); }
.esd-picked[hidden] { display: none; }
.esd-picked strong { color: var(--esd-ink); }
.esd-embed { min-height: 700px; overflow: hidden; }
.esd-embed .meetings-iframe-container { width: 100%; border-radius: 16px; overflow: hidden; }
.esd-embed .meetings-iframe-container iframe { width: 100% !important; border: 0; min-height: 700px; }

/* Turns the "no suitable slot" dead end into a way out. */
.esd-fallback { margin: 0; padding-top: 14px; font-size: 13px; line-height: 1.6; color: var(--esd-muted); }
.esd-fallback a { color: var(--esd-magenta); }

/* Thank you page */
.esd-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.esd-thanks { background: #fff; color: var(--esd-ink); border-radius: 24px; box-shadow: 0 28px 70px rgba(32,21,71,.35); width: 100%; max-width: 560px; padding: 44px 44px 40px; }
.esd-tick { width: 56px; height: 56px; border-radius: 999px; background: rgba(92,184,92,.12); color: #5CB85C; display: grid; place-items: center; font-size: 26px; margin-bottom: 22px; }
.esd-thanks h1 { font-size: 32px; line-height: 1.15; margin: 0 0 12px; color: var(--esd-ink); }
.esd-thanks p { font-size: 17px; line-height: 1.6; color: var(--esd-muted); margin: 0 0 6px; }
.esd-thanks p.esd-spaced { margin-bottom: 28px; }
.esd-thanks strong { color: var(--esd-ink); }
.esd-details { display: grid; gap: 1px; background: var(--esd-line); border: 1px solid var(--esd-line); border-radius: 16px; overflow: hidden; }
.esd-details div { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; padding: 16px 20px; }
.esd-details dt, .esd-details .esd-k { font-size: 14px; font-weight: 700; color: var(--esd-muted); }
.esd-details dd, .esd-details .esd-v { font-size: 17px; font-weight: 700; margin: 0; }

@media (max-width: 1400px) {
  .esd-grid { grid-template-columns: 1fr; }
  .esd-left { position: static; }
}
@media (max-width: 720px) {
  .esd { padding: 32px 18px 40px; }
  .esd h1 { font-size: 32px; order: 2; }
  .esd-step, .esd-thanks { padding: 24px 20px 26px; }
  .esd-stages { padding: 0 20px; }
  .esd-stage { font-size: 11px; letter-spacing: 0; }
  .esd-thanks { padding: 28px 22px 30px; }
  .esd-thanks h1 { font-size: 26px; }

  /* Phone order: hook first, then the booking card, then the proof. Today the card
     sits below the entire left column, so on a phone it is a long scroll away.
     `display: contents` drops the left column's own box so its children become grid
     items and can be ordered one by one - the DOM order is untouched, so the h1
     stays first for crawlers and screen readers. The grid gap goes to 0 because
     these elements already carry their vertical rhythm in their own margins; only
     the card, which had none, needs spacing added around it. */
  .esd-grid { gap: 0; }
  .esd-left { display: contents; }
  .esd-eyebrow { order: 1; }
  .esd-lead { order: 3; }
  #esd-booking { order: 4; margin-bottom: 28px; }
  .esd-proof { order: 5; }
  .esd-benefits { order: 6; margin-top: 28px; padding-bottom: 0; }
}

/* In step 2 the card hands its surface over to HubSpot's calendar, which cannot be
   restyled from here - it renders in a cross-origin iframe, so no CSS of ours reaches
   inside it. The calendar's own navy therefore stays as HubSpot delivers it; what we
   change is the surface around it. Framing a dark navy calendar in a white card makes
   it read as a foreign object, so for this one step the card becomes a dark translucent
   panel and the calendar sits on a surface of its own family. Step 1 stays white.

   `:has()` detects that step 2 is showing, so nothing changes in the JS. Browsers
   without `:has()` simply skip these rules and keep today's white card - the
   degradation is safe. */
.esd-card:has(.esd-step-2:not([hidden])) {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: none;
  backdrop-filter: blur(6px);
  color: #fff;
}
.esd-card:has(.esd-step-2:not([hidden])) .esd-step-2 { padding: 16px 16px 16px; }
.esd-card:has(.esd-step-2:not([hidden])) .esd-progress span { background: rgba(255, 255, 255, .18); }
.esd-card:has(.esd-step-2:not([hidden])) .esd-progress span.is-on { background: var(--esd-magenta-bright); }
.esd-card:has(.esd-step-2:not([hidden])) .esd-stage { color: rgba(255, 255, 255, .5); }
.esd-card:has(.esd-step-2:not([hidden])) .esd-stage.is-current { color: var(--esd-magenta-bright); }
.esd-card:has(.esd-step-2:not([hidden])) :is(.esd-back, .esd-picked, .esd-fallback) { color: rgba(255, 255, 255, .62); }
.esd-card:has(.esd-step-2:not([hidden])) :is(.esd-back:hover, .esd-fallback a) { color: var(--esd-magenta-bright); }
.esd-card:has(.esd-step-2:not([hidden])) .esd-picked strong { color: #fff; }
