/* Event / webinar pages (events/*). Scoped with the .ev- prefix so it never
   collides with the compiled theme. Palette follows the webinar email:
   navy #15254a, teal #1a8a9a. */

.ev-page {
  --ev-navy: #15254a;
  --ev-teal: #1a8a9a;
  --ev-teal-dark: #136f7c;
  --ev-teal-tint: #e8f4f6;
  --ev-ink: #0f172a;
  --ev-text: #334155;
  --ev-muted: #64748b;
  --ev-line: #e2e8f0;
  --ev-control: #cbd5e1;
  --ev-bg: #f5f8fa;
  --ev-error: #dc2626;
}

.ev-page [hidden] {
  display: none !important;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.ev-hero {
  background: linear-gradient(135deg, #15254a 0%, #174f6d 55%, #1a8a9a 100%);
  color: #fff;
  padding: 56px 24px 64px;
  outline: none;
}

.ev-hero-inner,
.ev-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

.ev-eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #bfe6ec;
}

.ev-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.ev-lede {
  margin: 0 0 28px;
  max-width: 38rem;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.ev-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.ev-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 500;
}

.ev-meta svg {
  width: 16px;
  height: 16px;
  flex: none;
  opacity: 0.85;
}

.ev-localtime {
  margin: 0 0 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.ev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.ev-btn:focus-visible {
  outline: 3px solid rgba(26, 138, 154, 0.45);
  outline-offset: 2px;
}

.ev-btn-primary {
  width: 100%;
  background: var(--ev-teal);
  color: #fff;
}

.ev-btn-primary:hover {
  background: var(--ev-teal-dark);
}

.ev-btn-primary[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.ev-btn-outline {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--ev-control);
  background: #fff;
  color: var(--ev-navy);
  font-size: 14px;
  font-weight: 600;
}

.ev-btn-outline:hover {
  border-color: var(--ev-teal);
  color: var(--ev-teal-dark);
}

/* ── Content column ───────────────────────────────────────────────────── */

.ev-main {
  color: var(--ev-text);
  background: var(--ev-bg);
  padding: 48px 24px 72px;
}

.ev-section + .ev-section {
  margin-top: 48px;
}

.ev-section h2 {
  margin: 0 0 16px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ev-ink);
}

.ev-section p {
  margin: 0 0 16px;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.ev-section strong {
  color: var(--ev-ink);
}

.ev-learn {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ev-learn li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--ev-line);
  border-radius: 12px;
  background: #fff;
}

.ev-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--ev-teal-tint);
  color: var(--ev-teal-dark);
  font-weight: 700;
}

.ev-learn h3 {
  margin: 0 0 4px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ev-ink);
}

.ev-section .ev-learn p {
  margin: 0;
  font-size: 0.975rem;
  line-height: 1.6;
}

.ev-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.ev-pillars li {
  position: relative;
  padding-top: 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ev-navy);
}

.ev-pillars li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 28px;
  height: 3px;
  margin-left: -14px;
  border-radius: 2px;
  background: var(--ev-teal);
}

.ev-main a:not(.ev-btn) {
  color: var(--ev-teal-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Registration card ────────────────────────────────────────────────── */

.ev-card {
  scroll-margin-top: 96px;
  overflow: hidden;
  border: 1px solid var(--ev-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 40px rgba(15, 23, 42, 0.1);
  outline: none;
}

.ev-card-head {
  padding: 24px 28px 4px;
}

.ev-card-head h2 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ev-ink);
}

.ev-card-head p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--ev-muted);
}

.ev-ended {
  margin: 16px 28px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ev-teal-tint);
  font-size: 14px;
  color: var(--ev-teal-dark);
}

.ev-form {
  padding: 20px 28px 28px;
}

.ev-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 12px;
}

.ev-field {
  margin-bottom: 14px;
}

.ev-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ev-ink);
}

.ev-req {
  color: var(--ev-error);
}

.ev-input {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--ev-control);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ev-ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ev-input::placeholder {
  color: #94a3b8;
}

.ev-input:focus {
  outline: none;
  border-color: var(--ev-teal);
  box-shadow: 0 0 0 3px rgba(26, 138, 154, 0.2);
}

.ev-input[aria-invalid="true"] {
  border-color: var(--ev-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.ev-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--ev-muted);
}

.ev-error {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ev-error);
}

/* CAPTCHA */
.ev-captcha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 14px 16px;
  border: 1px dashed var(--ev-control);
  border-radius: 10px;
  background: var(--ev-bg);
}

.ev-captcha-text {
  flex: 1 1 auto;
  min-width: 0;
}

.ev-captcha-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ev-muted);
}

.ev-captcha-q {
  display: block;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ev-ink);
}

.ev-captcha .ev-input {
  width: 80px;
  flex: none;
  text-align: center;
}

.ev-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--ev-control);
  border-radius: 8px;
  background: #fff;
  color: var(--ev-muted);
  cursor: pointer;
}

.ev-icon-btn:hover {
  border-color: var(--ev-teal);
  color: var(--ev-teal-dark);
}

.ev-icon-btn svg {
  width: 18px;
  height: 18px;
}

/* Honeypot: off-screen for people, visible to naive bots */
.ev-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ev-alert {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  font-size: 14px;
  line-height: 1.5;
  color: #991b1b;
}

.ev-card > .ev-alert {
  margin: 16px 28px 0;
}

.ev-fineprint {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ev-muted);
}

/* Success state */
.ev-success {
  padding: 36px 28px;
  text-align: center;
}

.ev-success-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: var(--ev-teal-tint);
  color: var(--ev-teal-dark);
}

.ev-success-badge svg {
  width: 28px;
  height: 28px;
}

.ev-success h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ev-ink);
  outline: none;
}

.ev-success p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.6;
}

.ev-success .ev-fineprint {
  margin: 24px 0 0;
}

.ev-success-when {
  margin: 0 0 14px !important;
  font-size: 13px !important;
  font-weight: 600;
  color: var(--ev-muted);
}

/* ── Layout breakpoints ───────────────────────────────────────────────── */

@media (min-width: 960px) {
  .ev-hero {
    padding: 72px 24px 88px;
  }

  .ev-hero-inner,
  .ev-grid {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 56px;
    align-items: start;
  }

  /* Pull the registration card up so it overlaps the hero, then keep it in
     view while the visitor reads the session details */
  .ev-aside {
    position: sticky;
    top: 96px;
    margin-top: -240px;
  }
}

@media (max-width: 420px) {
  .ev-hero,
  .ev-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ev-card-head,
  .ev-form,
  .ev-success {
    padding-left: 20px;
    padding-right: 20px;
  }

  .ev-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .ev-pillars li {
    letter-spacing: 0.08em;
  }
}
