/* ============================================================
   Apex Overview — Webinar/Overview Funnel
   Themeable via :root CSS variables (overridden per-tenant inline).
   Fonts: Montserrat (headings) + Lato (content) + Inter (forms)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Lato:wght@300;400;700&family=Inter:wght@300;400;500&display=swap');

:root {
  --blue:        #005C8E;
  --blue-dark:   #025D8F;
  --cta:         #188bf6;
  --form-btn:    #198BE3;
  --accent:      #63b3ed;
  --black:       #000000;
  --white:       #ffffff;
  --form-text:   #2c3345;
  --input-border:#acacac;
  --placeholder: #8c8c8c;
  --gray-attr:   #8893A8;
  --green:       #27ae60;
  --red:         #c0392b;

  --font-head: 'Montserrat', 'Segoe UI', sans-serif;
  --font-body: 'Lato', system-ui, sans-serif;
  --font-form: 'Inter', system-ui, sans-serif;

  --radius:    5px;
  --radius-lg: 10px;
  --max-w:     1170px;
  --shadow-form: 0px 4px 4px 0px rgba(87, 100, 126, 0.21);
  --transition: 0.18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--form-text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* HEADER */
.site-header { background: var(--black); padding: 13px 0; }
.header-inner { display: flex; align-items: center; gap: 20px; max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.header-logo { height: 70px; width: auto; flex-shrink: 0; object-fit: contain; }
.header-text { font-family: 'Roboto', var(--font-body); font-size: 18px; font-weight: 500; color: var(--white); line-height: 1.4; }

/* HERO (Registration) */
.hero { background: var(--black); position: relative; padding: 60px 0 70px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.5; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 52% 44%; gap: 4%; align-items: start; }

/* Form */
.form-card { background: rgba(10, 12, 16, 0.72); border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); padding: 30px 40px 20px; max-width: 650px; width: 100%; }
.form-card-title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.form-card-sub { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-family: var(--font-form); font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.9); margin-bottom: 4px; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"] { width: 100%; padding: 8px 15px; font-family: var(--font-form); font-size: 12px; font-weight: 300; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); color: var(--white); outline: none; transition: border-color var(--transition); }
.form-group input::placeholder { color: rgba(255, 255, 255, 0.4); }
.form-group input:focus { border-color: var(--cta); }
.req { color: var(--red); }
.form-error { background: rgba(192,57,43,0.15); border: 1px solid rgba(192,57,43,0.55); color: #ffb4ab; font-family: var(--font-form); font-size: 13px; border-radius: var(--radius); padding: 9px 12px; margin-bottom: 14px; }

/* Session option cards */
.session-select-lbl { display: block; font-family: var(--font-form); font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.9); margin-bottom: 6px; }
.session-options { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.session-option { position: relative; }
.session-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.session-card { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); cursor: pointer; transition: border-color var(--transition), background var(--transition); user-select: none; }
.session-card:hover { border-color: var(--cta); background: rgba(24, 139, 246, 0.12); }
.session-option input:checked ~ .session-card { border-color: var(--cta); background: rgba(24, 139, 246, 0.18); }
.radio-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--input-border); flex-shrink: 0; position: relative; transition: border-color var(--transition); }
.session-option input:checked ~ .session-card .radio-dot { border-color: var(--cta); background: var(--cta); }
.session-option input:checked ~ .session-card .radio-dot::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 5px; height: 5px; background: var(--white); border-radius: 50%; }
.session-details { flex: 1; }
.session-date-str { font-family: var(--font-form); font-size: 12px; font-weight: 500; color: var(--white); }
.session-time-str { font-size: 11px; color: rgba(255, 255, 255, 0.55); margin-top: 1px; }
.session-live-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--green); color: #fff; padding: 2px 7px; border-radius: 20px; white-space: nowrap; }
.session-live-badge .live-dot { width: 5px; height: 5px; margin: 0; }
.session-card--ondemand { border-color: var(--cta); background: rgba(24, 139, 246, 0.18); }
.session-ondemand-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--cta); color: #fff; padding: 2px 8px; border-radius: 20px; white-space: nowrap; }
.session-divider { display: flex; align-items: center; gap: 10px; font-family: var(--font-form); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--placeholder); margin: 4px 0 2px; }
.session-divider::before, .session-divider::after { content: ''; flex: 1; height: 1px; background: var(--input-border); }
.no-sessions-msg { font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); padding: 10px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius); text-align: center; }

/* SMS consent */
.sms-consent { margin-bottom: 16px; }
.checkbox-label { display: flex; gap: 8px; cursor: pointer; font-family: var(--font-form); font-size: 11px; color: rgba(255, 255, 255, 0.6); line-height: 1.5; align-items: flex-start; }
.checkbox-label input[type="checkbox"] { flex-shrink: 0; margin-top: 2px; width: 14px; height: 14px; accent-color: var(--cta); }
.form-legal { text-align: center; margin-top: 10px; font-size: 11px; color: rgba(255, 255, 255, 0.55); }
.form-legal a { color: var(--accent); }
.form-legal a:hover { text-decoration: underline; }

/* Buttons */
.btn { display: inline-block; font-family: var(--font-form); font-size: 16px; font-weight: 400; letter-spacing: 0.02em; padding: 9px 50px; border: 2px solid var(--black); border-radius: var(--radius); cursor: pointer; text-align: center; transition: background var(--transition), transform var(--transition), opacity var(--transition); text-decoration: none; }
.btn-submit { background: var(--form-btn); color: var(--white); border-color: var(--black); width: 100%; font-size: 16px; padding: 9px 50px; }
.btn-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-cta { background: var(--cta); color: var(--white); border: none; border-radius: var(--radius-lg); padding: 20px 30px; font-family: var(--font-body); font-size: 1rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; box-shadow: 0 4px 12px rgba(24, 139, 246, 0.35); }
.btn-cta:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-full { width: 100%; display: block; }

/* Bio column */
.bio-col { color: var(--white); padding-top: 10px; }
.terah-circle { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; object-position: top; box-shadow: 2px 2px 4px 0 rgba(0,0,0,1); margin-bottom: 14px; }
.owner-photos { display: flex; gap: 18px; margin-bottom: 16px; }
.owner-circle { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: top; background: #fff; box-shadow: 2px 2px 4px 0 rgba(0,0,0,1); }
@media (max-width: 560px) { .owner-photos { gap: 12px; } .owner-circle { width: 118px; height: 118px; } }
.bio-name { font-family: var(--font-head); font-size: 32px; font-weight: 700; color: var(--white); line-height: 1.2; }
.bio-title { font-family: var(--font-head); font-size: 23px; font-weight: 400; color: var(--white); margin-bottom: 4px; }
.bio-agency { font-family: var(--font-head); font-size: 14px; font-weight: 500; color: var(--white); margin-bottom: 12px; }
.bio-heading { font-family: var(--font-head); font-size: 28px; font-weight: 600; color: var(--white); text-transform: uppercase; line-height: 1.2; margin-bottom: 10px; }
.bio-heading strong { color: var(--accent); }
.bio-text { font-family: var(--font-head); font-size: 15px; font-weight: 400; color: var(--white); line-height: 1.65; margin-bottom: 24px; }

/* Countdown */
.countdown-wrap { background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); padding: 14px 16px; }
.countdown-lbl { font-family: var(--font-head); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.5); margin-bottom: 10px; }
.countdown-timer { display: flex; gap: 6px; align-items: center; }
.cd-unit { display: flex; flex-direction: column; align-items: center; background: rgba(255,255,255,0.1); border-radius: 3px; padding: 7px 10px; min-width: 48px; }
.cd-num { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--white); line-height: 1; min-width: 2ch; text-align: center; }
.cd-lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.45); margin-top: 3px; }
.cd-sep { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: rgba(255,255,255,0.3); padding-bottom: 10px; }
.live-banner { display: none; align-items: center; gap: 7px; background: rgba(39,174,96,0.15); border: 1px solid rgba(39,174,96,0.5); border-radius: var(--radius); padding: 8px 12px; font-size: 12px; font-weight: 500; color: #5de08a; margin-top: 8px; }
.live-banner.visible { display: flex; }
.live-dot { display: inline-block; width: 7px; height: 7px; background: var(--green); border-radius: 50%; flex-shrink: 0; animation: pulse-green 1.6s infinite; }
@keyframes pulse-green { 0%,100% { box-shadow: 0 0 0 0 rgba(39,174,96,0.5); } 50% { box-shadow: 0 0 0 6px rgba(39,174,96,0); } }

/* Video section */
.video-section { background: var(--black); padding: 20px 0; }
.video-section .container { max-width: var(--max-w); }
.video-wrapper { position: relative; padding-top: 56.25%; background: #060606; }
.video-wrapper iframe, .video-wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.sound-overlay { position: absolute; top: 12px; left: 12px; z-index: 98; cursor: pointer; }
.sound-btn { display: inline-flex; align-items: center; gap: 7px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.4); border-radius: 12px; padding: 6px 10px; color: var(--white); font-family: var(--font-head); font-size: 14px; font-weight: 700; transition: background var(--transition); }
.sound-btn:hover { background: rgba(0,0,0,0.75); }
.sound-icon { font-size: 18px; line-height: 1; }
.video-tagline { padding: 16px 10px 8px; text-align: center; max-width: 860px; margin: 0 auto; }
.video-tagline h2, .video-tagline p { font-family: var(--font-head); font-size: 23px; font-weight: 400; color: var(--white); line-height: 1.4; }
.watch-status { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: #444; margin-top: 8px; }

/* Exit section */
.exit-section { display: none; background: var(--white); padding: 56px 0; }
.exit-section.visible { display: block; }
.exit-headline { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; text-align: center; color: var(--form-text); margin-bottom: 8px; }
.exit-sub { text-align: center; color: var(--placeholder); font-size: 0.92rem; margin-bottom: 40px; }
.exit-stack { display: flex; flex-direction: column; gap: 48px; max-width: 860px; margin: 0 auto; }
.exit-panel { border: 2px dashed var(--input-border); border-radius: var(--radius-lg); padding: 28px 22px; text-align: center; }
.exit-panel-icon { font-size: 1.8rem; margin-bottom: 8px; opacity: 0.6; }
.exit-panel-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--form-text); }
.exit-panel-sub { font-size: 0.82rem; color: var(--placeholder); margin-bottom: 16px; line-height: 1.5; }

/* Gate screen */
.gate-screen { background: var(--black); min-height: 55vh; display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.gate-inner { text-align: center; color: var(--white); max-width: 520px; }
.gate-icon { font-size: 2.8rem; margin-bottom: 20px; opacity: 0.5; }
.gate-inner h2 { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; margin-bottom: 10px; }
.gate-inner p { font-size: 0.95rem; color: var(--gray-attr); line-height: 1.6; margin-bottom: 28px; }
.gate-session-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--accent); margin-bottom: 5px; font-family: var(--font-head); }
.gate-session-val { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; color: var(--white); margin-bottom: 24px; }
.gate-countdown { display: flex; justify-content: center; gap: 6px; align-items: center; margin-bottom: 28px; }

/* Testimonials */
.testimonials-section { background: var(--black); padding: 40px 0 48px; }
.testimonials-heading { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--white); text-align: center; letter-spacing: -1px; line-height: 1.2; margin-bottom: 28px; }
.tgrid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.tgrid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 780px; margin: 0 auto 32px; }
.tcard { border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; padding: 20px 20px 32px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.tcard-photo { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: top; display: block; }
.tcard-quote-opener { font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--white); line-height: 1.5; }
.tcard-quote-body { font-family: var(--font-head); font-size: 14px; font-weight: 400; color: var(--gray-attr); line-height: 1.6; }
.tcard-stars { color: #f5b301; font-size: 17px; letter-spacing: 3px; line-height: 1; }
.tcard-attr { font-family: var(--font-head); font-size: 14px; font-weight: 600; color: var(--gray-attr); }

/* Footer */
.site-footer { background: var(--black); padding: 20px 0 40px; text-align: center; }
.footer-logo { height: 60px; width: auto; margin: 0 auto 12px; object-fit: contain; }
.site-footer p { color: rgba(255,255,255,0.7); font-family: var(--font-head); font-size: 12px; font-weight: 400; margin-bottom: 6px; }
.footer-links { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 12px; }
.footer-links a { color: var(--accent); }
.footer-links a:hover { text-decoration: underline; }
.footer-links span { color: var(--gray-attr); }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .bio-col { order: -1; }
  .form-card { padding: 24px 20px 16px; max-width: 100%; }
  .tgrid-3 { grid-template-columns: 1fr; }
  .tgrid-2 { grid-template-columns: 1fr; }
  .header-text { font-size: 14px; }
  .bio-heading { font-size: 22px; }
  .bio-name { font-size: 24px; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 40px; }
  .header-logo { height: 52px; }
  .countdown-timer { gap: 3px; }
  .cd-unit { min-width: 40px; padding: 6px 7px; }
  .cd-num { font-size: 1.2rem; }
  .gate-countdown { gap: 3px; }
}
