/* ═══════════════════════════════════════════════════
   ASG CARE Drivlinjeforsikring Beregner – Wizard CSS
   Brand: Navy #1a4a6b · Teal #2a9d8f · White #ffffff
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display&display=swap');

:root {
    --asg-navy:     #1d244a;
    --asg-navy-d:   #151b38;
    --asg-teal:     #5fcecf;
    --asg-teal-l:   #168c8e;
    --asg-teal-bg:  #edfafa;
    --asg-bg:       #f3f5f8;
    --asg-white:    #ffffff;
    --asg-border:   #d8e0ed;
    --asg-text:     #1d244a;
    --asg-muted:    #6b7a9e;
    --asg-error:    #e05252;
    --asg-success:  #27ae60;
    --asg-radius:   12px;
    --asg-shadow:   0 4px 24px rgba(29,36,74,.10);
    --asg-shadow-l: 0 2px 10px rgba(29,36,74,.07);
    --asg-font:     'DM Sans', system-ui, sans-serif;
}

/* ─── CONTAINER ─────────────────────────────────────── */
.asgcare-wizard {
    font-family: var(--asg-font);
    color: var(--asg-text);
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px 48px;
}

/* ─── STEP INDICATOR ────────────────────────────────── */
.asw-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 32px 0 40px;
}
.asw-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.asw-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--asg-border);
    color: var(--asg-muted);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
}
.asw-step.active .asw-step-num {
    background: var(--asg-navy);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(26,74,107,.15);
}
.asw-step.done .asw-step-num {
    background: var(--asg-teal);
    color: #fff;
}
.asw-step span {
    font-size: 12px;
    font-weight: 600;
    color: var(--asg-muted);
    text-transform: uppercase;
    letter-spacing: .6px;
    white-space: nowrap;
}
.asw-step.active span,
.asw-step.done span { color: var(--asg-navy); }
.asw-step-line {
    flex: 1;
    height: 2px;
    background: var(--asg-border);
    margin: 0 12px;
    margin-bottom: 20px;
    max-width: 80px;
    transition: background .3s;
}
.asw-step-line.done { background: var(--asg-teal); }

/* ─── PANELS ─────────────────────────────────────────── */
.asw-panel {
    background: var(--asg-white);
    border-radius: var(--asg-radius);
    box-shadow: var(--asg-shadow);
    padding: 36px 40px;
    border: 1px solid var(--asg-border);
    animation: aswFadeIn .35s ease;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}
@keyframes aswFadeIn {
    from { opacity:0; transform:translateY(12px); }
    to   { opacity:1; transform:translateY(0); }
}

.asw-panel-title {
    font-family: var(--asg-font);
    font-size: 26px;
    font-weight: 700;
    color: var(--asg-navy);
    margin: 0 0 6px;
    line-height: 1.2;
    text-transform: none !important;
    font-variant: normal !important;
    font-variant-caps: normal !important;
    text-rendering: auto !important;
}

/* Sørg for at ingen child-elementer arver capitalize fra tema */
.asgcare-wizard h1,
.asgcare-wizard h2,
.asgcare-wizard h3,
.asgcare-wizard h4 {
    text-transform: none !important;
    font-variant: normal !important;
    font-variant-caps: normal !important;
}
.asw-panel-sub {
    color: var(--asg-muted);
    font-size: 15px;
    margin: 0 0 28px;
    line-height: 1.5;
}

/* ─── OWNERSHIP TOGGLE ───────────────────────────────── */
.asw-ownership-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}
.asw-toggle-btn {
    border: 2px solid var(--asg-border);
    background: var(--asg-white);
    border-radius: 10px;
    padding: 16px 20px;
    cursor: pointer;
    font-family: var(--asg-font);
    font-size: 15px;
    font-weight: 600;
    color: var(--asg-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all .25s ease;
    text-align: center;
    text-transform: none;
}
.asw-toggle-btn:hover {
    border-color: var(--asg-navy);
    color: var(--asg-navy);
    background: var(--asg-bg);
}
.asw-toggle-btn.active {
    border-color: var(--asg-navy);
    background: var(--asg-navy);
    color: #fff;
    box-shadow: 0 4px 16px rgba(26,74,107,.25);
}
.asw-toggle-icon { font-size: 22px; }

/* ─── FORM FIELDS ────────────────────────────────────── */
.asw-field-group {
    margin-bottom: 20px;
}
.asw-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--asg-navy);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.asw-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--asg-border);
    border-radius: 8px;
    font-family: var(--asg-font);
    font-size: 15px;
    color: var(--asg-text);
    background: var(--asg-white);
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.asw-input:focus {
    outline: none;
    border-color: var(--asg-teal);
    box-shadow: 0 0 0 3px rgba(42,157,143,.15);
}
.asw-input.error {
    border-color: var(--asg-error);
    box-shadow: 0 0 0 3px rgba(224,82,82,.12);
}
.asw-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b8093' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.asw-input-suffix-wrap {
    position: relative;
}
.asw-input-suffix {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    color: var(--asg-muted);
    pointer-events: none;
}
.asw-input-suffix-wrap .asw-input { padding-right: 42px; }

.asw-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ─── NUMMERPLADE ────────────────────────────────────── */
.asw-reg-wrap {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.asw-reg-input-wrap {
    position: relative;
    flex: 1;
}
.asw-dk-flag {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 46px;
    background: #003580;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px 0 0 8px;
    user-select: none;
}
.asw-reg-input {
    padding-left: 58px !important;
    font-size: 18px !important;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.asw-lookup-btn {
    background: var(--asg-navy);
    color: #fff;
    border: none;
    border-radius: 8px;
    text-transform: none;
    padding: 12px 20px;
    font-family: var(--asg-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.asw-lookup-btn:hover { background: var(--asg-navy-d); }
.asw-lookup-btn:disabled { background: var(--asg-muted); cursor: not-allowed; }

.asw-spinner { display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.asw-lookup-result {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    min-height: 20px;
}
.asw-lookup-result.error { color: var(--asg-error); }
.asw-lookup-result.success { color: var(--asg-success); }
.asw-lookup-result.loading { color: var(--asg-muted); }

/* ─── BIL KORT ───────────────────────────────────────── */
.asw-car-card {
    background: linear-gradient(135deg, var(--asg-navy) 0%, var(--asg-navy-d) 100%);
    color: #fff;
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 12px 0 20px;
    animation: aswFadeIn .3s ease;
}
.asw-car-card-icon { font-size: 28px; }
.asw-car-card-name {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 4px;
}
.asw-car-card-details {
    font-size: 13px;
    opacity: .75;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.asw-dot { opacity: .4; }

/* ─── CONSENT ────────────────────────────────────────── */
.asw-consent { margin: 20px 0 28px; }
.asw-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: var(--asg-muted);
    cursor: pointer;
    line-height: 1.5;
}
.asw-checkbox-label a { color: var(--asg-teal); }
.asw-checkbox { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; accent-color: var(--asg-teal); cursor: pointer; }

/* ─── ACTIONS ────────────────────────────────────────── */
.asw-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid var(--asg-border);
}
.asw-btn-primary {
    background: var(--asg-teal);
    color: #fff;
    border: none;
    border-radius: 8px;
    text-transform: none;
    padding: 14px 28px;
    font-family: var(--asg-font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all .25s ease;
    text-decoration: none;
}
.asw-btn-primary:hover {
    background: #168c8e;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(22,140,142,.3);
}
.asw-btn-ghost {
    background: transparent;
    color: var(--asg-muted);
    border: 1.5px solid var(--asg-border);
    border-radius: 8px;
    padding: 13px 22px;
    font-family: var(--asg-font);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}
.asw-btn-ghost:hover { border-color: var(--asg-navy); color: var(--asg-navy); }
.asw-btn-arrow { font-size: 16px; transition: transform .2s; }
.asw-btn-primary:hover .asw-btn-arrow { transform: translateX(3px); }

/* ─── TILBUD – HEADER ────────────────────────────────── */
.asw-offer-header {
    text-align: center;
    margin-bottom: 32px;
}
.asw-offer-check {
    width: 56px;
    height: 56px;
    background: var(--asg-teal);
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 4px 20px rgba(42,157,143,.35);
}

/* ─── PERIODE TABS ───────────────────────────────────── */
.asw-period-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-bottom: 20px;
    background: var(--asg-bg);
    border-radius: 10px;
    padding: 5px;
    width: 100%;
    box-sizing: border-box;
}
.asw-period-tab {
    background: transparent;
    border: none;
    border-radius: 7px;
    padding: 10px 4px;
    font-family: var(--asg-font);
    font-size: 13px;
    font-weight: 700;
    color: var(--asg-muted);
    cursor: pointer;
    transition: all .2s;
    white-space: normal;
    word-break: keep-all;
    min-width: 0;
    width: 100%;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -.2px;
}
.asw-period-tab.active {
    background: var(--asg-navy);
    color: #fff;
    box-shadow: 0 2px 8px rgba(26,74,107,.2);
}
.asw-period-tab:hover:not(.active) { color: var(--asg-navy); }

/* ─── PRIS KORT ──────────────────────────────────────── */
.asw-price-card {
    background: linear-gradient(135deg, var(--asg-navy) 0%, #1d5a80 100%);
    color: #fff;
    border-radius: 14px;
    padding: 32px;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}
.asw-price-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 140px; height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
}
.asw-price-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 20px;
}
.asw-price-main {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}
.asw-price-amount {
    font-family: var(--asg-font);
    font-size: 60px;
    line-height: 1;
    font-weight: 700;
}
.asw-price-currency {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
    opacity: .85;
}
.asw-price-period-label {
    font-size: 14px;
    opacity: .7;
    margin-bottom: 16px;
}
.asw-price-coverage {
    font-size: 13px;
    opacity: .75;
    background: rgba(255,255,255,.1);
    border-radius: 6px;
    padding: 8px 16px;
    display: inline-block;
}

/* ─── BATTERI TILLÆG ─────────────────────────────────── */
.asw-batteri-card {
    background: var(--asg-teal-bg);
    border: 1.5px solid rgba(42,157,143,.3);
    border-radius: 10px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.asw-batteri-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.asw-batteri-icon { font-size: 24px; }
.asw-batteri-left strong { font-size: 14px; font-weight: 700; color: var(--asg-navy); display: block; }
.asw-batteri-left p { font-size: 12px; color: var(--asg-muted); margin: 2px 0 0; }
.asw-batteri-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
.asw-batteri-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--asg-teal);
}

/* Toggle switch */
.asw-toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.asw-toggle-switch input { opacity: 0; width: 0; height: 0; }
.asw-toggle-slider {
    position: absolute; cursor: pointer;
    inset: 0;
    background: #cdd8df;
    border-radius: 24px;
    transition: .3s;
}
.asw-toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: .3s;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.asw-toggle-switch input:checked + .asw-toggle-slider { background: var(--asg-teal); }
.asw-toggle-switch input:checked + .asw-toggle-slider::before { transform: translateX(20px); }

/* ─── TOTAL ──────────────────────────────────────────── */
.asw-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--asg-bg);
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--asg-navy);
    margin-bottom: 24px;
}
.asw-total-price { font-size: 20px; font-weight: 700; }

/* ─── CTA ────────────────────────────────────────────── */
.asw-offer-cta { text-align: center; }
.asw-btn-cta {
    background: var(--asg-teal);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 16px 36px;
    font-family: var(--asg-font);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all .25s ease;
    letter-spacing: .3px;
    text-transform: none;
}
.asw-btn-cta:hover {
    background: #168c8e;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(22,140,142,.35);
}
.asw-btn-cta:disabled { background: var(--asg-muted); cursor: not-allowed; transform: none; box-shadow: none; }
.asw-offer-disclaimer {
    font-size: 12px;
    color: var(--asg-muted);
    margin-top: 10px;
}

/* ─── NOT ELIGIBLE ───────────────────────────────────── */
.asw-not-eligible {
    background: #fff8f0;
    border: 1.5px solid #f0c060;
    border-radius: 10px;
    padding: 24px;
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}
.asw-not-eligible-icon { font-size: 28px; flex-shrink: 0; }
.asw-not-eligible strong { font-size: 16px; color: var(--asg-navy); display: block; margin-bottom: 6px; }
.asw-not-eligible p { font-size: 14px; color: var(--asg-muted); margin: 0 0 6px; }

/* ─── SUCCESS ────────────────────────────────────────── */
.asw-offer-success {
    text-align: center;
    padding: 20px;
    animation: aswFadeIn .4s ease;
}
.asw-success-icon {
    width: 64px; height: 64px;
    background: var(--asg-success);
    color: #fff;
    border-radius: 50%;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.asw-offer-success h3 { font-size: 22px; color: var(--asg-navy); margin: 0 0 8px; }
.asw-offer-success p  { color: var(--asg-muted); font-size: 15px; margin: 0 0 6px; }
.asw-offer-success a  { color: var(--asg-teal); font-weight: 600; text-decoration: none; }


/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 600px) {
    /* Panel */
    .asw-panel { padding: 20px 16px; }
    .asw-panel-title { font-size: 21px; }

    /* Step indicator */
    .asw-steps { padding: 16px 0 24px; }
    .asw-step span { font-size: 10px; }
    .asw-step-line { max-width: 32px; }
    .asw-step-num { width: 30px; height: 30px; font-size: 13px; }

    /* Grid: altid én kolonne */
    .asw-grid-2 { grid-template-columns: 1fr; gap: 0; }

    /* Ownership toggle */
    .asw-ownership-toggle { grid-template-columns: 1fr 1fr; gap: 8px; }
    .asw-toggle-btn {
        padding: 10px 6px;
        font-size: 12px;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 5px;
        white-space: normal;
        word-break: keep-all;
        overflow: visible;
        min-width: 0;
    }
    .asw-toggle-icon { font-size: 15px; flex-shrink: 0; }

    /* Nummerplade */
    .asw-reg-wrap { flex-direction: column; }
    .asw-lookup-btn { width: 100%; justify-content: center; }

    /* Periode-tabs */
    .asw-period-tabs {
        grid-template-columns: 1fr 1fr 1fr;
        padding: 4px;
        gap: 3px;
    }
    .asw-period-tab {
        font-size: 11px;
        padding: 8px 2px;
        letter-spacing: 0;
        white-space: normal;
    }

    /* Pris-kort */
    .asw-price-amount { font-size: 42px; }
    .asw-price-card { padding: 24px 20px; }

    /* Batteri-kort */
    .asw-batteri-card { flex-direction: column; align-items: flex-start; gap: 12px; }
    .asw-batteri-right { flex-direction: row; align-items: center; gap: 12px; }

    /* Actions-knapper: stack vertikalt */
    .asw-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .asw-btn-primary,
    .asw-btn-ghost { width: 100%; justify-content: center; text-align: center; }
    .asw-btn-cta { width: 100%; }
}

/* ─── FIELD HINT ─────────────────────────────────────── */
.asw-field-hint {
    font-size: 12px;
    color: var(--asg-muted);
    margin: 5px 0 0;
    font-style: italic;
}

/* ─── CONSENT FEJL ───────────────────────────────────── */
.asw-consent-error {
    display: none;
    align-items: center;
    gap: 8px;
    background: #fff5f5;
    border: 1.5px solid var(--asg-error);
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--asg-error);
}
.asw-consent.has-error .asw-checkbox-label { color: var(--asg-error); }
.asw-consent.has-error .asw-checkbox { outline: 2px solid var(--asg-error); border-radius: 3px; }

/* ─── RECAP BAR (step 3 top) ─────────────────────────── */
.asw-recap-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--asg-navy);
    color: #fff;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 24px;
}
.asw-recap-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.asw-recap-label {
    font-size: 14px;
    font-weight: 700;
}
.asw-recap-period {
    font-size: 12px;
    opacity: .7;
}
.asw-recap-price {
    font-family: var(--asg-font);
    font-size: 22px;
    font-weight: 700;
}
