/* ──────────────────────────────────────────────────────────────────
   3bids prisberegner — al inline-CSS udskilt fra prisberegner.html
   under Stadie 3b af Django-migrationen.
   ────────────────────────────────────────────────────────────────── */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #111; background: #f8fafc; }

/* ── Nav ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0,0,0,0.06); transition: all 0.3s; }
.nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.08); }
.nav-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 2rem; }
.nav-brand { text-decoration: none; display: flex; align-items: center; }
.nav-logo { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: #4b5563; text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #2563EB; }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.btn-nav { padding: 0.55rem 1.25rem; border-radius: 10px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: all 0.2s; }
.btn-nav-ghost { color: #4b5563; }
.btn-nav-solid { background: linear-gradient(135deg, #2563EB, #1e40af); color: white; }

/* ── Hero ── */
.price-hero {
  position: relative; padding: 7rem 2rem 4rem; text-align: center;
  background: linear-gradient(160deg, #0f172a 0%, #1e3a5f 40%, #1e40af 100%);
  overflow: hidden;
}
.price-hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(59,130,246,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(139,92,246,0.1) 0%, transparent 40%);
  animation: heroFloat 20s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -1%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-0.5deg); }
}
.hero-content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15); border-radius: 50px;
  padding: 0.45rem 1.2rem; font-size: 0.85rem; color: rgba(255,255,255,0.9);
  font-weight: 500; margin-bottom: 1.5rem;
}
.hero-pill .pulse { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; animation: livePulse 2s infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.price-hero h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.25rem; color: white; letter-spacing: -0.02em; }
.price-hero h1 .accent { background: linear-gradient(135deg, #60a5fa, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.price-hero p { font-size: 1.15rem; color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 2rem; line-height: 1.65; }
.hero-stats {
  display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
  background: rgba(255,255,255,0.06); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
  padding: 1.25rem 2rem; max-width: 600px; margin: 0 auto;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 1.5rem; font-weight: 800; color: white; }
.hero-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.15rem; }

/* ── Progress Bar ── */
.progress-section { background: white; border-bottom: 1px solid #e5e7eb; padding: 0; position: sticky; top: 55px; z-index: 50; }
.progress-inner { max-width: 800px; margin: 0 auto; display: flex; align-items: stretch; }
.progress-step {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem; font-size: 0.85rem; font-weight: 600; color: #9ca3af;
  border-bottom: 3px solid transparent; transition: all 0.3s; cursor: default;
}
.progress-step.active { color: #2563EB; border-bottom-color: #2563EB; }
.progress-step.done { color: #059669; border-bottom-color: #059669; }
.progress-step .num {
  width: 26px; height: 26px; border-radius: 50%; font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: #f3f4f6; color: #9ca3af; transition: all 0.3s;
}
.progress-step.active .num { background: #2563EB; color: white; }
.progress-step.done .num { background: #059669; color: white; }

/* ── Calculator ── */
.calc-wrap { max-width: 860px; margin: 0 auto; padding: 2.5rem 2rem 4rem; }
.calc-card {
  background: white; border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 40px rgba(0,0,0,0.04);
  border: 1px solid #e5e7eb; overflow: hidden;
}
.calc-inner { padding: 2.5rem; }

.step { animation: stepIn 0.35s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.step-label { font-size: 0.8rem; font-weight: 600; color: #2563EB; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4rem; }
.step-title { font-size: 1.5rem; font-weight: 800; color: #0f172a; margin-bottom: 0.3rem; }
.step-sub { font-size: 0.95rem; color: #64748b; margin-bottom: 2rem; line-height: 1.5; }

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
.cat-btn {
  position: relative; padding: 1.25rem 0.75rem; border-radius: 14px;
  background: #f8fafc; border: 2px solid #e2e8f0;
  font-size: 0.9rem; font-weight: 600; color: #334155; cursor: pointer;
  transition: all 0.2s ease; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
}
.cat-btn:hover { border-color: #93c5fd; background: #eff6ff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37,99,235,0.08); }
.cat-btn.selected { border-color: #2563EB; background: #eff6ff; color: #1e40af; box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.cat-icon { font-size: 1.8rem; line-height: 1; }
.cat-name { font-size: 0.82rem; line-height: 1.2; }

/* Fields */
.fields { display: flex; flex-direction: column; gap: 1.25rem; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; color: #334155; margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 1rem; border: 2px solid #e2e8f0; border-radius: 12px;
  font-size: 0.95rem; font-family: inherit; transition: all 0.2s; background: #f8fafc;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #2563EB; background: white; box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.field textarea { resize: vertical; min-height: 80px; }
.field-hint { font-size: 0.78rem; color: #94a3b8; margin-top: 0.2rem; }

.calc-actions { display: flex; gap: 0.75rem; margin-top: 2rem; }
.btn-back {
  padding: 0.85rem 1.5rem; border-radius: 12px; background: #f1f5f9; color: #475569;
  font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: all 0.2s;
}
.btn-back:hover { background: #e2e8f0; }
.btn-calc {
  flex: 1; padding: 0.85rem; border-radius: 12px;
  background: linear-gradient(135deg, #2563EB, #1d4ed8); color: white;
  font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
  transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-calc:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,0.3); }

/* ── Result ── */
.result { animation: stepIn 0.4s ease; }
.result-header { text-align: center; margin-bottom: 2rem; }
.result-cat { display: inline-flex; align-items: center; gap: 0.4rem; background: #eff6ff; color: #2563EB; padding: 0.35rem 1rem; border-radius: 50px; font-size: 0.82rem; font-weight: 600; margin-bottom: 1rem; }
.result-title { font-size: 1.3rem; font-weight: 700; color: #0f172a; }

.price-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.price-card { border-radius: 16px; padding: 1.5rem; text-align: center; position: relative; }
.price-card-net { background: #f8fafc; border: 1px solid #e2e8f0; }
.price-card-bids { background: linear-gradient(135deg, #ecfdf5, #d1fae5); border: 2px solid #34d399; }
.price-card-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.price-card-net .price-card-label { color: #94a3b8; }
.price-card-bids .price-card-label { color: #059669; }
.price-card-amount { font-size: 1.75rem; font-weight: 800; line-height: 1.2; }
.price-card-net .price-card-amount { color: #94a3b8; text-decoration: line-through; }
.price-card-bids .price-card-amount { color: #059669; }
.price-card-range { font-size: 0.8rem; color: #64748b; margin-top: 0.25rem; }
.price-card-bids .price-card-range { color: #047857; }
.price-card-tag {
  position: absolute; top: -10px; right: 14px;
  background: linear-gradient(135deg, #059669, #10b981); color: white;
  font-size: 0.72rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 6px;
}

.result-source { text-align: center; margin-bottom: 1.5rem; }
.result-source span,
.data-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  cursor: help;
}

/* AI-baseret estimat (Bidsight Lock 1+) — gradient til at signalere "premium signal" */
.data-badge--ai {
  background: linear-gradient(135deg, #ede9fe, #f3e8ff);
  color: #6d28d9;
  border: 1px solid #c4b5fd;
}

/* Baseret på rigtige tilbud (heuristik på faktiske bud) — solid blue */
.data-badge--db {
  background: #eff6ff;
  color: #2563EB;
  border: 1px solid #bfdbfe;
}

/* Markedsdata fallback (client-side heuristik) — neutral grå */
.data-badge--market {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}
.result-vat { text-align: center; font-size: 0.8rem; color: #94a3b8; margin-bottom: 1.5rem; }

.breakdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-bottom: 1.5rem; }
.bd-item { background: #f8fafc; border-radius: 12px; padding: 1rem; text-align: center; border: 1px solid #f1f5f9; }
.bd-label { font-size: 0.72rem; color: #64748b; font-weight: 500; margin-bottom: 0.2rem; }
.bd-value { font-size: 1rem; font-weight: 700; color: #0f172a; }

.savings-banner {
  display: flex; align-items: center; gap: 1rem;
  background: linear-gradient(135deg, #d1fae5, #ecfdf5);
  border-radius: 14px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
}
.savings-banner-icon { font-size: 2rem; }
.savings-banner-text { font-size: 0.9rem; color: #065f46; font-weight: 500; }
.savings-banner-amount { font-size: 1.35rem; font-weight: 800; color: #059669; }

.result-actions { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }
.btn-primary {
  flex: 1; padding: 0.9rem; border-radius: 12px;
  background: linear-gradient(135deg, #2563EB, #1d4ed8); color: white;
  font-weight: 700; font-size: 0.95rem; text-decoration: none; text-align: center;
  transition: all 0.2s; border: none; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,0.3); }
.btn-secondary {
  padding: 0.9rem 1.5rem; border-radius: 12px; background: #f1f5f9; color: #475569;
  font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { background: #e2e8f0; }
.result-disclaimer { font-size: 0.75rem; color: #94a3b8; line-height: 1.6; text-align: center; }

/* ── Price Guide ── */
.section-break { max-width: 860px; margin: 0 auto; padding: 0 2rem; }
.section-break hr { border: none; border-top: 1px solid #e5e7eb; }

.price-guide { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2rem; font-weight: 800; color: #0f172a; margin-bottom: 0.5rem; }
.section-header p { font-size: 1.05rem; color: #64748b; max-width: 550px; margin: 0 auto; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.guide-card {
  background: white; border-radius: 16px; border: 1px solid #e5e7eb;
  padding: 1.75rem; transition: all 0.25s;
}
.guide-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); transform: translateY(-3px); border-color: #cbd5e1; }
.guide-card-header { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.25rem; }
.guide-card-icon {
  font-size: 1.6rem; width: 48px; height: 48px; background: #f1f5f9;
  border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.guide-card-title { font-weight: 700; font-size: 1.05rem; color: #0f172a; }
.guide-card-count { font-size: 0.78rem; color: #94a3b8; }
.guide-prices { display: flex; flex-direction: column; gap: 0.5rem; }
.guide-price-row { display: flex; justify-content: space-between; align-items: center; padding: 0.45rem 0; border-bottom: 1px solid #f8fafc; }
.guide-price-label { font-size: 0.88rem; color: #475569; }
.guide-price-value { font-weight: 700; color: #0f172a; font-size: 0.95rem; }
.guide-card-cta {
  display: block; margin-top: 1.25rem; text-align: center; padding: 0.65rem;
  border-radius: 10px; background: #f8fafc; color: #2563EB; font-weight: 600;
  text-decoration: none; font-size: 0.88rem; transition: all 0.2s; border: 1px solid #e2e8f0;
}
.guide-card-cta:hover { background: #eff6ff; border-color: #93c5fd; }

/* ── Inspiration Cross-link ── */
.inspiration-section { max-width: 860px; margin: 0 auto; padding: 0 2rem 4rem; }
.inspiration-card {
  background: linear-gradient(135deg, #0f172a, #1e3a5f); border-radius: 20px;
  padding: 3rem; display: flex; align-items: center; gap: 2.5rem; overflow: hidden; position: relative;
}
.inspiration-card::after {
  content: ''; position: absolute; top: -50%; right: -20%; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
}
.inspiration-text { flex: 1; position: relative; z-index: 2; }
.inspiration-text h3 { font-size: 1.4rem; font-weight: 700; color: white; margin-bottom: 0.5rem; }
.inspiration-text p { font-size: 1rem; color: rgba(255,255,255,0.65); margin-bottom: 1.5rem; line-height: 1.6; }
.inspiration-text a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.75rem 1.75rem; background: white; color: #1e40af;
  font-weight: 700; text-decoration: none; border-radius: 10px; transition: all 0.2s;
}
.inspiration-text a:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.inspiration-visual { font-size: 4rem; position: relative; z-index: 2; }

/* ── FAQ ── */
.faq-section { max-width: 760px; margin: 0 auto; padding: 0 2rem 4rem; }
.faq-section .section-header { margin-bottom: 2rem; }
.faq-item { margin-bottom: 0.6rem; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; background: white; transition: all 0.2s; }
.faq-item.active { border-color: #93c5fd; box-shadow: 0 2px 12px rgba(37,99,235,0.06); }
.faq-question {
  padding: 1.25rem 1.5rem; cursor: pointer; display: flex;
  align-items: center; justify-content: space-between; font-weight: 600;
  font-size: 0.95rem; color: #1e293b; transition: all 0.2s;
}
.faq-item.active .faq-question { color: #2563EB; }
.faq-question:hover { background: #fafbfc; }
.faq-toggle { font-size: 1rem; color: #94a3b8; transition: transform 0.25s; }
.faq-item.active .faq-toggle { transform: rotate(180deg); color: #2563EB; }
.faq-answer { padding: 0 1.5rem; color: #64748b; line-height: 1.7; font-size: 0.93rem; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.active .faq-answer { max-height: 500px; padding: 0 1.5rem 1.25rem; }

/* ── Final CTA ── */
.final-cta { max-width: 860px; margin: 0 auto; padding: 0 2rem 4rem; }
.cta-box {
  background: linear-gradient(135deg, #2563EB, #1d4ed8); border-radius: 20px;
  padding: 3.5rem 2.5rem; text-align: center; color: white; position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; top: -50%; right: -30%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
}
.cta-box h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.6rem; position: relative; z-index: 2; }
.cta-box p { font-size: 1.05rem; opacity: 0.9; margin-bottom: 1.75rem; position: relative; z-index: 2; }
.cta-box a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.9rem 2.25rem; border-radius: 12px; background: white; color: #1e40af;
  font-weight: 700; text-decoration: none; font-size: 1rem; transition: all 0.2s;
  position: relative; z-index: 2;
}
.cta-box a:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

/* ── Footer ── */
.footer { text-align: center; padding: 2rem; color: #94a3b8; font-size: 0.85rem; border-top: 1px solid #e5e7eb; background: white; }

/* ── Sticky Mobile CTA ── */
.sticky-mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: white; border-top: 1px solid #e5e7eb; box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  padding: 0.75rem 1.5rem;
}
.sticky-mobile-cta a {
  display: block; padding: 0.85rem; border-radius: 12px;
  background: linear-gradient(135deg, #2563EB, #1d4ed8);
  color: white; font-weight: 700; text-decoration: none; text-align: center;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  /* 8rem top giver plads til fixed navbar (60px) + ekstra luft til hero-pill */
  .price-hero { padding: 8rem 1.5rem 3rem; }
  .price-hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 1.5rem; padding: 1rem; }
  .progress-step span:not(.num) { display: none; }
  .calc-inner { padding: 1.5rem; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .price-compare { grid-template-columns: 1fr; }
  .breakdown-grid { grid-template-columns: repeat(2, 1fr); }
  .result-actions { flex-direction: column; }
  .guide-grid { grid-template-columns: 1fr; }
  .inspiration-card { flex-direction: column; text-align: center; padding: 2rem; }
  .inspiration-visual { order: -1; }
  .sticky-mobile-cta { display: block; }
  body { padding-bottom: 70px; }
}
@media (max-width: 500px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
