/* ============================================================
   Live Study — the join modal, shared by the landing page and Study Now.

   Tokens are declared ON THE OVERLAY, not on :root. The landing page has
   --c-blue and friends; the WordPress page does not, and this block has to look
   identical in both. Everything here is prefixed `ls-` for the same reason —
   it drops into an Astra/Elementor page next to markup this file has never seen.
   ============================================================ */

.ls-overlay {
  --ls-blue: #5070f8;
  --ls-blue-soft: #9db4ff;
  --ls-blue-deep: #2a45c0;
  --ls-gold: #f4c95d;
  --ls-ink: #070a12;
  --ls-navy: #0b1020;
  --ls-mute: #aeb8cc;
  --ls-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  position: fixed;
  inset: 0;
  z-index: 2147483000;          /* above Elementor's own overlays and the video modal */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 40px);
  font-family: var(--ls-font);
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.ls-overlay.is-open { opacity: 1; visibility: visible; }
.ls-overlay[hidden] { display: none; }

/* The scrim dims and blurs whatever it covers — a video, a chart rail, the hero.
   brand.md: backdrop blur is required wherever a panel overlaps something. */
.ls-scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 14, .82);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.ls-card {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 2 * clamp(12px, 4vw, 40px));
  max-height: calc(100dvh - 2 * clamp(12px, 4vw, 40px));
  overflow-y: auto;
  padding: clamp(22px, 3.4vw, 40px);
  border-radius: 26px;
  color: #fff;
  /* brand.md glass: translucent, blue-tinted, edge-lit — not a flat fill. */
  background:
    linear-gradient(180deg, rgba(16, 22, 38, .96) 0%, rgba(42, 69, 192, .22) 100%),
    var(--ls-navy);
  border: 1px solid rgba(80, 112, 248, .34);
  box-shadow: 0 0 32px rgba(80, 112, 248, .30), 0 40px 90px -30px rgba(0, 0, 0, .85);
  transform: translateY(14px) scale(.985);
  transition: transform .32s cubic-bezier(.32, .72, 0, 1);
  scrollbar-width: thin;
}
.ls-overlay.is-open .ls-card { transform: none; }

/* ---------- head ---------- */

.ls-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.ls-eyebrow {
  display: inline-block;
  padding: 9px 20px;
  border: 1px solid rgba(244, 201, 93, .55);
  border-radius: 999px;
  font-size: clamp(11px, 1.05vw, 13px);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ls-gold);
}

.ls-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid rgba(80, 112, 248, .5);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: clamp(12px, 1.05vw, 14px);
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.ls-back:hover { background: rgba(80, 112, 248, .16); box-shadow: 0 0 22px rgba(80, 112, 248, .35); }

.ls-title {
  margin: clamp(16px, 2vw, 24px) 0 0;
  font-size: clamp(26px, 3.1vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: #fff;
}
.ls-sub {
  margin: 10px 0 0;
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.5;
  color: var(--ls-mute);
}

/* ---------- steps ---------- */

.ls-step { display: none; margin-top: clamp(18px, 2.2vw, 26px); }
.ls-step.is-on { display: block; animation: ls-in .3s cubic-bezier(.32, .72, 0, 1); }
@keyframes ls-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ls-label {
  display: block;
  margin: 18px 0 8px;
  font-size: clamp(13px, 1.05vw, 15px);
  font-weight: 600;
  color: #fff;
}
.ls-label:first-child { margin-top: 0; }
.ls-opt { font-weight: 400; color: var(--ls-mute); }

.ls-input,
.ls-select {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
  color: #fff;
  font: inherit;
  font-size: clamp(14px, 1.15vw, 16px);
  transition: border-color .2s ease, box-shadow .25s ease, background .2s ease;
}
.ls-input::placeholder { color: rgba(174, 184, 204, .62); }
.ls-input:focus,
.ls-select:focus {
  outline: none;
  border-color: var(--ls-blue);
  box-shadow: 0 0 0 3px rgba(80, 112, 248, .22), 0 0 26px rgba(80, 112, 248, .35);
  background: rgba(80, 112, 248, .09);
}
.ls-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ls-mute) 50%),
                    linear-gradient(135deg, var(--ls-mute) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 44px;
}
.ls-select option { background: #0d1220; color: #fff; }

.ls-note { margin: 9px 0 0; font-size: clamp(12px, .95vw, 13.5px); color: var(--ls-mute); }
.ls-hint { margin: 0 0 12px; font-size: clamp(13px, 1.05vw, 15px); color: var(--ls-mute); }

/* ---------- day chips ---------- */

.ls-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(5px, .8vw, 9px);
}
.ls-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 2px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 13px;
  background: rgba(255, 255, 255, .045);
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .25s ease, transform .2s ease;
}
.ls-day:hover { background: rgba(80, 112, 248, .14); transform: translateY(-2px); }
.ls-day .ls-dow { font-size: clamp(10px, .85vw, 12px); color: var(--ls-mute); }
.ls-day .ls-num { font-size: clamp(17px, 1.6vw, 22px); font-weight: 700; line-height: 1.1; }
.ls-day .ls-mon { font-size: clamp(9px, .8vw, 11px); letter-spacing: .06em; color: var(--ls-mute); }
/* brand.md: the selected thing carries the emphasis glow, never a flat colour swap. */
.ls-day[aria-pressed="true"] {
  background: var(--ls-blue);
  border-color: var(--ls-blue-soft);
  box-shadow: 0 0 26px rgba(80, 112, 248, .45);
}
.ls-day[aria-pressed="true"] .ls-dow,
.ls-day[aria-pressed="true"] .ls-mon { color: rgba(255, 255, 255, .88); }

/* ---------- time chips ---------- */

.ls-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(6px, .9vw, 10px); }
.ls-slot {
  padding: 13px 6px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 13px;
  background: rgba(255, 255, 255, .045);
  color: #fff;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .25s ease, transform .2s ease;
}
.ls-slot:hover { background: rgba(80, 112, 248, .14); transform: translateY(-2px); }
.ls-slot b { display: block; font-size: clamp(14px, 1.2vw, 17px); font-weight: 700; }
.ls-slot span { display: block; margin-top: 2px; font-size: clamp(11px, .9vw, 13px); color: var(--ls-mute); }
.ls-slot[aria-pressed="true"] {
  background: var(--ls-blue);
  border-color: var(--ls-blue-soft);
  box-shadow: 0 0 26px rgba(80, 112, 248, .45);
}
.ls-slot[aria-pressed="true"] span { color: rgba(255, 255, 255, .88); }

.ls-times { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(6px, .9vw, 12px); margin-top: clamp(10px, 1.2vw, 14px); }
.ls-or { font-size: clamp(12px, 1vw, 14px); font-style: italic; color: var(--ls-mute); }
.ls-time {
  padding: 14px 6px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 13px;
  background: rgba(255, 255, 255, .03);
  color: rgba(255, 255, 255, .55);
  font: inherit;
  font-size: clamp(13px, 1.1vw, 16px);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, box-shadow .25s ease, color .2s ease;
}
.ls-time:hover { color: #fff; background: rgba(80, 112, 248, .12); }
.ls-time[aria-pressed="true"] {
  background: var(--ls-blue);
  border-color: var(--ls-blue-soft);
  color: #fff;
  box-shadow: 0 0 26px rgba(80, 112, 248, .45);
}

/* ---------- primary button ---------- */

.ls-btn {
  display: block;
  width: 100%;
  margin-top: clamp(18px, 2.2vw, 26px);
  padding: clamp(15px, 1.5vw, 19px) 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ls-blue);
  color: #fff;
  font: inherit;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 700;
  cursor: pointer;
  /* brand.md button glow — a primary button with no glow is a build error. */
  box-shadow: 0 8px 22px -6px rgba(80, 112, 248, .5);
  transition: background .2s ease, box-shadow .25s ease, transform .2s ease, opacity .2s ease;
}
.ls-btn:hover:not(:disabled) { background: #6a86ff; transform: translateY(-2px); box-shadow: 0 0 30px rgba(80, 112, 248, .62), 0 12px 28px -8px rgba(80, 112, 248, .6); }
.ls-btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.ls-btn.is-busy { color: transparent; position: relative; }
.ls-btn.is-busy::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ls-spin .7s linear infinite;
}
@keyframes ls-spin { to { transform: rotate(360deg); } }

.ls-error {
  margin: 12px 0 0;
  font-size: clamp(12.5px, 1vw, 14px);
  color: #ffb4b4;
}
.ls-error:empty { display: none; }

/* ---------- done ---------- */

.ls-done { text-align: center; padding-top: clamp(6px, 1vw, 14px); }
.ls-check {
  width: clamp(58px, 6vw, 76px);
  height: clamp(58px, 6vw, 76px);
  margin: 0 auto clamp(14px, 1.8vw, 22px);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #6d8bff 0%, var(--ls-blue) 55%, var(--ls-blue-deep) 100%);
  box-shadow: 0 0 30px rgba(80, 112, 248, .45);
}
.ls-check svg { width: 46%; height: 46%; }
.ls-done h3 {
  margin: 0;
  font-size: clamp(21px, 2.3vw, 30px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.01em;
}
.ls-verse { margin: clamp(12px, 1.4vw, 18px) 0 0; font-size: clamp(13px, 1.1vw, 16px); font-style: italic; color: var(--ls-mute); }
.ls-done p.ls-body { margin: clamp(12px, 1.4vw, 18px) 0 0; font-size: clamp(13px, 1.1vw, 16px); line-height: 1.55; color: var(--ls-mute); }

@media (max-width: 460px) {
  .ls-days { grid-template-columns: repeat(4, 1fr); }
  .ls-slots { grid-template-columns: 1fr; }
  .ls-times { grid-template-columns: 1fr; }
  .ls-or { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ls-overlay, .ls-card, .ls-step, .ls-btn, .ls-day, .ls-slot, .ls-time { transition: none !important; animation: none !important; }
}
