/* ============================================================
   Internet Behovsberegner — Calculator Styles
   Speedtest.dk © 2026
   ============================================================ */

/* ---------- Hide static feed when calculator is present ---------- */
body:has(#internet-beregner) .bbf-feed {
    display: none !important;
}

/* ---------- CSS Custom Properties ---------- */
:root {
    --ib-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Dark Mode Theme Variables */
    --ib-bg-primary: #090d16;
    --ib-bg-secondary: #0f172a;
    --ib-bg-card: rgba(255, 255, 255, 0.02);
    --ib-bg-card-hover: rgba(255, 255, 255, 0.04);
    --ib-bg-card-active: rgba(99, 102, 241, 0.08);
    --ib-border: rgba(255, 255, 255, 0.06);
    --ib-border-hover: rgba(255, 255, 255, 0.12);
    --ib-border-active: rgba(99, 102, 241, 0.45);
    --ib-text-primary: #f8fafc;
    --ib-text-secondary: #cbd5e1;
    --ib-text-muted: #64748b;
    --ib-accent: #6366f1;
    --ib-accent-glow: rgba(99, 102, 241, 0.25);
    --ib-accent-2: #06b6d4;
    --ib-accent-2-glow: rgba(6, 182, 212, 0.25);
    --ib-success: #10b981;
    --ib-success-glow: rgba(16, 185, 129, 0.2);
    --ib-warning: #f59e0b;
    --ib-gradient-1: linear-gradient(135deg, #4f46e5, #06b6d4);
    --ib-gradient-2: linear-gradient(135deg, #10b981, #06b6d4);
    --ib-gradient-3: linear-gradient(135deg, #f59e0b, #ef4444);
    --ib-radius: 20px;
    --ib-radius-sm: 14px;
    --ib-radius-xs: 10px;
    --ib-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    --ib-shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
    --ib-transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Light Theme Overrides ---------- */
.ib-light {
    --ib-bg-primary: #ffffff;
    --ib-bg-secondary: #f8fafc;
    --ib-bg-card: rgba(15, 23, 42, 0.02);
    --ib-bg-card-hover: rgba(15, 23, 42, 0.04);
    --ib-bg-card-active: rgba(79, 70, 229, 0.05);
    --ib-border: rgba(15, 23, 42, 0.08);
    --ib-border-hover: rgba(15, 23, 42, 0.15);
    --ib-border-active: rgba(79, 70, 229, 0.45);
    --ib-text-primary: #0f172a;
    --ib-text-secondary: #475569;
    --ib-text-muted: #64748b;
    --ib-accent: #4f46e5;
    --ib-accent-glow: rgba(79, 70, 229, 0.15);
    --ib-accent-2: #0891b2;
    --ib-accent-2-glow: rgba(8, 145, 178, 0.15);
    --ib-success: #059669;
    --ib-success-glow: rgba(5, 150, 105, 0.15);
    --ib-warning: #d97706;
    --ib-gradient-1: linear-gradient(135deg, #4f46e5, #0891b2);
    --ib-gradient-2: linear-gradient(135deg, #059669, #3b82f6);
    --ib-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
    --ib-shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.06);
}

/* ---------- Widget Container ---------- */
.ib-widget {
    font-family: var(--ib-font);
    background: var(--ib-bg-primary);
    color: var(--ib-text-primary);
    border-radius: var(--ib-radius);
    max-width: 680px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    box-shadow: var(--ib-shadow-lg);
    border: 1px solid var(--ib-border);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s, border-color 0.3s;
}

.ib-widget * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ---------- Ambient Background Glow ---------- */
.ib-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 15%, rgba(99, 102, 241, 0.06) 0%, transparent 40%),
                radial-gradient(circle at 90% 85%, rgba(6, 182, 212, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.ib-light.ib-widget::before {
    background: radial-gradient(circle at 10% 15%, rgba(99, 102, 241, 0.03) 0%, transparent 45%),
                radial-gradient(circle at 90% 85%, rgba(6, 182, 212, 0.02) 0%, transparent 45%);
}

.ib-widget > * {
    position: relative;
    z-index: 1;
}

/* ---------- Inner Container ---------- */
.ib-inner {
    padding: 44px 40px;
}

@media (max-width: 600px) {
    .ib-inner {
        padding: 32px 24px;
    }
}

/* ---------- Progress Bar ---------- */
.ib-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.03);
    overflow: visible;
    flex-shrink: 0;
}

.ib-light .ib-progress {
    background: rgba(0, 0, 0, 0.03);
}

.ib-progress-fill {
    height: 100%;
    background: var(--ib-gradient-1);
    box-shadow: 0 0 12px var(--ib-accent-glow);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

/* ---------- Step Counter ---------- */
.ib-step-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.ib-step-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ib-accent-2);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ib-step-count {
    font-size: 12px;
    color: var(--ib-text-muted);
    font-weight: 600;
}

/* ---------- Welcome Screen ---------- */
.ib-welcome {
    text-align: center;
    padding: 16px 0;
}

.ib-welcome-icon {
    font-size: 40px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1), inset 0 0 12px rgba(255, 255, 255, 0.05);
    animation: ib-welcome-pulse 3s infinite ease-in-out;
}

.ib-light .ib-welcome-icon {
    background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, rgba(8, 145, 178, 0.05) 100%);
    border-color: rgba(79, 70, 229, 0.15);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.05);
}

@keyframes ib-welcome-pulse {
    0%, 100% {
        transform: translateY(0) scale(1);
        box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1), inset 0 0 12px rgba(255, 255, 255, 0.05);
    }
    50% {
        transform: translateY(-6px) scale(1.03);
        box-shadow: 0 16px 40px rgba(99, 102, 241, 0.25), inset 0 0 20px rgba(6, 182, 212, 0.1);
        border-color: rgba(6, 182, 212, 0.3);
    }
}

.ib-welcome h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 40%, #c7d2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.ib-light .ib-welcome h2 {
    background: linear-gradient(135deg, #0f172a 40%, #4f46e5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ib-welcome p {
    font-size: 16px;
    color: var(--ib-text-secondary);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto 36px;
}

/* ---------- Buttons ---------- */
.ib-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--ib-gradient-1);
    background-size: 200% 100%;
    background-position: 0% 0%;
    color: #fff !important;
    border: none;
    border-radius: var(--ib-radius-sm);
    font-family: var(--ib-font);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ib-transition);
    box-shadow: 0 4px 20px var(--ib-accent-glow);
    position: relative;
    overflow: hidden;
}

.ib-btn-primary:hover {
    background-position: 100% 0%;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--ib-accent-glow), 0 0 15px var(--ib-accent-2-glow);
}

.ib-btn-primary span {
    transition: transform 0.25s ease;
}

.ib-btn-primary:hover span {
    transform: translateX(4px);
}

.ib-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px var(--ib-accent-glow);
}

.ib-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--ib-bg-card);
    color: var(--ib-text-secondary);
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius-sm);
    font-family: var(--ib-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ib-transition);
}

.ib-btn-secondary:hover {
    background: var(--ib-bg-card-hover);
    color: var(--ib-text-primary);
    border-color: var(--ib-border-hover);
    transform: translateY(-1px);
}

.ib-btn-secondary:active {
    transform: translateY(0);
}

/* ---------- Navigation ---------- */
.ib-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    gap: 12px;
}

.ib-nav-spacer {
    flex: 1;
}

/* ---------- Question Area ---------- */
.ib-question {
    animation: ib-slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes ib-slideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ib-question-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ib-text-primary);
}

.ib-question-subtitle {
    font-size: 14px;
    color: var(--ib-text-secondary);
    margin-bottom: 28px;
}

/* ---------- Option Cards ---------- */
.ib-options {
    display: grid;
    gap: 12px;
}

.ib-options.ib-grid-2 {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 500px) {
    .ib-options.ib-grid-2 {
        grid-template-columns: 1fr;
    }
}

.ib-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    background: var(--ib-bg-card);
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius-sm);
    cursor: pointer;
    transition: var(--ib-transition);
    user-select: none;
    position: relative;
    overflow: hidden;
}

.ib-option:hover {
    background: var(--ib-bg-card-hover);
    border-color: var(--ib-border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.ib-light .ib-option:hover {
    box-shadow: var(--ib-shadow);
}

.ib-option.active {
    background: var(--ib-bg-card-active);
    border-color: var(--ib-border-active);
    box-shadow: 0 0 0 1px var(--ib-border-active), 0 8px 24px var(--ib-accent-glow);
}

.ib-option-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--ib-radius-xs);
    transition: var(--ib-transition);
}

.ib-light .ib-option-icon {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.05);
}

.ib-option:hover .ib-option-icon {
    transform: scale(1.08);
    background: rgba(255, 255, 255, 0.06);
}

.ib-option.active .ib-option-icon {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.ib-light .ib-option.active .ib-option-icon {
    background: rgba(79, 70, 229, 0.1);
    border-color: rgba(79, 70, 229, 0.2);
}

.ib-option-text {
    flex: 1;
}

.ib-option-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--ib-text-primary);
    line-height: 1.3;
}

.ib-option-desc {
    font-size: 13px;
    color: var(--ib-text-muted);
    margin-top: 3px;
}

.ib-option-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ib-transition);
    font-size: 10px;
    font-weight: bold;
    color: transparent;
}

.ib-light .ib-option-check {
    border-color: rgba(15, 23, 42, 0.2);
}

.ib-option.active .ib-option-check {
    background: var(--ib-accent);
    border-color: var(--ib-accent);
    color: #fff;
}

/* Multi-select check square layout */
.ib-option.ib-multi .ib-option-check {
    border-radius: 6px;
}

/* ---------- Result Screen ---------- */
.ib-result {
    animation: ib-slideIn 0.5s ease both;
}

.ib-result-header {
    text-align: center;
    margin-bottom: 32px;
}

.ib-result-header h2 {
    font-size: 26px;
    font-weight: 850;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--ib-text-primary);
}

.ib-result-header p {
    color: var(--ib-text-secondary);
    font-size: 15px;
}

/* Speed Badge (Dashboard Gauge design) */
.ib-speed-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    padding: 32px 40px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius);
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.01), var(--ib-shadow);
    flex-wrap: wrap;
}

.ib-speed-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--ib-gradient-1);
}

.ib-light .ib-speed-badge {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.ib-speed-number {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ib-speed-value {
    font-size: 64px;
    font-weight: 850;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.ib-light .ib-speed-value {
    background: linear-gradient(135deg, #0f172a, #4f46e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ib-speed-unit {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--ib-accent-2);
    margin-top: 4px;
}

.ib-speed-divider {
    width: 1px;
    height: 70px;
    background: var(--ib-border);
}

.ib-type-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ib-type-icon {
    font-size: 32px;
    filter: drop-shadow(0 0 8px var(--ib-accent-glow));
}

.ib-type-label {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ib-text-primary);
}

.ib-type-desc {
    font-size: 13px;
    color: var(--ib-text-muted);
}

/* Reasons Checklist */
.ib-reasons {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.ib-reasons li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    background: var(--ib-bg-card);
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius-xs);
    font-size: 14.5px;
    color: var(--ib-text-secondary);
    line-height: 1.5;
}

.ib-reasons li .ib-reason-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* CTA Section above offers */
.ib-cta-section {
    text-align: center;
    margin-bottom: 20px;
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(6, 182, 212, 0.06));
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--ib-radius-sm);
}

.ib-cta-section p {
    font-size: 15px;
    color: var(--ib-text-secondary);
    margin-bottom: 0;
}

.ib-cta-section strong {
    color: var(--ib-text-primary);
}

/* ---------- Offers Grid & Card ---------- */
.ib-offers-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.ib-offer-card {
    background: var(--ib-bg-card) !important;
    border: 1px solid var(--ib-border) !important;
    border-radius: var(--ib-radius-sm) !important;
    padding: 24px !important;
    transition: var(--ib-transition) !important;
    animation: ib-offerSlideIn 0.4s ease both;
    position: relative;
    box-shadow: var(--ib-shadow);
}

@keyframes ib-offerSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ib-offer-card:hover {
    border-color: var(--ib-border-active) !important;
    background: var(--ib-bg-card-hover) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25) !important;
}

.ib-light .ib-offer-card:hover {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05) !important;
}

/* Highlight Best Match */
.ib-offer-card:first-child {
    border-color: rgba(99, 102, 241, 0.25) !important;
    background: radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
}

.ib-light .ib-offer-card:first-child {
    border-color: rgba(79, 70, 229, 0.25) !important;
    background: radial-gradient(circle at 100% 0%, rgba(79, 70, 229, 0.04) 0%, #ffffff 100%) !important;
}

.ib-offer-card:first-child:hover {
    border-color: rgba(99, 102, 241, 0.5) !important;
}

.ib-light .ib-offer-card:first-child:hover {
    border-color: rgba(79, 70, 229, 0.5) !important;
}

/* Ribbons / Badges */
.ib-offer-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--ib-gradient-1);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 0 0 10px 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.ib-offer-card:nth-child(2) .ib-offer-badge {
    background: var(--ib-gradient-2);
}

.ib-offer-card:nth-child(3) .ib-offer-badge {
    background: linear-gradient(135deg, #6366f1, #a855f7);
}

/* Offer Header */
.ib-offer-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.ib-offer-logo {
    width: 52px;
    height: 52px;
    border-radius: var(--ib-radius-xs);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ib-offer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.ib-offer-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 850;
    color: var(--ib-accent);
    background: rgba(99, 102, 241, 0.1);
}

.ib-offer-provider {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ib-offer-provider-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--ib-text-primary);
    letter-spacing: -0.01em;
}

.ib-offer-product {
    font-size: 13px;
    color: var(--ib-text-muted);
}

/* Speed & Price Details */
.ib-offer-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--ib-radius-xs);
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.ib-light .ib-offer-details {
    background: rgba(15, 23, 42, 0.01);
    border-color: rgba(15, 23, 42, 0.04);
}

.ib-offer-speed {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ib-offer-speed-icon {
    font-size: 16px;
    color: var(--ib-accent-2);
}

.ib-offer-speed-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--ib-text-primary);
}

.ib-offer-connection-type {
    font-size: 10px;
    font-weight: 700;
    color: var(--ib-accent);
    background: rgba(99, 102, 241, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ib-light .ib-offer-connection-type {
    background: rgba(79, 70, 229, 0.1);
}

.ib-offer-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.ib-offer-price-discount {
    font-size: 20px;
    font-weight: 800;
    color: var(--ib-success);
}

.ib-offer-price-original {
    font-size: 13px;
    color: var(--ib-text-muted);
    text-decoration: line-through;
}

.ib-offer-price-normal {
    font-size: 20px;
    font-weight: 800;
    color: var(--ib-text-primary);
}

.ib-offer-startup {
    font-size: 11px;
    color: var(--ib-text-muted);
}

/* Tags & Taglines */
.ib-offer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.ib-offer-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--ib-text-secondary);
    border: 1px solid var(--ib-border);
}

.ib-light .ib-offer-tag {
    background: rgba(15, 23, 42, 0.03);
}

.ib-offer-tag.ib-tag-highlight {
    background: rgba(16, 185, 129, 0.1);
    color: var(--ib-success);
    border-color: rgba(16, 185, 129, 0.2);
}

.ib-offer-tagline {
    font-size: 12.5px;
    color: var(--ib-text-muted);
    margin-bottom: 18px;
    font-style: italic;
}

/* CTA */
.ib-offer-cta {
    display: block;
    text-align: center;
    padding: 14px 20px;
    background: var(--ib-gradient-1);
    color: #fff !important;
    border-radius: var(--ib-radius-xs);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: var(--ib-transition);
    letter-spacing: 0.02em;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

.ib-offer-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--ib-accent-glow);
}

/* Restart Wrap */
.ib-restart-wrap {
    text-align: center;
    margin-top: 28px;
}

/* Powered By */
.ib-powered {
    text-align: center;
    padding: 16px 0 0;
    font-size: 11px;
    color: var(--ib-text-muted);
    opacity: 0.6;
}

/* Pulse animation */
@keyframes ib-pulse {
    0% { box-shadow: 0 0 0 0 var(--ib-accent-glow); }
    70% { box-shadow: 0 0 0 16px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.ib-btn-pulse {
    animation: ib-pulse 2.5s infinite;
}

/* ---------- Loading State ---------- */
.ib-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 20px;
    gap: 20px;
}

.ib-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(99, 102, 241, 0.1);
    border-top-color: var(--ib-accent-2);
    border-bottom-color: var(--ib-accent);
    border-radius: 50%;
    animation: ib-spin 1s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

@keyframes ib-spin {
    to { transform: rotate(360deg); }
}

.ib-loading p {
    font-size: 15px;
    font-weight: 500;
    color: var(--ib-text-secondary);
}

/* ---------- Forms & Inputs (Provider Step) ---------- */
.ib-form-group {
    margin-bottom: 24px;
}

.ib-form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ib-text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.ib-form-optional {
    font-weight: 400;
    color: var(--ib-text-muted);
    font-size: 12px;
}

.ib-form-select,
.ib-form-input {
    width: 100%;
    padding: 16px 20px;
    background: var(--ib-bg-card) !important;
    border: 1px solid var(--ib-border) !important;
    border-radius: var(--ib-radius-sm) !important;
    color: var(--ib-text-primary) !important;
    font-family: var(--ib-font) !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    transition: var(--ib-transition) !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.ib-form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 18px center !important;
    padding-right: 48px !important;
}

.ib-form-select:focus,
.ib-form-input:focus {
    border-color: var(--ib-border-active) !important;
    box-shadow: 0 0 0 3px var(--ib-accent-glow) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.ib-light .ib-form-select:focus,
.ib-light .ib-form-input:focus {
    background: #ffffff !important;
}

.ib-form-select:hover,
.ib-form-input:hover {
    border-color: var(--ib-border-hover) !important;
}

.ib-form-select option {
    background: var(--ib-bg-secondary);
    color: var(--ib-text-primary);
    padding: 10px;
}

.ib-form-input::placeholder {
    color: var(--ib-text-muted);
    font-weight: 400;
}

/* Autofill fixes for styling */
.ib-form-input:-webkit-autofill,
.ib-form-input:-webkit-autofill:hover,
.ib-form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px var(--ib-bg-secondary) inset !important;
    -webkit-text-fill-color: var(--ib-text-primary) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.ib-light .ib-form-input:-webkit-autofill,
.ib-light .ib-form-input:-webkit-autofill:hover,
.ib-light .ib-form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    -webkit-text-fill-color: #0f172a !important;
}

/* Hide spin buttons in number inputs */
.ib-form-input[type="number"]::-webkit-outer-spin-button,
.ib-form-input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.ib-form-input[type="number"] {
    -moz-appearance: textfield;
}

/* Suffix inputs (kr/md) */
.ib-input-with-suffix {
    position: relative;
    display: flex;
    align-items: center;
}

.ib-input-with-suffix .ib-form-input {
    padding-right: 76px !important;
}

.ib-input-suffix {
    position: absolute;
    right: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ib-text-muted);
    pointer-events: none;
}

/* ============================================================
   Contact Step
   ============================================================ */
.ib-contact-step {
    animation: ib-slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ib-contact-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.ib-contact-field {
    position: relative;
    display: flex;
    align-items: center;
}

.ib-contact-icon {
    position: absolute;
    left: 18px;
    font-size: 18px;
    pointer-events: none;
    z-index: 1;
    color: var(--ib-text-muted);
}

.ib-contact-field .ib-form-input {
    padding-left: 48px !important;
    width: 100%;
}

/* Autocomplete DAWA addresses */
.ib-address-wrap {
    position: relative;
}

.ib-address-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--ib-bg-secondary);
    border: 1px solid var(--ib-border-hover);
    border-radius: var(--ib-radius-sm);
    max-height: 220px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: none;
}

.ib-light .ib-address-dropdown {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.ib-address-dropdown.active {
    display: block;
}

/* Custom Scrollbar for DAWA */
.ib-address-dropdown::-webkit-scrollbar {
    width: 6px;
}
.ib-address-dropdown::-webkit-scrollbar-track {
    background: transparent;
}
.ib-address-dropdown::-webkit-scrollbar-thumb {
    background: var(--ib-border-hover);
    border-radius: 3px;
}

.ib-address-item {
    padding: 12px 16px 12px 48px;
    font-size: 14px;
    color: var(--ib-text-secondary);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.ib-light .ib-address-item {
    border-bottom-color: rgba(15, 23, 42, 0.02);
}

.ib-address-item:last-child {
    border-bottom: none;
}

.ib-address-item:hover,
.ib-address-item.active {
    background: var(--ib-bg-card-active);
    color: var(--ib-text-primary);
}

.ib-address-item mark {
    background: none;
    color: var(--ib-accent-2);
    font-weight: 600;
}

/* Consent check */
.ib-consent {
    margin: 24px 0 16px;
}

.ib-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    user-select: none;
}

.ib-consent-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ib-consent-check {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: var(--ib-bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--ib-transition);
    margin-top: 2px;
    position: relative;
}

.ib-light .ib-consent-check {
    border-color: rgba(15, 23, 42, 0.15);
}

.ib-consent-check::after {
    content: '✓';
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
}

.ib-consent-checkbox:checked + .ib-consent-check {
    background: var(--ib-accent);
    border-color: var(--ib-accent);
    box-shadow: 0 0 0 3px var(--ib-accent-glow);
}

.ib-consent-checkbox:checked + .ib-consent-check::after {
    opacity: 1;
}

.ib-consent-text {
    font-size: 13px;
    color: var(--ib-text-secondary);
    line-height: 1.5;
}

.ib-consent-text a,
.ib-modal-link {
    color: var(--ib-accent);
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s;
    font-weight: 500;
}

.ib-consent-text a:hover,
.ib-modal-link:hover {
    color: var(--ib-accent-2);
}

/* Privacy */
.ib-privacy {
    font-size: 11px;
    color: var(--ib-text-muted);
    text-align: center;
    margin: 16px 0 0;
    opacity: 0.8;
}

.ib-privacy a {
    color: var(--ib-text-secondary);
    text-decoration: underline;
}

.ib-privacy a:hover {
    color: var(--ib-accent);
}

/* Errors */
.ib-contact-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 12px 18px;
    border-radius: var(--ib-radius-xs);
    font-size: 13.5px;
    font-weight: 500;
    margin: 12px 0;
    text-align: center;
}

.ib-light .ib-contact-error {
    background: rgba(239, 68, 68, 0.04);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.15);
}

@keyframes ib-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.ib-shake {
    animation: ib-shake 0.4s ease;
}

/* ============================================================
   Info Modals (Partners / Services)
   ============================================================ */
.ib-info-modal {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 24px;
}

.ib-info-modal.active {
    display: flex;
}

.ib-info-modal-content {
    background: var(--ib-bg-secondary);
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    animation: ib-modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
    box-shadow: var(--ib-shadow-lg);
}

@keyframes ib-modalIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ib-info-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--ib-text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--ib-transition);
}

.ib-info-modal-close:hover {
    background: var(--ib-bg-card-hover);
    color: var(--ib-text-primary);
}

.ib-info-modal-content h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--ib-text-primary);
    margin-bottom: 18px;
    padding-right: 30px;
    letter-spacing: -0.01em;
}

.ib-info-modal-body {
    font-size: 14px;
    color: var(--ib-text-secondary);
    line-height: 1.7;
}

.ib-info-modal-body p {
    margin-bottom: 12px;
}

.ib-info-modal-body a {
    color: var(--ib-accent);
    text-decoration: underline;
}

.ib-info-modal-body ul,
.ib-info-modal-body ol {
    padding-left: 20px;
    margin-bottom: 12px;
}

.ib-info-modal-body li {
    margin-bottom: 6px;
}
