/* ── NordicLead Plugin Styles ── */
:root {
  --nl-primary: #1a1a2e;
  --nl-accent: #4f46e5;
  --nl-accent-hover: #4338ca;
  --nl-bg: #f8f9fc;
  --nl-white: #ffffff;
  --nl-border: #e2e8f0;
  --nl-text: #1e293b;
  --nl-muted: #64748b;
  --nl-success: #16a34a;
  --nl-error: #dc2626;
  --nl-radius: 10px;
}

/* ── Layout ── */
.nl-wrap {
  display: flex;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--nl-text);
}
.nl-form-side { flex: 1; min-width: 0; }
.nl-info-side  { flex: 1; min-width: 0; background: var(--nl-primary); color: #fff; border-radius: 16px; padding: 40px; }
.nl-full { max-width: 480px; margin: 0 auto; }

/* ── Logo ── */
.nl-logo { font-size: 22px; font-weight: 800; color: var(--nl-accent); margin-bottom: 24px; }

/* ── Headings ── */
.nl-form-side h1, .nl-ob-wrap h2 { font-size: 26px; font-weight: 800; margin: 0 0 8px; }
.nl-subtitle { color: var(--nl-muted); margin: 0 0 28px; }
.nl-info-side h2 { font-size: 22px; font-weight: 700; margin: 0 0 24px; }

/* ── Fields ── */
.nl-field { margin-bottom: 18px; }
.nl-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.nl-field label small { font-weight: 400; color: var(--nl-muted); }
.nl-field input[type="text"],
.nl-field input[type="email"],
.nl-field input[type="url"],
.nl-field input[type="tel"],
.nl-field input[type="password"],
.nl-field textarea,
.nl-field select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--nl-border);
  border-radius: var(--nl-radius);
  font-size: 15px;
  color: var(--nl-text);
  background: var(--nl-white);
  transition: border-color .2s;
  box-sizing: border-box;
  font-family: inherit;
}
.nl-field input:focus,
.nl-field textarea:focus,
.nl-field select:focus {
  outline: none;
  border-color: var(--nl-accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.nl-err { display: block; color: var(--nl-error); font-size: 13px; margin-top: 4px; min-height: 18px; }

/* ── Buttons ── */
.nl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--nl-radius);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background .2s, transform .1s;
  font-family: inherit;
}
.nl-btn-primary { background: var(--nl-accent); color: #fff; width: 100%; }
.nl-btn-primary:hover { background: var(--nl-accent-hover); }
.nl-btn-secondary { background: transparent; color: var(--nl-accent); border: 1.5px solid var(--nl-accent); }
.nl-btn-secondary:hover { background: rgba(79,70,229,.06); }
.nl-btn:disabled { opacity: .6; cursor: not-allowed; }
.nl-btn:active { transform: scale(.98); }

/* ── Notices ── */
.nl-notice { padding: 14px 16px; border-radius: var(--nl-radius); margin-bottom: 20px; font-size: 15px; }
.nl-notice-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.nl-notice-error   { background: #fee2e2; color: var(--nl-error); border: 1px solid #fecaca; }

/* ── Fine print ── */
.nl-fine-print { font-size: 13px; color: var(--nl-muted); text-align: center; margin: 12px 0 6px; }
.nl-login-link  { font-size: 14px; text-align: center; color: var(--nl-muted); margin: 0; }
.nl-login-link a { color: var(--nl-accent); text-decoration: none; font-weight: 600; }

/* ── Info side steps ── */
.nl-steps { display: flex; flex-direction: column; gap: 24px; }
.nl-step  { display: flex; gap: 16px; align-items: flex-start; }
.nl-step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; flex-shrink: 0;
}
.nl-step p { margin: 4px 0 0; font-size: 14px; opacity: .8; }
.nl-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.nl-badges span { background: rgba(255,255,255,.12); padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 600; }

/* ── Onboarding wrapper ── */
.nl-ob-wrap { flex-direction: column; max-width: 680px; }

/* ── Progress bar ── */
.nl-progress-bar { margin-bottom: 40px; }
.nl-progress-track { height: 6px; background: var(--nl-border); border-radius: 10px; margin-bottom: 16px; }
.nl-progress-fill  { height: 100%; background: var(--nl-accent); border-radius: 10px; transition: width .4s ease; width: 25%; }
.nl-progress-steps { display: flex; justify-content: space-between; }
.nl-ps { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--nl-muted); }
.nl-ps-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--nl-border); color: var(--nl-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; transition: background .3s, color .3s;
}
.nl-ps.active .nl-ps-dot { background: var(--nl-accent); color: #fff; }
.nl-ps.done .nl-ps-dot   { background: var(--nl-success); color: #fff; }
.nl-ps.done .nl-ps-dot::after { content: '✓'; }

/* ── Step panels ── */
.nl-step-panel { animation: nlFadeIn .3s ease; }
@keyframes nlFadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
.nl-step-desc { color: var(--nl-muted); margin: 0 0 24px; }
.nl-step-actions { display: flex; gap: 12px; margin-top: 28px; }
.nl-step-actions .nl-btn { flex: 1; }

/* ── Checkboxes ── */
.nl-checkboxes { display: flex; flex-wrap: wrap; gap: 8px; }
.nl-checkbox-label {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border: 1.5px solid var(--nl-border);
  border-radius: 100px; font-size: 14px; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.nl-checkbox-label:hover { border-color: var(--nl-accent); }
.nl-checkbox-label input { display: none; }
.nl-checkbox-label.selected { background: var(--nl-accent); color: #fff; border-color: var(--nl-accent); }

/* ── Tag input ── */
.nl-tag-input { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 12px; border: 1.5px solid var(--nl-border); border-radius: var(--nl-radius); background: var(--nl-white); }
.nl-tag-input input { border: none; outline: none; font-size: 15px; flex: 1; min-width: 150px; font-family: inherit; }
.nl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nl-tag { display: inline-flex; align-items: center; gap: 4px; background: var(--nl-accent); color: #fff; padding: 4px 12px; border-radius: 100px; font-size: 13px; }
.nl-tag button { background: none; border: none; color: #fff; cursor: pointer; font-size: 16px; line-height: 1; padding: 0; opacity: .8; }
.nl-tag button:hover { opacity: 1; }

/* ── Mål-kort (trin 4) ── */
.nl-maal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.nl-maal-kort {
  border: 2px solid var(--nl-border);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .1s;
  user-select: none;
}
.nl-maal-kort:hover { border-color: var(--nl-accent); background: rgba(79,70,229,.04); }
.nl-maal-kort.valgt  { border-color: var(--nl-accent); background: rgba(79,70,229,.08); }
.nl-maal-kort.valgt .nl-maal-ikon { transform: scale(1.15); }
.nl-maal-ikon  { font-size: 36px; margin-bottom: 12px; transition: transform .2s; }
.nl-maal-titel { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.nl-maal-desc  { font-size: 13px; color: var(--nl-muted); line-height: 1.4; }

@media (max-width: 600px) {
  .nl-maal-grid { grid-template-columns: 1fr; }
}

/* ── Prisberegner (trin 5) ── */
.nl-pris-kort {
  background: #f8f9fc;
  border: 1.5px solid var(--nl-border);
  border-radius: 14px;
  padding: 28px;
}
.nl-pris-header { margin-bottom: 20px; }
.nl-pris-label  { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--nl-muted); text-transform: uppercase; }
.nl-pris-total  { font-size: 48px; font-weight: 800; color: var(--nl-accent); line-height: 1.1; margin-top: 4px; }
.nl-pris-dkk    { font-size: 22px; font-weight: 600; color: var(--nl-muted); }

.nl-slider-wrap { margin-bottom: 24px; }
.nl-slider {
  -webkit-appearance: none;
  width: 100%; height: 6px;
  border-radius: 10px;
  background: linear-gradient(to right, var(--nl-accent) 0%, var(--nl-accent) 12%, var(--nl-border) 12%, var(--nl-border) 100%);
  outline: none; cursor: pointer;
  margin-bottom: 8px;
}
.nl-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--nl-accent);
  box-shadow: 0 2px 6px rgba(79,70,229,.4);
  cursor: pointer;
}
.nl-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%; border: none;
  background: var(--nl-accent);
  box-shadow: 0 2px 6px rgba(79,70,229,.4);
}
.nl-slider-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--nl-muted); }

.nl-pris-breakdown { display: flex; flex-direction: column; gap: 0; border: 1.5px solid var(--nl-border); border-radius: 10px; overflow: hidden; background: #fff; }
.nl-pris-linje { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--nl-border); }
.nl-pris-linje:last-child { border-bottom: none; }
.nl-pris-linje em { font-style: normal; font-size: 12px; color: var(--nl-muted); }
.nl-pris-linje--fee   { color: var(--nl-muted); background: #fafafa; }
.nl-pris-linje--total { background: var(--nl-accent); color: #fff; font-size: 15px; }
.nl-pris-linje--total strong { color: #fff; }
.nl-pris-note { font-size: 13px; color: var(--nl-muted); text-align: center; margin-top: 16px; font-style: italic; line-height: 1.5; }

/* ── Tak-skærm ── */
.nl-tak { text-align: center; padding: 40px 24px; }
.nl-tak-icon { font-size: 64px; margin-bottom: 16px; }
.nl-tak h2 { font-size: 28px; margin: 0 0 12px; }
.nl-tak p  { color: var(--nl-muted); margin: 0 0 32px; font-size: 16px; }
.nl-tak-steps { display: flex; flex-direction: column; gap: 16px; text-align: left; max-width: 400px; margin: 0 auto; }
.nl-tak-step { display: flex; gap: 12px; align-items: flex-start; background: var(--nl-bg); padding: 14px 18px; border-radius: var(--nl-radius); }
.nl-tak-step span { font-size: 20px; }

/* ── Spinner ── */
.nl-spinner { animation: nlPulse 1s infinite; letter-spacing: 2px; }
@keyframes nlPulse { 0%,100% { opacity:.3; } 50% { opacity:1; } }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nl-wrap { flex-direction: column; padding: 24px 16px; }
  .nl-info-side { padding: 28px 20px; }
  .nl-progress-steps { gap: 4px; }
  .nl-ps span { display: none; }
}
