/* --- START PÅ ASBEST BEREGNER CSS --- */

/* 1. Container og generel opsætning */
.asb-calculator-wrapper {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    max-width: 500px;
    margin: 20px auto;
    padding: 30px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    box-sizing: border-box;
}

.asb-calculator-wrapper * {
    box-sizing: border-box; /* Sikrer at padding ikke ødelægger bredden */
}

/* 2. Progress Bar */
.asb-progress-container {
    background-color: #f3f4f6;
    border-radius: 5px;
    height: 8px;
    margin-bottom: 25px;
    overflow: hidden;
}

.asb-progress-bar {
    background-color: #27ae60; /* Grøn fremskridtsfarve */
    height: 100%;
    width: 25%;
    transition: width 0.4s ease;
}

/* 3. Steps Animation og Logik */
.asb-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}
.asb-step.active-step {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 4. Typografi */
.asb-calculator-wrapper h3 {
    margin-top: 0;
    color: #111827;
    font-size: 1.4rem;
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.2;
}
.asb-calculator-wrapper p {
    color: #6b7280;
    text-align: center;
    margin-bottom: 25px;
    margin-top: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* 5. Input felter */
.asb-input-group {
    position: relative;
    margin-bottom: 25px;
}
.asb-input-group input {
    width: 100%;
    padding: 15px;
    padding-right: 40px;
    font-size: 18px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    transition: border-color 0.2s;
    background: #fff;
    color: #333;
}
.asb-input-group input:focus {
    border-color: #27ae60;
    outline: none;
}
.asb-input-group .unit {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-weight: bold;
}

/* 6. Radio Kort (Valgmuligheder) */
.asb-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
}
.asb-radio-card {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}
.asb-radio-card:hover {
    border-color: #27ae60;
    background-color: #f9fafb;
}
.asb-radio-card input {
    margin-right: 15px;
    transform: scale(1.2);
    accent-color: #27ae60;
    flex-shrink: 0; /* Sikrer at radio knappen ikke bliver klemt */
}
.radio-title {
    display: block;
    font-weight: bold;
    color: #374151;
    font-size: 1rem;
}
.radio-desc {
    font-size: 0.85rem;
    color: #6b7280;
    display: block;
    margin-top: 2px;
}
/* Style når valgt */
.asb-radio-card input:checked + .radio-content .radio-title {
    color: #166534;
}
.asb-radio-card:has(input:checked) {
    border-color: #27ae60;
    background-color: #f0fdf4;
}

/* 7. Navigations Knapper */
.asb-btn-next, .asb-btn-prev {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.asb-btn-next {
    background-color: #1f2937;
    color: white;
}
.asb-btn-next:hover {
    background-color: #111827;
    transform: translateY(-1px);
}

.asb-btn-prev {
    background-color: white;
    color: #4b5563;
    border: 1px solid #d1d5db;
}
.asb-btn-prev:hover {
    background-color: #f9fafb;
}
.asb-btn-row {
    display: flex;
    gap: 10px;
}

/* 8. Resultat Boks */
.asb-price-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}
.price-label {
    display: block;
    font-size: 0.9rem;
    color: #166534;
    margin-bottom: 5px;
    font-weight: 600;
}
.price-amount {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #15803d;
    line-height: 1.2;
}
.price-note {
    display: block;
    font-size: 0.75rem;
    color: #166534;
    margin-top: 8px;
}

/* 9. CTA Boks (Orange) */
.asb-cta-box {
    background: #fff7ed;
    border: 1px solid #ffedd5;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}
.asb-cta-box h4 {
    margin-top: 0;
    color: #c2410c;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* 10. Bullets med SVG Ikoner */
.asb-bullets {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 15px 0 25px 0;
    display: inline-block;
    max-width: 100%;
}

.asb-bullets li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start; /* Vigtigt: Ikon bliver i toppen ved lang tekst */
    line-height: 1.4;
    gap: 12px; /* Afstand mellem ikon og tekst */
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px; /* Fast bredde så de står lige */
    height: 24px;
    color: #27ae60; /* Den professionelle grønne farve */
}

.check-icon svg {
    width: 100%;
    height: 100%;
}

/* 11. CTA Knap (Med override af tema-farver) */
.asb-cta-button {
    background-color: #ea580c;
    color: #ffffff !important; /* TVINGER hvid tekst */
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(234, 88, 12, 0.2);
    text-decoration: none !important;
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
}

.asb-cta-button:hover {
    background-color: #c2410c;
    color: #ffffff !important; /* Sikrer hvid tekst ved hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(234, 88, 12, 0.25);
}

/* 12. Start Forfra Link */
.asb-link-reset {
    background: none;
    border: none;
    color: #9ca3af;
    text-decoration: underline;
    font-size: 0.85rem;
    margin-top: 20px;
    cursor: pointer;
    width: 100%;
}
.asb-link-reset:hover {
    color: #6b7280;
}

/* 13. Mobil Justeringer */
@media (max-width: 480px) {
    .asb-calculator-wrapper {
        padding: 20px 15px;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #eee;
    }
    .price-amount {
        font-size: 1.8rem;
    }
    .asb-btn-row {
        flex-direction: column-reverse;
    }
}
/* --- SLUT PÅ ASBEST BEREGNER CSS --- */