:root{
  --ff:#0C1E21;
  --bg:#f7f7f8;
  --card:#fff;
  --text:#0C1E21;
  --muted:#5f6b70;
  --border:#e5e7eb;
  --cta:#0EA47A;
  --accent-pill:#E8FBF3;
  --total-bg:#1f2937;
}

/* Base */
*{box-sizing:border-box;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial}
html,body{margin:0;background:var(--bg);color:var(--text);line-height:1.45;font-size:16px}
.wrap{max-width:980px;margin:24px auto;padding:16px}

.card{background:var(--card);border:1px solid var(--border);border-radius:16px;box-shadow:0 6px 24px rgba(12,30,33,.08);position:relative}
.hdr{display:flex;gap:10px;align-items:center;padding:14px 18px;border-bottom:1px solid var(--border)}
.dot{width:12px;height:12px;border-radius:999px;background:var(--ff)}
.title{margin:0;font-size:18px}

/* Progress bar under header */
.progress{height:6px;background:#eef2f7;border-radius:999px;overflow:hidden;margin:0 18px 10px 18px}
.progress span{display:block;height:100%;background:var(--cta);width:0%;transition:width .35s ease}

/* Steps */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:10px}
.step{font-size:12px;text-align:center;padding:8px;border:1px dashed var(--border);border-radius:12px;color:var(--muted)}
.step.is{border-color:var(--ff);color:var(--ff);font-weight:700}

/* Body */
.body{padding:16px}
.grid{display:grid;gap:14px}
.row{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:center}

/* Form */
label{font-size:14px;color:var(--muted);display:block;margin-bottom:6px}
input[type="text"],input[type="tel"],select{
  width:100%;padding:12px;border:1px solid var(--border);border-radius:12px;min-height:48px;font-size:16px;background:#fff
}
/* Søgefelt over rollen-selecten */
.role-search{
  width:100%;
  margin:0 0 8px 0;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  font-size:14px;
}
.hint{font-size:13px;color:var(--muted)}
.review{border:1px solid var(--border);border-radius:12px;padding:12px;background:#fff}
.review-row{display:flex;gap:8px;align-items:center;font-size:14px;word-break:break-word}
.review-row strong{min-width:140px;color:#374151}

/* Actions / buttons */
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
.btn{
  border:0;border-radius:14px;padding:16px 22px;background:var(--cta);color:#fff;font-weight:800;cursor:pointer;
  min-height:52px;box-shadow:0 8px 18px rgba(14,164,122,.28);font-size:18px;letter-spacing:.1px
}
.btn:hover{filter:brightness(.96)}
.btn:active{transform:translateY(1px)}
.btn.secondary{background:#fff;color:var(--text);border:1px solid var(--border);box-shadow:none}
.btn.fullwidth{width:100%}

/* Role list */
.list{display:grid;gap:10px}
.item{
  display:grid;grid-template-columns:1fr minmax(220px,360px);gap:12px;align-items:center;
  padding:8px;border:1px solid var(--border);border-radius:12px;background:#fff
}
.role-list{display:grid;gap:8px}
.role-card{
  display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:8px 10px;border:1px solid var(--border);
  border-radius:12px;background:#fff
}
.idx{width:28px;height:28px;display:grid;place-items:center;background:#f2f4f7;border-radius:999px;color:#111827;font-weight:700}
.price-pill{font-size:12px;padding:4px 10px;border-radius:999px;background:var(--accent-pill);color:#065f46;border:1px solid #c7f0d0}

/* Total */
.total{
  display:grid;grid-template-columns:1fr auto;align-items:center;background:var(--total-bg);color:#fff;border-radius:14px;
  padding:10px 14px;margin-top:8px;gap:8px
}
.total-label{font-weight:600;font-size:14px;opacity:.9}
.total-amount{font-weight:800;font-size:20px}

/* Layout step 3 */
.two-col{display:grid;grid-template-columns:1.2fr 1fr;gap:28px;align-items:start}
.col-aside{display:grid;gap:12px;grid-auto-flow:row}
.lead-title{order:1;font-size:26px;font-weight:900;margin:0;line-height:1.2;color:#0C1E21}
.lead-subtitle{order:1;font-size:20px;font-weight:600;margin-top:6px;color:#0C1E21;line-height:1.3}
.phone-field{order:2}
.privacy{order:3}
.cta-area{order:4}
.col-aside .cta-area .btn{width:100%;display:block;min-height:56px;padding:14px 18px}

/* Disclaimer */
.disclaimer{font-size:12px;color:var(--muted)}

/* 🚫 Skjul “Læs mere” som standard (desktop) */
.disclaimer-toggle{display:none}

/* Desktop: small width + indhak så teksten flugter med totalens indre padding */
@media (min-width:861px){
  #price-disclaimer{max-width:680px;margin-top:10px;padding-left:14px} /* 14px = total's venstre padding */
}

/* Bridge (loader) */
.bridge-overlay{position:fixed;inset:0;background:rgba(255,255,255,.8);backdrop-filter:blur(2px);display:none;align-items:center;justify-content:center;z-index:9999}
.bridge-overlay.show{display:flex}
.bridge-box{background:#fff;border:1px solid var(--border);border-radius:12px;padding:16px 20px;box-shadow:0 8px 28px rgba(0,0,0,.12);text-align:center;max-width:320px}
.bridge-title{font-weight:800;margin-bottom:8px}
.meter{height:6px;background:#eef2f7;border-radius:999px;overflow:hidden;margin-top:6px}
.meter span{display:block;width:45%;height:100%;background:var(--cta);animation:pulse 1.2s ease-in-out infinite alternate}
@keyframes pulse{from{transform:translateX(0)}to{transform:translateX(120%)}}

/* Næste/Se pris til højre */
.pane[data-step="1"] .actions,
.pane[data-step="2"] .actions{display:flex;align-items:center}
.pane[data-step="1"] #next1{margin-left:auto}
.pane[data-step="2"] #next2{margin-left:auto}

/* Mobile */
@media (max-width:860px){
  .two-col{grid-template-columns:1fr;gap:16px}
  .item{grid-template-columns:1fr}

  /* Tilbage nederst, fuld bredde og mere diskret */
  .back-row{margin-top:22px}
  .back-row .btn.secondary{
    width:100%;font-size:16px;padding:12px 16px;color:#64737a;border-color:#e7eaee;background:#fff;box-shadow:none
  }

  /* 📱 Læs mere: vis kun på mobil */
  #price-disclaimer{max-height:0;overflow:hidden;transition:max-height .3s ease}
  #price-disclaimer.expanded{max-height:320px}
  .disclaimer-toggle{
    display:inline-block;
    margin-top:8px;
    color:#6b7280;
    font-weight:600;
    font-size:14px;
    background:none;
    border:none;
    padding:0;
    cursor:pointer;
  }
  .disclaimer-toggle:hover{text-decoration:underline}

  .lead-title{font-size:24px}
  .lead-subtitle{font-size:18px}
}

@media (min-width:861px){
  .lead-title{font-size:28px}
  .lead-subtitle{font-size:22px}
}
/* Custom søgbar combobox */
.role-combobox {
  position: relative;
  width: 100%;
}
.role-input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  background: #fff;
}
.role-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  list-style: none;
  margin: 0;
  padding: 4px 0;
}
.role-dropdown li {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 15px;
}
.role-dropdown li:hover {
  background: #f1f5f9;
}
.role-dropdown li.empty {
  color: var(--muted);
  cursor: default;
}
/* Custom søgbar combobox */
.role-combobox{position:relative;width:100%}
.role-input{
  width:100%;padding:12px;border:1px solid var(--border);border-radius:12px;
  font-size:16px;background:#fff
}
.role-dropdown{
  position:absolute;top:calc(100% + 4px);left:0;right:0;background:#fff;border:1px solid var(--border);
  border-radius:10px;max-height:220px;overflow-y:auto;z-index:100;box-shadow:0 4px 16px rgba(0,0,0,.08);
  list-style:none;margin:0;padding:4px 0
}
.role-dropdown li{padding:8px 12px;cursor:pointer;font-size:15px}
.role-dropdown li:hover{background:#f1f5f9}
.role-dropdown li.empty{color:var(--muted);cursor:default}

/* ===== Toasts (centreret, moderne popups) ===== */
#toast-stack {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  pointer-events: none;
  width: min(90%, 480px);
  align-items: center;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border, #E5E7EB);
  border-left-width: 6px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
  padding: 14px 16px;
  transform: translateY(-10px) scale(0.96);
  opacity: 0;
  transition: transform .25s cubic-bezier(0.25,0.1,0.25,1), opacity .25s ease;
  max-width: 100%;
}

.toast.is-in {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.toast.is-out {
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
}

.toast__icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 999px;
  flex: 0 0 18px;
  background: #CBD5E1;
}
.toast__msg {
  font-size: 15px;
  line-height: 1.4;
  color: #0f172a;
}
.toast__close {
  margin-left: auto;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #64748b;
  padding: 0 2px;
}
.toast__close:hover { color: #0f172a; }

.toast--error { border-left-color: #ef4444; }
.toast--error .toast__icon { background: #ef4444; }
.toast--success { border-left-color: #10b981; }
.toast--success .toast__icon { background: #10b981; }
.toast--info { border-left-color: #3b82f6; }
.toast--info .toast__icon { background: #3b82f6; }
