/* =============================================================================
   IOTA MEDIA — Shared Styles
   All pages in all campaigns use this stylesheet.
   Campaign-specific overrides should live in a campaign's own style block.
   ============================================================================= */

/* ── RESET & BASE ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
  color: #0A2472;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVBAR ───────────────────────────────────────────────────────────────── */
.navbar {
  background: #0A2472;
  height: 58px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 36px;
}

.logo img {
  height: 36px;
  width: auto;
}

/* ── FUNNEL LAYOUT (landing page) ────────────────────────────────────────── */
.funnel-wrapper {
  min-height: calc(100vh - 58px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3.5rem 1.5rem 5rem;
  background: #fff;
}

/* ── FUNNEL HEADLINE ─────────────────────────────────────────────────────── */
.funnel-headline {
  text-align: center;
  max-width: 680px;
  margin-bottom: 2rem;
}

.funnel-headline h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.15;
  color: #0A2472;
}

.funnel-headline h1 .highlight { color: #2176AE; }

/* ── GUIDE PREVIEW IMAGE ─────────────────────────────────────────────────── */
.guide-preview-wrap {
  width: 100%;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.guide-preview-wrap img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: block;
}

/* shown when no image URL is set */
.guide-preview-placeholder {
  width: 100%;
  max-width: 560px;
  height: 240px;
  background: #EAF4FB;
  border: 2px dashed #7DCBE8;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #29ABE2;
  font-size: 0.875rem;
  text-align: center;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.guide-preview-placeholder .placeholder-icon { font-size: 2rem; margin-bottom: 0.5rem; opacity: 0.5; }

/* ── FORM STEPS ──────────────────────────────────────────────────────────── */
.funnel-form {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  animation: fadeUp 0.25s ease;
}

.step.hidden { display: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-question {
  font-size: 1.45rem;
  font-weight: 500;
  text-align: center;
  color: #0A2472;
  line-height: 1.3;
}

.step-question strong { font-weight: 800; }

/* ── TEXT INPUTS ─────────────────────────────────────────────────────────── */
.input-row {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

.input-row input { flex: 1; min-width: 0; }

input[type="text"],
input[type="email"],
input[type="tel"],
select.styled-select {
  padding: 0.875rem 1rem;
  background: #F1F5F9;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0A2472;
  transition: border-color 0.15s, background 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

input[type="text"],
input[type="email"],
select.styled-select { width: 100%; }

input::placeholder,
select.styled-select:invalid { color: #94A3B8; }

input:focus,
select.styled-select:focus {
  outline: none;
  border-color: #29ABE2;
  background: #fff;
}

input.error,
select.styled-select.error { border-color: #EF4444; }

/* ── PHONE ROW ───────────────────────────────────────────────────────────── */
.phone-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.phone-row input[type="tel"] {
  flex: 1;
  min-width: 0;
  padding: 0.875rem 1rem;
  background: #F1F5F9;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0A2472;
  transition: border-color 0.15s, background 0.15s;
}

.phone-row input[type="tel"]:focus {
  outline: none;
  border-color: #29ABE2;
  background: #fff;
}

.phone-country {
  flex-shrink: 0;
  width: 88px;
  padding: 0.875rem 0.75rem;
  background: #F1F5F9;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0A2472;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* ── OPTION BUTTONS (radio-style, auto-advance) ──────────────────────────── */
.option-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.option-btn {
  width: 100%;
  padding: 0.875rem 1.25rem;
  background: #F1F5F9;
  border: 1.5px solid #E2E8F0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0A2472;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s;
}

.option-btn:hover {
  background: #EAF4FB;
  border-color: #7DCBE8;
}

.option-btn.selected {
  background: #EAF4FB;
  border-color: #2176AE;
  color: #0A2472;
  font-weight: 600;
}

/* ── SELECT WRAPPER (for styled dropdowns) ───────────────────────────────── */
.select-wrap {
  position: relative;
  width: 100%;
}

.select-wrap::after {
  content: "▾";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  pointer-events: none;
  font-size: 0.85rem;
}

/* ── CTA BUTTON ──────────────────────────────────────────────────────────── */
.cta-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: #2176AE;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
}

.cta-btn:hover  { background: #0A2472; transform: translateY(-1px); }
.cta-btn:active { transform: translateY(0); }

/* ── BACK LINK ───────────────────────────────────────────────────────────── */
.back-link {
  font-size: 0.875rem;
  color: #64748B;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  text-decoration: none;
}

.back-link:hover { color: #0A2472; }

/* ── TRUST SIGNALS ───────────────────────────────────────────────────────── */
.trust-signals {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.trust-signal {
  font-size: 0.875rem;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-signal::before { content: "✦"; color: #29ABE2; }

/* ── ERROR MESSAGE ───────────────────────────────────────────────────────── */
.error-msg {
  font-size: 0.85rem;
  color: #EF4444;
  text-align: center;
  min-height: 1.2em;
  width: 100%;
}

/* ── DISCLAIMER ──────────────────────────────────────────────────────────── */
.disclaimer {
  font-size: 0.72rem;
  color: #94A3B8;
  text-align: center;
  max-width: 520px;
  line-height: 1.55;
  margin-top: 1.5rem;
}


/* =============================================================================
   VSL / HIGH-INTENT PAGE
   ============================================================================= */

.vsl-banner {
  background: #0A2472;
  color: #fff;
  text-align: center;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.vsl-wrapper {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.vsl-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2176AE;
}

.vsl-headline {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 900;
  text-align: center;
  color: #0A2472;
  line-height: 1.2;
  max-width: 640px;
}

/* ── VIDEO CONTAINER ─────────────────────────────────────────────────────── */
.video-outer {
  width: 100%;
  max-width: 760px;
}

.video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0A2472;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* placeholder shown before video URL is set */
.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0A2472;
  border: 2px dashed #29ABE2;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #7DCBE8;
  font-size: 0.875rem;
  text-align: center;
  padding: 2rem;
}

.video-placeholder .play-icon { font-size: 2.5rem; opacity: 0.4; }

/* ── VSL CTAs ────────────────────────────────────────────────────────────── */
.vsl-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 480px;
}

.cta-primary {
  display: block;
  width: 100%;
  padding: 1.1rem 2rem;
  background: #2176AE;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}

.cta-primary:hover  { background: #0A2472; transform: translateY(-1px); }
.cta-primary:active { transform: translateY(0); }

.cta-secondary {
  font-size: 0.875rem;
  color: #64748B;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.cta-secondary:hover { color: #0A2472; }

/* ── SOCIAL PROOF CHECKLIST ──────────────────────────────────────────────── */
.proof-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 480px;
}

.proof-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #374151;
}

.proof-item::before {
  content: "✓";
  color: #2176AE;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ── CALENDAR SECTION ────────────────────────────────────────────────────── */
.calendar-section {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  padding-top: 2rem;
  border-top: 1px solid #E2E8F0;
}

.calendar-section.visible { display: flex; }

.calendar-section h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0A2472;
  text-align: center;
}

.calendar-section p {
  font-size: 0.9rem;
  color: #64748B;
  text-align: center;
}

.calendar-embed-wrap {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
}

.calendar-embed-wrap iframe {
  width: 100%;
  height: 700px;
  border: none;
  display: block;
}

.calendar-placeholder {
  width: 100%;
  min-height: 280px;
  background: #F8FAFC;
  border: 2px dashed #7DCBE8;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #29ABE2;
  font-size: 0.875rem;
  text-align: center;
  padding: 2rem;
}


/* =============================================================================
   COURSE / LOW-INTENT PAGE
   ============================================================================= */

.course-layout {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  min-height: calc(100vh - 58px);
}

/* ── SIDEBAR ─────────────────────────────────────────────────────────────── */
.course-sidebar {
  background: #0A2472;
  color: #fff;
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-heading {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #475569;
  padding: 1.5rem 1.25rem 0.75rem;
  flex-shrink: 0;
}

.sidebar-link {
  display: block;
  padding: 0.65rem 1.25rem;
  font-size: 0.85rem;
  color: #94A3B8;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.12s;
  line-height: 1.4;
}

.sidebar-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-left-color: #29ABE2;
}

.sidebar-link.active {
  color: #fff;
  background: rgba(59, 130, 246, 0.1);
  border-left-color: #29ABE2;
}

/* ── COURSE MAIN CONTENT ─────────────────────────────────────────────────── */
.course-main {
  padding: 2.5rem 2rem;
  background: #fff;
  min-width: 0;
}

.course-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0A2472;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.course-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.course-video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0A2472;
  border: 2px dashed #29ABE2;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #7DCBE8;
  font-size: 0.875rem;
  text-align: center;
  padding: 2rem;
  margin-bottom: 1.75rem;
}

.course-module-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2176AE;
  margin-bottom: 0.5rem;
}

.course-module-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0A2472;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.course-module-desc {
  font-size: 0.95rem;
  color: #64748B;
  line-height: 1.7;
  max-width: 600px;
}

/* ── CTA PANEL (right column) ────────────────────────────────────────────── */
.course-cta-panel {
  background: #F8FAFC;
  border-left: 1px solid #E2E8F0;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cta-badge {
  display: inline-block;
  background: #CCE8F5;
  color: #0A2472;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  width: fit-content;
}

.cta-panel-headline {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0A2472;
  line-height: 1.3;
}

.cta-panel-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cta-panel-points li {
  font-size: 0.85rem;
  color: #374151;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}

.cta-panel-points li::before {
  content: "→";
  color: #2176AE;
  font-weight: 700;
  flex-shrink: 0;
}

.cta-panel-btn {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: #2176AE;
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.15s;
}

.cta-panel-btn:hover { background: #0A2472; }

.cta-panel-subtext {
  font-size: 0.775rem;
  color: #94A3B8;
  text-align: center;
  line-height: 1.5;
  margin-top: -0.75rem;
}

/* ── COACHING CALLS ──────────────────────────────────────────────────────── */
.coaching-section {
  border-top: 1px solid #E2E8F0;
  padding-top: 1.5rem;
}

.coaching-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748B;
  margin-bottom: 0.75rem;
}

.coaching-call {
  padding: 0.875rem 1rem;
  background: #EAF4FB;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.coaching-call h5 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0A2472;
  margin-bottom: 0.2rem;
}

.coaching-call-freq {
  font-size: 0.75rem;
  font-weight: 600;
  color: #29ABE2;
  margin-bottom: 0.2rem;
}

.coaching-call p {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.45;
}


/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 1024px) {
  .course-layout { grid-template-columns: 220px 1fr 260px; }
}

@media (max-width: 800px) {
  .course-layout { grid-template-columns: 1fr; }

  .course-sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .sidebar-heading { display: none; }

  .sidebar-link {
    white-space: nowrap;
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 0.875rem 1rem;
  }

  .sidebar-link:hover,
  .sidebar-link.active {
    border-left-color: transparent;
    border-bottom-color: #29ABE2;
  }

  .course-cta-panel {
    border-left: none;
    border-top: 1px solid #E2E8F0;
  }
}

@media (max-width: 600px) {
  .input-row { flex-direction: column; }
  .funnel-wrapper { padding: 2.5rem 1rem 4rem; }
  .vsl-wrapper { padding: 2.5rem 1rem 4rem; }
}
