/* sales.css — Prisside, tilbudsformular (MM Systems). Bygger på style.css-variablerne. */
.muted { color: var(--text-muted); }
.small { font-size: 0.85rem; }
.good { color: #15803d; }
.price-intro { text-align: center; max-width: 760px; margin: 0 auto 28px; color: var(--text-muted); }

/* Produktfaner */
.price-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 32px; }
.price-tab { border: 1.5px solid var(--border); background: #fff; color: var(--navy); border-radius: 50px; padding: 11px 22px; font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: all var(--transition); font-family: inherit; }
.price-tab:hover { border-color: var(--orange); color: var(--orange); }
.price-tab.active { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: var(--shadow-hover); }

/* Layout */
.price-panel { display: none; }
.price-panel.active { display: block; }
.price-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr); gap: 28px; align-items: start; }
.price-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.price-card h2 { font-size: 1.6rem; color: var(--navy); margin-bottom: 4px; }
.price-card .tagline { color: var(--orange); font-weight: 600; margin-bottom: 12px; }
.price-card .desc { color: var(--text-muted); margin-bottom: 18px; }
.base-price { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 16px; }
.base-price .amt { font-size: 2.1rem; font-weight: 800; color: var(--navy); }
.base-price .per { color: var(--text-muted); }
.includes h4, .modules h4, .tier-select h4 { font-size: 0.95rem; color: var(--navy); margin: 18px 0 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.includes li { position: relative; padding-left: 26px; margin-bottom: 6px; color: var(--text); }
.includes li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #15803d; font-weight: 700; }

/* Betaling + trin */
.billing-toggle { display: inline-flex; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 50px; padding: 4px; margin: 6px 0 14px; }
.billing-toggle button { border: 0; background: transparent; padding: 9px 18px; border-radius: 50px; font-weight: 600; cursor: pointer; color: var(--text-muted); font-family: inherit; font-size: 0.92rem; }
.billing-toggle button.active { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.billing-toggle .pill { display: inline-block; background: #DCFCE7; color: #15803d; font-size: 0.72rem; padding: 2px 8px; border-radius: 50px; margin-left: 6px; font-weight: 700; }
.tier-select select { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: 0.95rem; background: #fff; color: var(--text); }
.tier-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 6px; }
.tier-note a { color: var(--orange); font-weight: 600; }

/* Moduler */
.module-list { display: grid; gap: 10px; }
.module { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: start; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.module:hover { border-color: var(--orange); }
.module.checked { border-color: var(--orange); background: var(--orange-light); }
.module input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--orange); }
.module .m-name { font-weight: 600; color: var(--navy); }
.module .m-desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }
.module .m-price { font-weight: 700; color: var(--navy); white-space: nowrap; }
.module .m-price span { font-weight: 400; color: var(--text-muted); font-size: 0.85rem; }
.module.bundle { border-style: dashed; border-color: var(--orange); background: linear-gradient(135deg, #fff, var(--orange-light)); }
.module.bundle.checked { border-style: solid; }
.module.bundle .m-save { display: inline-block; margin-top: 6px; background: #DCFCE7; color: #15803d; border-radius: 50px; padding: 2px 10px; font-size: 0.78rem; font-weight: 700; }
.module.disabled { opacity: 0.55; cursor: default; }
.module.disabled:hover { border-color: var(--border); }

/* Oversigt / summary */
.summary { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 92px; }
.summary h3 { font-size: 1.1rem; margin-bottom: 14px; }
.summary .muted { color: rgba(255,255,255,0.65); }
.summary .good { color: #86efac; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 0.93rem; }
.sum-amt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum-lines { border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 6px; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; font-size: 1.15rem; font-weight: 700; }
.sum-year { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 10px 12px; margin: 6px 0 10px; }
.sum-year.is-active { border-color: #86efac; background: rgba(134,239,172,0.08); }
.sum-note { font-size: 0.8rem; color: rgba(255,255,255,0.75); margin-top: 6px; }
.sum-chosen { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 8px; }
.sum-grand { font-size: 1.05rem; font-weight: 800; }
.sum-disclaimer { font-size: 0.75rem; color: rgba(255,255,255,0.6); margin-top: 12px; }
.summary .actions { display: grid; gap: 10px; margin-top: 16px; }
.summary .btn-primary { width: 100%; }
.summary .btn-reset { background: transparent; border: 0; color: rgba(255,255,255,0.75); cursor: pointer; font-family: inherit; font-size: 0.9rem; text-decoration: underline; }
.summary .hint { background: #fff7ed; color: #9a3412; border-radius: var(--radius); padding: 10px 12px; font-size: 0.85rem; margin-top: 10px; }

/* Sammenligning */
.compare { margin-top: 36px; }
.compare h3 { font-size: 1.3rem; color: var(--navy); margin-bottom: 14px; }
.compare-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cmp { border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 20px; background: #fff; display: flex; flex-direction: column; }
.cmp.best { border-color: var(--orange); box-shadow: var(--shadow-hover); }
.cmp .tag { display: inline-block; align-self: flex-start; background: var(--orange); color: #fff; font-size: 0.72rem; font-weight: 700; border-radius: 50px; padding: 3px 10px; margin-bottom: 8px; }
.cmp h4 { color: var(--navy); font-size: 1.05rem; margin-bottom: 8px; }
.cmp .cmp-price { font-size: 1.6rem; font-weight: 800; color: var(--navy); }
.cmp .cmp-price span { font-size: 0.85rem; font-weight: 500; color: var(--text-muted); }
.cmp .cmp-year { color: var(--text-muted); font-size: 0.9rem; margin: 4px 0 10px; }
.cmp dl { font-size: 0.86rem; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin-bottom: 10px; }
.cmp dt { color: var(--text-muted); } .cmp dd { text-align: right; font-weight: 600; }
.cmp ul { font-size: 0.85rem; color: var(--text); margin-bottom: 12px; flex: 1; }
.cmp li { padding-left: 18px; position: relative; margin-bottom: 3px; }
.cmp li::before { content: "•"; position: absolute; left: 4px; color: var(--orange); }
.cmp .btn { padding: 10px 18px; font-size: 0.9rem; }

/* Fejl/indlæsning */
.price-loading, .price-error { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.price-error { color: #b91c1c; }

/* Tilbudsformular */
.quote-grid { display: grid; grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.quote-summary { background: var(--navy); color: #fff; border-radius: var(--radius-lg); padding: 24px; }
.quote-summary h3 { font-size: 1.1rem; margin-bottom: 4px; }
.quote-summary .muted { color: rgba(255,255,255,0.65); }
.quote-summary .good { color: #86efac; }
.quote-summary a.edit { color: #93c5fd; font-size: 0.9rem; }
.quote-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.quote-form h2 { color: var(--navy); font-size: 1.4rem; margin-bottom: 6px; }
.quote-form .lead { color: var(--text-muted); margin-bottom: 18px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--text); margin: 6px 0 14px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--orange); }
.consent a { color: var(--orange); font-weight: 600; }
.form-error { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius); padding: 12px 14px; margin-top: 12px; font-size: 0.93rem; }
.quote-success { text-align: center; padding: 40px 24px; background: #fff; border: 1px solid #86EFAC; border-radius: var(--radius-lg); }
.quote-success .ref { display: inline-block; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 50px; padding: 6px 16px; font-weight: 700; color: var(--navy); margin: 10px 0; }
.quote-success h2 { color: #166534; margin-bottom: 8px; }
.quote-empty { text-align: center; padding: 60px 20px; }

@media (max-width: 960px) {
  .price-grid, .quote-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .compare-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .price-card, .quote-form { padding: 20px; }
  .module { grid-template-columns: 22px 1fr; }
  .module .m-price { grid-column: 2; }
  .base-price .amt { font-size: 1.8rem; }
}
