/* ============================================================
   Webinar med Fagbrev.io — landingsside
   Recreated from Claude Design handoff (Fagbrev design system).
   Mørk midnattsblå (#10163a) · oransje #ee5a36 · Montserrat
   ============================================================ */

:root {
  --primary: #ee5a36;
  --dark: #10163a;
  --positive: #4caf50;
  --negative: #ea5455;
  --fg-1: #5e5873;
  --fg-2: #6e6b7b;
  --fg-muted: #b9b9c3;
  --border: #d8d6de;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg-1);
  background: var(--dark);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2 { margin: 0; }
.accent { color: var(--primary); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--dark);
  color: #fff;
  overflow: hidden;
}
.glow { position: absolute; border-radius: 50%; pointer-events: none; }
.glow-1 { top: -260px; right: -160px; width: 820px; height: 820px; background: radial-gradient(circle, rgba(238,90,54,.30), transparent 66%); }
.glow-2 { bottom: -340px; left: -200px; width: 720px; height: 720px; background: radial-gradient(circle, rgba(238,90,54,.14), transparent 66%); }

.hero-nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; }
.brand-word { font-size: 21px; font-weight: 600; color: var(--primary); letter-spacing: -.01em; }

.hero-grid {
  position: relative;
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 452px; gap: 64px;
  align-items: center;
  padding: 40px 32px 48px;
}

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(238,90,54,.16); color: #ff8a63;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 16px; border-radius: 9999px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); display: inline-block; }

.hero-h1 { font-size: 56px; line-height: 1.05; font-weight: 700; color: #fff; letter-spacing: -.025em; margin: 18px 0 0; }
.hero-sub { font-size: 20px; line-height: 1.5; color: rgba(255,255,255,.74); font-weight: 400; margin: 16px 0 0; max-width: 520px; }

/* fact list */
.fact-row { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 24px; }
.fact-chip {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10);
  border-radius: .75rem; padding: 14px 20px;
}
.fact-chip .ico { color: #ff8a63; flex: 0 0 auto; }
.fact-chip span { font-size: 15.5px; font-weight: 500; color: #fff; }

/* ===================== SIGNUP CARD ===================== */
.card-col { position: relative; }
.card-pad {
  background: #fff; border-radius: 1rem;
  box-shadow: 0 30px 70px rgba(0,0,0,.40);
  padding: 30px 30px 26px;
}

.card-title { font-size: 22px; font-weight: 600; color: var(--dark); margin: 0 0 6px; }
.card-sub { font-size: 14px; line-height: 1.5; color: var(--fg-2); margin: 0 0 16px; }

.date-label { font-size: 12px; font-weight: 500; color: var(--fg-1); margin-bottom: 9px; }
.date-wrap { position: relative; margin-bottom: 20px; }

/* dropdown trigger */
.date-trigger {
  position: relative; z-index: 35;
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 12px 16px; border: none; border-radius: 16px; background: #fff;
  font-family: inherit; text-align: left; cursor: pointer;
  box-shadow: inset 0 0 0 1px #d0d0da;
  transition: box-shadow .2s;
}
.date-wrap.open .date-trigger { box-shadow: inset 0 0 0 1.5px var(--primary); }
.date-wrap.err .date-trigger { box-shadow: inset 0 0 0 1.5px var(--negative); }
.trig-ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px;
  background: #f4f4f7; color: #9ca3af; display: flex; align-items: center; justify-content: center;
}
.trig-placeholder { flex: 1; font-size: 15px; font-weight: 500; color: #9ca3af; }
.trig-tile {
  flex: 0 0 auto; width: 46px; height: 50px; border-radius: 13px;
  background: linear-gradient(140deg, #ff7a4d, #ee5a36); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
}
.trig-tile .t-day { font-size: 19px; font-weight: 700; line-height: 1; }
.trig-tile .t-mon { font-size: 9px; font-weight: 600; letter-spacing: .09em; opacity: .85; }
.trig-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.trig-info .t-label { font-size: 15px; font-weight: 600; color: var(--dark); }
.trig-info .t-sub { font-size: 12.5px; color: var(--fg-2); }
.chev { flex: 0 0 auto; width: 22px; height: 22px; color: #9ca3af; transition: transform .25s cubic-bezier(.4,0,.2,1), color .2s; }
.date-wrap.open .chev { color: var(--primary); transform: rotate(180deg); }

.date-err { display: block; font-size: 12px; font-weight: 500; color: var(--negative); margin-top: 7px; }

/* dropdown panel */
.date-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 40;
  background: #fff; border-radius: 18px; padding: 10px;
  box-shadow: 0 24px 60px rgba(16,22,58,.28), inset 0 0 0 1px #eef0f4;
  max-height: 340px; overflow-y: auto;
  opacity: 0; transform: translateY(-6px) scale(.99); transform-origin: top center;
  transition: opacity .2s ease, transform .2s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.date-wrap.open .date-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.date-backdrop { position: fixed; inset: 0; z-index: 30; display: none; }
.date-wrap.open .date-backdrop { display: block; }

.date-row {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 9px 12px 9px 9px; border: none; border-radius: 16px; margin-bottom: 10px;
  font-family: inherit; text-align: left;
  transition: box-shadow .2s, background .2s, transform .2s;
  background: #fff; box-shadow: inset 0 0 0 1px #ececf2; cursor: pointer;
}
.date-row:last-child { margin-bottom: 0; }
.date-row .d-tile {
  flex: 0 0 auto; width: 54px; height: 58px; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: #f4f4f7; color: var(--dark); transition: all .2s;
}
.date-row .d-tile .d-day { font-size: 21px; font-weight: 700; line-height: 1; }
.date-row .d-tile .d-mon { font-size: 10px; font-weight: 600; letter-spacing: .09em; opacity: .85; }
.date-row .d-info { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.date-row .d-week { font-size: 15px; font-weight: 600; color: var(--dark); }
.date-row .d-time { font-size: 12.5px; color: var(--fg-2); }
.pill-full {
  flex: 0 0 auto; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  color: var(--negative); background: rgba(234,84,85,.12); padding: 6px 11px; border-radius: 9999px; white-space: nowrap;
}
.ring { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #e2e2ea; }
.check-orange {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--primary);
  display: flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 4px 10px rgba(238,90,54,.4);
}

/* selected row */
.date-row.selected { background: rgba(238,90,54,.06); box-shadow: inset 0 0 0 1.5px var(--primary); }
.date-row.selected .d-tile { background: linear-gradient(140deg, #ff7a4d, #ee5a36); color: #fff; }

/* full (booked) row */
.date-row.full { background: #f7f7fa; box-shadow: inset 0 0 0 1px #eef0f4; cursor: not-allowed; }
.date-row.full .d-tile { background: #eceef3; color: var(--fg-muted); }
.date-row.full .d-week { color: var(--fg-muted); text-decoration: line-through; }
.date-row.full .d-time { color: #c8c8d0; }

/* ===================== FIELDS ===================== */
.field { display: block; margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row .field { margin-bottom: 14px; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.field-label { display: block; font-size: 12px; font-weight: 500; color: var(--fg-1); margin-bottom: 4px; }
.field-box {
  display: flex; align-items: center; height: 2.5rem; border-radius: .5rem; background: #fff;
  padding: 0 14px; border: 1px solid var(--border);
  transition: border-color .2s cubic-bezier(.4,0,.2,1);
}
.field-box:focus-within { border-color: var(--primary); }
.field-box input {
  border: none; outline: none; background: transparent; flex: 1; width: 100%;
  font: inherit; font-size: 14px; color: var(--fg-1);
}
.field-box input::placeholder { color: var(--fg-muted); }
.tel-prefix { display: flex; align-items: center; margin-right: 8px; padding-right: 8px; border-right: 1px solid var(--border); }
.tel-prefix svg { display: block; width: 22px; height: 16px; border-radius: 2px; }
.field-err { display: none; color: var(--negative); font-size: 11px; margin-top: 4px; }
.field.invalid .field-err { display: block; }

/* ===================== SUBMIT ===================== */
.submit-btn {
  width: 100%; height: 3.5rem; margin-top: 4px; border: none; border-radius: .75rem;
  background: var(--primary); color: #fff; font-family: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  transition: filter .3s cubic-bezier(.4,0,.2,1);
}
.submit-btn:hover { filter: brightness(.94); }
.submit-btn:focus-visible { outline: 2px solid var(--dark); outline-offset: 2px; }

/* ===================== SUCCESS ===================== */
#successView { padding: 10px 2px 8px; }
.success-ico {
  width: 76px; height: 76px; border-radius: 50%;
  background: linear-gradient(140deg, rgba(76,175,80,.20), rgba(76,175,80,.07));
  color: #3a9e3f; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px; box-shadow: 0 10px 26px rgba(76,175,80,.18);
}
.success-title { font-size: 29px; font-weight: 700; color: var(--dark); margin: 0 0 8px; letter-spacing: -.025em; text-align: center; }
.success-lead { font-size: 15px; line-height: 1.55; color: var(--fg-2); margin: 0 auto 22px; max-width: 320px; text-align: center; }

.success-detail { text-align: left; background: #f7f7fa; border-radius: 16px; padding: 6px 16px; }
.sd-row { display: flex; align-items: center; gap: 13px; padding: 13px 0; }
.sd-icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.sd-icon-date { background: linear-gradient(140deg, #ff7a4d, #ee5a36); color: #fff; }
.sd-icon-mail { background: rgba(238,90,54,.12); color: var(--primary); }
.sd-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sd-label { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-muted); }
.sd-value { font-size: 14.5px; font-weight: 600; color: var(--dark); }
.sd-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-divider { height: 1px; background: #ececf2; }
.success-note { font-size: 13px; line-height: 1.5; color: var(--fg-muted); margin: 18px auto 0; max-width: 300px; text-align: center; }

/* ===================== HERO "SE MER"-LENKE ===================== */
.hero-more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  color: #ff8a63; font-size: 15px; font-weight: 600;
  text-decoration: none;
  transition: color .2s, gap .2s;
}
.hero-more:hover { color: var(--primary); gap: 11px; }
.hero-more svg { flex: 0 0 auto; }

/* ===================== ÉN SKJERM =====================
   Siden er nå bare hero-en, med komprimert vertikal rytme så alt (skjema +
   «Se mer») får plass i én viewport på vanlige skjermer — uten scroll. Vi LÅSER
   bevisst IKKE scroll (overflow:hidden ville kuttet bunnen av skjemaet på lave
   skjermer); i stedet faller korte/små skjermer pent tilbake til vanlig scroll. */

/* ============================================================
   RESPONSIVE — optimal på alle skjermstørrelser
   ============================================================ */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr 420px; gap: 48px; }
}

@media (max-width: 980px) {
  .wrap { padding: 0 22px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; padding: 52px 22px 64px; align-items: center; justify-items: center; }
  .hero-left { max-width: 560px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-h1 { font-size: 46px; }
  /* fakta-boksene 2×2 */
  .fact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; align-items: stretch; justify-items: stretch; }
  .fact-chip { display: flex; width: auto; justify-content: flex-start; text-align: left; }
  .card-col { max-width: 480px; width: 100%; }
}

@media (max-width: 560px) {
  .hero-grid { padding: 38px 16px 46px; gap: 28px; }
  .hero-nav { height: 30px; }
  .hero-nav a { display: none; }
  .hero-h1 { font-size: 32px; }
  .hero-sub { font-size: 16.5px; }
  .fact-row { gap: 10px; }
  .fact-chip { padding: 13px 14px; gap: 10px; }
  .fact-chip span { font-size: 13.5px; line-height: 1.25; }
  .card-pad { padding: 22px 18px 20px; }
}

/* ===================== INTERESSE-SIDE =====================
   Egen side (/interesse): bare én sentrert hvit boks på samme mørke,
   glødende bakgrunn som webinar-hero-en. Gjenbruker .card-pad/.field/.submit-btn
   fra over. */
.interesse-hero { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.interesse-shell {
  position: relative; z-index: 1;
  width: 100%; max-width: 452px;
  display: flex; flex-direction: column; align-items: center; gap: 26px;
}
.interesse-brand { gap: 12px; }
.interesse-card { width: 100%; }
.field-optional { color: var(--fg-muted); font-weight: 400; }

@media (max-width: 560px) {
  .interesse-hero { padding: 32px 16px; }
  .interesse-shell { gap: 20px; }
}

/* ===================== TOAST ===================== */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 1000;
  width: max-content;
  max-width: min(92vw, 440px);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--fg-1);
  font-size: 14.5px;
  line-height: 1.4;
  font-weight: 500;
  box-shadow: 0 12px 34px rgba(16, 22, 58, .22), 0 0 0 1px rgba(16, 22, 58, .05);
  border-left: 4px solid var(--fg-muted);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-ico { flex: 0 0 auto; display: inline-flex; margin-top: 1px; }
.toast-msg { min-width: 0; }
.toast-info { border-left-color: var(--primary); }
.toast-info .toast-ico { color: var(--primary); }
.toast-error { border-left-color: var(--negative); }
.toast-error .toast-ico { color: var(--negative); }
.toast-success { border-left-color: var(--positive); }
.toast-success .toast-ico { color: var(--positive); }

@media (max-width: 560px) {
  .toast-host { left: 12px; right: 12px; bottom: 16px; transform: none; width: auto; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .toast { transition: opacity .22s ease; transform: none; }
  .toast.show { transform: none; }
}
