/* ════════════════════════════════════════════════════════
   Bunica — start.bunica.dk lead-form
   Stylesheet bruges KUN af public/index.html.
   Admin (/admin) og portal (/portal/:kode) berøres ikke.
   Følger brand-guide i CLAUDE.md (bunica-website).
   ════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Primær */
  --midnight:       #0A1F44;
  --midnight-soft:  #142A55;

  /* Accent — dæmpet olivengrøn */
  --olive:          #C8D666;
  --olive-dark:     #7A8A2E;
  --olive-light:    #E1E9A8;

  /* Baggrund */
  --cream:          #FAF7F2;
  --cream-deep:     #F2EDE3;

  /* Sekundær accent — kun til icons */
  --warm:           #E8763A;

  /* Tekst & neutralt */
  --graphite:       #1A1A1A;
  --steel:          #5C6877;
  --mist:           #E8ECF1;
  --white:          #FFFFFF;

  --alert:          #B5341E;
  --success:        #2D7A3E;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--graphite);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

/* ── Progress Bar ── */
.progress-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--cream);
  padding: 14px 24px;
  display: none;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--mist);
}

.progress-container.visible {
  display: flex;
}

.progress-track {
  flex: 1;
  height: 4px;
  background: var(--mist);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--olive);
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0%;
}

.progress-label {
  font-size: 13px;
  color: var(--steel);
  font-weight: 500;
  white-space: nowrap;
}

/* ── Main Container ── */
.outer {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 48px;
}

.card {
  background: var(--cream-deep);
  border: 1px solid var(--mist);
  border-radius: 20px;
  padding: 48px;
  width: 100%;
  max-width: 640px;
}

/* ── Wordmark ── */
.wordmark {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  color: var(--midnight);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.wordmark .dot {
  color: var(--olive-dark);
}

.card-header {
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--mist);
}

/* ── Steps ── */
.step {
  display: none;
}

.step.active {
  display: block;
  animation: fadeUp 0.32s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Eyebrow / Label ── */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--olive-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
  padding: 6px 12px;
  background: var(--olive-light);
  border-radius: 999px;
}

/* ── Landing / Hero (step 0) ── */
.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: 56px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--midnight);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  color: var(--olive-dark);
}

.lead {
  font-size: 20px;
  font-weight: 400;
  color: var(--steel);
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 52ch;
}

.trust-line {
  font-size: 14px;
  color: var(--steel);
  margin-top: 16px;
  font-weight: 500;
}

/* ── Step Header ── */
.step-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--olive-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  padding: 5px 10px;
  background: var(--olive-light);
  border-radius: 999px;
}

.step-title {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--midnight);
  margin-bottom: 10px;
}

.step-sub {
  font-size: 17px;
  color: var(--steel);
  line-height: 1.6;
  margin-bottom: 0;
}

.step-header {
  margin-bottom: 32px;
}

/* ── Inputs ── */
.field {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--midnight);
  margin-bottom: 8px;
}

.form-input,
.form-textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--mist);
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  color: var(--graphite);
  background: var(--white);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--steel);
  opacity: 0.7;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--midnight);
  box-shadow: 0 0 0 3px rgba(10, 31, 68, 0.10);
}

.form-input.has-error,
.form-textarea.has-error {
  border-color: var(--alert);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.error-msg {
  font-size: 14px;
  color: var(--alert);
  font-weight: 500;
  margin-top: 8px;
  display: none;
}

.error-msg.show {
  display: block;
}

/* ── Radio Group ── */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1.5px solid var(--mist);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.12s;
  background: var(--white);
  user-select: none;
  -webkit-user-select: none;
}

.radio-option:hover {
  border-color: var(--midnight);
}

.radio-option.selected {
  border-color: var(--olive-dark);
  background: var(--olive-light);
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--mist);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.18s, background 0.18s;
}

.radio-option.selected .radio-dot {
  border-color: var(--olive-dark);
  background: var(--olive-dark);
}

.radio-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0;
  transition: opacity 0.18s;
}

.radio-option.selected .radio-dot::after {
  opacity: 1;
}

.radio-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--midnight);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 32px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--olive);
  color: var(--midnight);
}

.btn-primary:hover {
  background: var(--olive-dark);
  color: var(--white);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary.btn-lg {
  padding: 18px 40px;
  font-size: 17px;
}

.btn-secondary {
  background: transparent;
  color: var(--midnight);
  border: 1px solid var(--midnight);
}

.btn-secondary:hover {
  background: var(--midnight);
  color: var(--cream);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 32px;
}

.nav.has-back {
  justify-content: space-between;
}

/* ── Thank You / Calendly ── */
.thank-you {
  text-align: center;
  padding: 8px 0;
}

.check-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--olive-light);
  color: var(--olive-dark);
  font-size: 32px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.thank-you h2 {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--midnight);
  margin-bottom: 20px;
}

.thank-you h2 em {
  font-style: normal;
  color: var(--olive-dark);
}

.thank-you p {
  font-size: 17px;
  color: var(--steel);
  line-height: 1.6;
  margin-bottom: 14px;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

.thank-you p:last-child {
  margin-bottom: 0;
}

/* ── Responsive (≤480px) ── */
@media (max-width: 480px) {
  .outer {
    padding: 72px 16px 24px;
  }

  .card {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .card-header {
    margin-bottom: 24px;
  }

  .wordmark {
    font-size: 24px;
  }

  .hero-title {
    font-size: 36px;
  }

  .lead {
    font-size: 17px;
  }

  .step-title {
    font-size: 24px;
  }

  .thank-you h2 {
    font-size: 28px;
  }

  .btn {
    width: 100%;
  }

  .nav {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .progress-container {
    padding: 12px 16px;
  }
}
