/* ============================================================
   Fix My Appointment — Webinar landing page (webinar.css)

   Scoped entirely to `.wb-*` (plus #Page_Webinar for the few page-level
   overrides), so nothing here can reach the shared components the rest
   of the site depends on — .form-control, .btn-primary and .form-card
   are all app-wide.

   CONTRAST: every colour pair on this page was measured, not eyeballed.
   --saffron-500 is 2.66:1 against white and is therefore used ONLY as a
   background behind dark ink, never as a fill under white text.
   --plan-h2 / --plan-h3 / --plan-h4 exist in style.css precisely because
   they clear 4.5:1, and they are what the coloured labels here use.
   ============================================================ */

/* ---------- Hero ---------- */
.wb-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 72px) 0 clamp(44px, 7vw, 84px);
  background: radial-gradient(130% 120% at 15% 0%, #0E7C72 0%, #075149 45%, #042E2B 100%);
  color: #fff;
  isolation: isolate;
}
/* One soft light source plus a faint grid. Cheap to paint, and it gives the
   block depth so it doesn't read as a flat coloured rectangle behind the
   form. Degrades to plain teal wherever gradients aren't supported. */
.wb-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 50% at 78% 8%, rgba(63, 196, 180, 0.34), transparent 70%),
    radial-gradient(34% 44% at 8% 82%, rgba(232, 134, 46, 0.22), transparent 72%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 46px 46px, 46px 46px;
}
.wb-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
}
.wb-hero-left { min-width: 0; }

.wb-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.wb-badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal-300, #3FC4B4);
  animation: wbPulse 1.8s ease-in-out infinite;
}
/* The "we are live right now" state — red, and unmistakable. */
.wb-badge.is-live { background: rgba(198, 56, 60, 0.22); border-color: #F09B9D; }
.wb-badge.is-live .wb-badge-dot { background: #FF5B5F; }
.wb-badge.is-past { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.22); }
.wb-badge.is-past .wb-badge-dot { animation: none; background: rgba(255, 255, 255, 0.55); }
@keyframes wbPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

.wb-title {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 4.4vw, 3.1rem);
  line-height: 1.07;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 18px 0 14px;
}
/* ~62ch cap — long measures are tiring, the same fix the founder message
   got in update 452. */
.wb-subtitle {
  max-width: 58ch;
  font-size: clamp(0.97rem, 1.6vw, 1.08rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.90);
  margin: 0 0 26px;
}

/* ---------- Countdown ---------- */
.wb-countdown {
  display: inline-flex;
  align-items: center;
  gap: clamp(6px, 1.4vw, 14px);
  padding: 16px clamp(14px, 2.4vw, 24px);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(3px);
}
.wb-countdown[hidden] { display: none; }
.wb-cd-unit { display: flex; flex-direction: column; align-items: center; min-width: 54px; }
.wb-cd-unit b {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  font-weight: 800;
  line-height: 1;
  /* Tabular figures stop the whole row jittering sideways every second as
     digit widths change — the seconds column makes that obvious otherwise. */
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.wb-cd-unit span {
  margin-top: 5px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.wb-cd-sep {
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.28);
  transform: translateY(-9px);
}
.wb-live-note {
  margin: 16px 0 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--teal-300, #3FC4B4);
}
.wb-live-note[hidden] { display: none; }

/* ---------- Facts ---------- */
.wb-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px 22px;
  margin: 30px 0 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.wb-facts li { display: flex; align-items: flex-start; gap: 10px; }
.wb-fact-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
}
.wb-facts b { display: block; font-size: 0.93rem; font-weight: 700; }
.wb-facts em { display: block; font-style: normal; font-size: 0.8rem; color: rgba(255, 255, 255, 0.68); margin-top: 1px; }

/* ---------- Registration card ---------- */
.wb-form-col { min-width: 0; }
.wb-card {
  background: var(--surface, #fff);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(4, 34, 31, 0.36);
  padding: clamp(20px, 2.6vw, 28px);
  color: var(--ink-900);
}
.wb-card[hidden] { display: none; }
.wb-card-top { margin-bottom: 16px; }
.wb-card-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--ink-900);
  margin: 0 0 4px;
}
.wb-card-sub { font-size: 0.87rem; color: var(--ink-500); margin: 0; }
.wb-card-foot { font-size: 0.76rem; color: var(--ink-500); text-align: center; margin: 10px 0 0; }
#Page_Webinar .wb-card .form-group { margin-bottom: 12px; }
.wb-submit { width: 100%; margin-top: 6px; }

.wb-check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; line-height: 1.45; margin-top: 2px; }
.wb-check input { margin-top: 3px; flex: none; }

/* ---------- Seat counter ---------- */
.wb-seats {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--teal-050);
  border: 1px solid var(--teal-100);
}
.wb-seats[hidden] { display: none; }
.wb-seats-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal-700);
  margin-bottom: 8px;
}
.wb-seats-cap { font-weight: 500; color: var(--ink-500); }
.wb-seats-bar {
  height: 7px;
  border-radius: 999px;
  background: #D3E9E5;
  overflow: hidden;
}
.wb-seats-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-600), var(--teal-300));
  transition: width .5s ease;
}
/* Nearly full — switch to a warm tone. Dark ink on a light amber fill, so
   this stays readable rather than becoming white-on-saffron. */
.wb-seats.is-tight { background: var(--saffron-100); border-color: #F3DCC4; }
.wb-seats.is-tight .wb-seats-row { color: var(--plan-h2); }
.wb-seats.is-tight .wb-seats-bar { background: #F0DCC4; }
.wb-seats.is-tight .wb-seats-bar i { background: linear-gradient(90deg, var(--saffron-600), var(--saffron-500)); }

.wb-result-slot:empty { display: none; }
.wb-result-slot { margin: 12px 0 0; }
.wb-alert { padding: 11px 14px; border-radius: 10px; font-size: 0.87rem; line-height: 1.5; }
.wb-alert-error { background: var(--red-100); color: #8C2326; border: 1px solid #F2CFCF; }
.wb-alert-info { background: var(--teal-050); color: var(--teal-700); border: 1px solid var(--teal-100); }

/* ---------- Confirmation ticket ----------
   Styled as a torn-stub event ticket rather than a plain success card:
   this is the screen someone screenshots to remember the session, so it
   should look like something worth keeping. */
.wb-ticket {
  background: var(--surface, #fff);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(4, 34, 31, 0.36);
  padding: clamp(22px, 3vw, 30px);
  color: var(--ink-900);
  text-align: center;
  animation: wbTicketIn .42s ease;
}
.wb-ticket[hidden] { display: none; }
@keyframes wbTicketIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.wb-ticket-check {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-600);
}
.wb-ticket-head h2 {
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--ink-900);
}
.wb-ticket-head p { font-size: 0.93rem; color: var(--ink-600); margin: 0 0 20px; }

/* The notch pair is what makes this read as a ticket stub. Purely
   decorative, and it sits behind the content rather than clipping it. */
.wb-ticket-stub {
  position: relative;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--teal-050);
  border: 1px dashed var(--teal-300);
  margin-bottom: 20px;
}
.wb-ticket-stub::before,
.wb-ticket-stub::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface, #fff);
  transform: translateY(-50%);
}
.wb-ticket-stub::before { left: -10px; }
.wb-ticket-stub::after { right: -10px; }
.wb-ticket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: left;
}
.wb-ticket-row + .wb-ticket-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid #CFE7E2; }
.wb-ticket-row > span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.wb-ticket-row code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-900);
  background: #fff;
  border: 1px solid var(--teal-100);
  border-radius: 8px;
  padding: 6px 11px;
  word-break: break-all;
}
.wb-ticket-row b { font-size: 0.95rem; color: var(--ink-900); text-align: right; }
.wb-ticket-actions { display: grid; gap: 9px; }
.wb-ticket-actions .btn { width: 100%; justify-content: center; }
.wb-ticket-note { font-size: 0.8rem; line-height: 1.55; color: var(--ink-500); margin: 18px 0 0; }

/* ---------- Shared section headings ---------- */
.wb-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.015em;
  margin: 8px 0 10px;
}
.wb-measure { max-width: 62ch; margin-left: auto; margin-right: auto; }

/* ---------- What you'll learn ---------- */
.wb-learn { background: var(--bg); }
.wb-learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 34px;
}
.wb-learn-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.wb-learn-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.wb-learn-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.wb-learn-card h3 { font-family: var(--font-display); font-size: 1.02rem; color: var(--ink-900); margin: 0 0 7px; }
.wb-learn-card p { font-size: 0.91rem; line-height: 1.6; color: var(--ink-600); margin: 0; }

/* ---------- Agenda ---------- */
.wb-agenda { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 4px; }
.wb-agenda li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.wb-agenda li:last-child { border-bottom: 0; }
.wb-agenda-time {
  flex: none;
  width: 92px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-700);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.wb-agenda b { display: block; font-size: 1rem; color: var(--ink-900); }
.wb-agenda p { margin: 3px 0 0; font-size: 0.89rem; line-height: 1.55; color: var(--ink-600); }

/* ---------- Host ---------- */
.wb-host-sec { background: var(--bg); }
.wb-host { display: flex; gap: 22px; align-items: flex-start; }
.wb-host-photo {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px;
}
.wb-host h3 { font-family: var(--font-display); font-size: 1.24rem; color: var(--ink-900); margin: 6px 0 2px; }
.wb-host-role { font-size: 0.9rem; font-weight: 600; color: var(--teal-700); margin: 0 0 10px; }
/* Body text stays upright — italic across a paragraph is tiring to read
   (the founder-message fix in update 452), and the measure is capped. */
.wb-host-bio { font-size: 0.93rem; line-height: 1.68; color: var(--ink-600); max-width: 58ch; margin: 0; font-style: normal; }

/* ---------- FAQ ---------- */
.wb-faq { margin-top: 30px; display: grid; gap: 10px; }
.wb-faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 18px;
}
.wb-faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--ink-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.wb-faq summary::-webkit-details-marker { display: none; }
.wb-faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--teal-600);
  line-height: 1;
}
.wb-faq details[open] summary::after { content: "\2212"; }
.wb-faq p { margin: 10px 0 0; font-size: 0.92rem; line-height: 1.62; color: var(--ink-600); max-width: 62ch; }

/* ---------- Mobile sticky CTA ---------- */
.wb-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 480;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 22px rgba(16, 46, 44, 0.12);
}
.wb-sticky[hidden] { display: none; }
.wb-sticky-info { min-width: 0; }
.wb-sticky-info b { display: block; font-size: 0.86rem; color: var(--ink-900); }
.wb-sticky-info span { display: block; font-size: 0.76rem; color: var(--ink-500); }
.wb-sticky .btn { flex: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .wb-hero-grid { grid-template-columns: 1fr; }
  /* The form is the point of the page, so on a narrow screen it comes
     FIRST — an ad visitor should not have to scroll past four sections of
     persuasion to find the thing the ad promised. */
  .wb-form-col { order: -1; }
}
@media (max-width: 640px) {
  .wb-countdown { width: 100%; justify-content: space-between; gap: 2px; }
  .wb-cd-unit { min-width: 0; flex: 1; }
  .wb-cd-sep { display: none; }
  .wb-facts { gap: 12px; }
  .wb-host { flex-direction: column; gap: 14px; }
  .wb-agenda li { flex-direction: column; gap: 4px; }
  .wb-agenda-time { width: auto; }
  /* Sticky bar only exists below this width — above it the form is
     already on screen beside the pitch, so a fixed bar would be noise. */
  .wb-sticky:not([hidden]) { display: flex; }
  /* Room for the sticky bar so it never covers the footer's last line. */
  #Page_Webinar #Section_Footer { padding-bottom: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .wb-badge-dot { animation: none; }
  .wb-ticket { animation: none; }
  .wb-learn-card { transition: none; }
  .wb-seats-bar i { transition: none; }
}
