/* =====================================================================
   Nordpaa Price Calculator — "Modern" template
   Soft / Neumorphic skin
   ---------------------------------------------------------------------
   Rules of engagement:
   - This file is a SKIN ONLY.
   - It must NEVER alter layout, widths, max-widths, margins, paddings,
     grid behaviour, breakpoints, sidebar placement, card sizes,
     responsive stacking, or section proportions of the Classic template.
   - It only overrides surfaces, colors, shadows, radii, borders,
     typography weights and interactive states.
   - The accent color comes dynamically from the backend branding
     setting via --nordpaa-primary (and mirrored as --np-modern-accent
     for skin-local effects). NEVER hardcode brand colors.
   ===================================================================== */

.nordpaa-template.nordpaa-template-modern {
    /* Neumorphic palette */
    --np-bg:            #EDF1F4;
    --np-surface:       #EDF1F4;
    --np-surface-2:     #E6EBEF;
    --np-text:          #1F2A44;   /* dark desaturated navy */
    --np-text-soft:     #4A5772;
    --np-text-muted:    #7A8499;
    --np-border-soft:   rgba(13, 39, 80, 0.06);

    /* Accent — inherits from branding via --nordpaa-primary */
    --np-accent:        var(--nordpaa-primary, var(--np-modern-accent, #0B2650));
    --np-accent-soft:   color-mix(in srgb, var(--np-accent) 12%, var(--np-bg));
    --np-accent-ink:    #FFFFFF;

    /* Neumorphic shadow system */
    --np-shadow-out:
        -20px -20px 28px rgba(255, 255, 255, 1),
        20px 20px 28px rgba(13, 39, 80, 0.12);
    --np-shadow-out-sm:
        -8px -8px 14px rgba(255, 255, 255, 1),
        8px 8px 14px rgba(13, 39, 80, 0.10);
    --np-shadow-out-xs:
        -3px -3px 6px rgba(255, 255, 255, 0.95),
        3px 3px 6px rgba(13, 39, 80, 0.08);
    --np-shadow-inset:
        inset -12px -12px 18px rgba(255, 255, 255, 0.9),
        inset 12px 12px 18px rgba(13, 39, 80, 0.08);
    --np-shadow-inset-sm:
        inset -4px -4px 8px rgba(255, 255, 255, 0.9),
        inset 4px 4px 8px rgba(13, 39, 80, 0.08);
    --np-shadow-pressed:
        inset -6px -6px 10px rgba(255, 255, 255, 0.85),
        inset 6px 6px 10px rgba(13, 39, 80, 0.10);

    --np-radius-lg: 22px;
    --np-radius-md: 16px;
    --np-radius-sm: 12px;
    --np-radius-pill: 999px;

    color: var(--np-text);
    background:
        radial-gradient(1200px 600px at 20% -10%, rgba(255,255,255,0.9), transparent 60%),
        radial-gradient(900px 500px at 100% 110%, rgba(13,39,80,0.05), transparent 60%),
        var(--np-bg);
}

/* Universal soft typography — never pure black, no harsh borders */
.nordpaa-template-modern,
.nordpaa-template-modern * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Headings ---------- */
.nordpaa-template-modern .nordpaa-calc-header h1 {
    color: var(--np-text);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.nordpaa-template-modern .nordpaa-calc-header p {
    color: var(--np-text-muted);
}

/* ---------- Modern spacing pass ---------- */
#nordpaa-calculator.nordpaa-template-modern .np-modern-flow-board {
    padding: 28px 24px 56px;
    box-sizing: border-box;
}

#nordpaa-calculator.nordpaa-template-modern .np-modern-flow-intro {
    margin-bottom: 18px;
}

#nordpaa-calculator.nordpaa-template-modern .np-modern-flow-intro h1 {
    margin: 0 0 8px;
}

#nordpaa-calculator.nordpaa-template-modern .np-modern-flow-intro p,
#nordpaa-calculator.nordpaa-template-modern .np-modern-eyebrow {
    margin: 0;
}

#nordpaa-calculator.nordpaa-template-modern .np-modern-flow-card--calculator .nordpaa-calc-card {
    padding: 30px 28px 32px !important;
    margin-bottom: 30px !important;
}

#nordpaa-calculator.nordpaa-template-modern .nordpaa-calc-section {
    margin-bottom: 34px;
}

#nordpaa-calculator.nordpaa-template-modern .nordpaa-calc-section:last-child {
    margin-bottom: 0;
}

#nordpaa-calculator.nordpaa-template-modern .nordpaa-calc-label {
    margin-bottom: 18px;
}

#nordpaa-calculator.nordpaa-template-modern .nordpaa-calc-products-grid {
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 0;
}

#nordpaa-calculator.nordpaa-template-modern .nordpaa-calc-product-card {
    padding: 26px 26px 28px;
}

#nordpaa-calculator.nordpaa-template-modern .np-modern-flow-card--form {
    margin-top: 0;
}

#nordpaa-calculator.nordpaa-template-modern .nordpaa-calc-form-section {
    max-width: 640px;
    margin: 0 auto;
    padding: 2px 0 10px;
}

#nordpaa-calculator.nordpaa-template-modern .nordpaa-calc-form-header {
    margin-bottom: 24px;
}

#nordpaa-calculator.nordpaa-template-modern .nordpaa-calc-form-group {
    margin-bottom: 18px;
}

#nordpaa-calculator.nordpaa-template-modern .nordpaa-calc-form-group input,
#nordpaa-calculator.nordpaa-template-modern .nordpaa-calc-form-group textarea {
    min-height: 44px;
}

/* ---------- Cards (module/section card) ---------- */
.nordpaa-template-modern .nordpaa-calc-card {
    background: var(--np-surface);
    border: none;
    border-radius: var(--np-radius-lg);
    box-shadow: var(--np-shadow-out);
}

.nordpaa-template-modern .nordpaa-calc-section {
    border: none;
}

.nordpaa-template-modern .nordpaa-calc-label {
    color: var(--np-text-soft);
    font-weight: 500;
}
.nordpaa-template-modern .nordpaa-calc-value {
    color: var(--np-accent);
    font-weight: 600;
}

/* ---------- Slider ---------- */
.nordpaa-template-modern .nordpaa-calc-slider-wrap {
    --nordpaa-slider-progress: 0%;
    position: relative;
    padding: 8px 0;
}

.nordpaa-template-modern .nordpaa-calc-slider-wrap::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 12px;
    border-radius: var(--np-radius-pill);
    background: var(--np-surface);
    box-shadow: var(--np-shadow-inset-sm);
    transform: translateY(-50%);
    z-index: 1;
}

.nordpaa-template-modern .nordpaa-calc-slider-fill {
    position: absolute;
    left: 0;
    top: 50%;
    width: var(--nordpaa-slider-progress);
    height: 12px;
    border-radius: var(--np-radius-pill);
    background: var(--np-accent);
    box-shadow:
        0 8px 18px color-mix(in srgb, var(--np-accent) 24%, transparent),
        inset 0 1px 0 rgba(255,255,255,0.22);
    transform: translateY(-50%);
    transition: width .42s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.nordpaa-template-modern .nordpaa-calc-slider-fill::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.28) 50%, transparent 100%);
    opacity: 0;
    transform: translateX(-100%);
    pointer-events: none;
}

.nordpaa-template-modern .nordpaa-calc-slider-wrap:hover .nordpaa-calc-slider-fill::after,
.nordpaa-template-modern .nordpaa-calc-slider-wrap:focus-within .nordpaa-calc-slider-fill::after {
    opacity: 1;
    animation: nordpaaModernSliderSheen 1.4s ease-in-out infinite;
}

.nordpaa-template-modern .nordpaa-calc-slider {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    z-index: 4;
    width: 100%;
    height: 24px;
    margin: 0;
    background: transparent !important;
    border-radius: var(--np-radius-pill);
    box-shadow: none;
    cursor: pointer;
}
.nordpaa-template-modern .nordpaa-calc-slider::-webkit-slider-runnable-track {
    height: 12px;
    background: transparent;
    border-radius: var(--np-radius-pill);
}
.nordpaa-template-modern .nordpaa-calc-slider::-moz-range-track {
    height: 12px;
    background: transparent;
    border: 0;
    border-radius: var(--np-radius-pill);
}
.nordpaa-template-modern .nordpaa-calc-slider::-moz-range-progress {
    height: 12px;
    background: transparent;
    border: 0;
}
.nordpaa-template-modern .nordpaa-calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    margin-top: -6px;
    border-radius: 50%;
    background: var(--np-surface);
    border: none;
    box-shadow:
        -3px -3px 6px rgba(255,255,255,1),
        3px 3px 6px rgba(13,39,80,0.18),
        inset 0 0 0 4px var(--np-accent);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
    position: relative;
    z-index: 5;
}
.nordpaa-template-modern .nordpaa-calc-slider::-webkit-slider-thumb:hover,
.nordpaa-template-modern .nordpaa-calc-slider:active::-webkit-slider-thumb {
    transform: scale(1.08);
    box-shadow:
        -4px -4px 8px rgba(255,255,255,1),
        4px 4px 10px rgba(13,39,80,0.22),
        inset 0 0 0 5px var(--np-accent);
}
.nordpaa-template-modern .nordpaa-calc-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--np-surface);
    border: none;
    box-shadow:
        -3px -3px 6px rgba(255,255,255,1),
        3px 3px 6px rgba(13,39,80,0.18),
        inset 0 0 0 4px var(--np-accent);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.nordpaa-template-modern .nordpaa-calc-slider-dots {
    z-index: 3;
}

.nordpaa-template-modern .nordpaa-calc-slider-dot {
    background: var(--np-surface);
    box-shadow: var(--np-shadow-out-xs);
    border: none;
    transition: background-color .24s ease, box-shadow .24s ease, transform .24s ease;
    z-index: 3;
}
.nordpaa-template-modern .nordpaa-calc-slider-dot.active {
    background: var(--np-accent);
    box-shadow:
        0 0 0 3px color-mix(in srgb, var(--np-accent) 18%, transparent),
        var(--np-shadow-out-xs);
    transform: scale(1.08);
}
.nordpaa-template-modern .nordpaa-calc-slider-info {
    color: var(--np-text-muted);
    margin-top: 18px;
}

@keyframes nordpaaModernSliderSheen {
    0% { transform: translateX(-100%); }
    60%, 100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
    .nordpaa-template-modern .nordpaa-calc-slider-fill,
    .nordpaa-template-modern .nordpaa-calc-slider-fill::after,
    .nordpaa-template-modern .nordpaa-calc-slider::-webkit-slider-thumb,
    .nordpaa-template-modern .nordpaa-calc-slider::-moz-range-thumb,
    .nordpaa-template-modern .nordpaa-calc-slider-dot,
    .nordpaa-template-modern .nordpaa-calc-captcha-thumb {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Billing toggle ---------- */
/* ---------- Billing toggle: TWO separate neumorphic buttons ----------
   Override the segmented "pill" container so the two buttons read as
   two independent tactile soft buttons with breathing space between
   them. Both share equal height; the active one fills with the brand
   accent, the inactive one stays a soft light neumorphic surface. */
.nordpaa-template-modern .nordpaa-calc-billing-toggle {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    display: inline-flex;
    gap: 14px;
}
.nordpaa-template-modern .nordpaa-calc-billing-btn {
    background: var(--np-surface);
    border: none;
    color: var(--np-text-soft);
    border-radius: var(--np-radius-md);
    font-weight: 600;
    padding: 12px 22px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--np-shadow-out-sm);
    transition: all .18s ease;
    cursor: pointer;
}
.nordpaa-template-modern .nordpaa-calc-billing-btn:hover {
    color: var(--np-text);
    background: var(--np-surface);
    box-shadow: var(--np-shadow-out);
    transform: translateY(-1px);
}
.nordpaa-template-modern .nordpaa-calc-billing-btn:active {
    transform: translateY(0);
    box-shadow: var(--np-shadow-pressed);
}
.nordpaa-template-modern .nordpaa-calc-billing-btn.active {
    background: var(--np-accent);
    color: var(--np-accent-ink);
    box-shadow:
        -4px -4px 10px rgba(255,255,255,0.85),
        4px 4px 10px rgba(13,39,80,0.18);
}
.nordpaa-template-modern .nordpaa-calc-badge {
    background: color-mix(in srgb, var(--np-accent) 14%, var(--np-bg));
    color: var(--np-accent);
    border: none;
    box-shadow: var(--np-shadow-out-xs);
}

/* ---------- Product cards ---------- */
.nordpaa-template-modern .nordpaa-calc-product-card {
    background: var(--np-surface);
    border: none !important;
    border-radius: var(--np-radius-md);
    box-shadow: var(--np-shadow-out-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}
.nordpaa-template-modern .nordpaa-calc-product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--np-shadow-out);
}
.nordpaa-template-modern .nordpaa-calc-product-card.selected {
    background: var(--np-surface);
    border: none !important;
    box-shadow:
        var(--np-shadow-pressed),
        0 0 0 2px color-mix(in srgb, var(--np-accent) 35%, transparent);
}
.nordpaa-template-modern .nordpaa-calc-product-details h3 {
    color: var(--np-text);
    font-weight: 600;
}
.nordpaa-template-modern .nordpaa-calc-product-desc {
    color: var(--np-text-muted);
}
.nordpaa-template-modern .nordpaa-calc-product-price {
    color: var(--np-accent);
    font-weight: 600;
}
.nordpaa-template-modern .nordpaa-calc-product-checkbox {
    accent-color: var(--np-accent);
}
.nordpaa-template-modern .nordpaa-calc-price-suffix {
    color: var(--np-text-muted);
}

/* ---------- Summary sidebar / footer ----------
   NOTE: .nordpaa-calc-summary-container is just a positioning wrapper
   in the Classic structure (no padding, no card visuals). Only
   .nordpaa-calc-summary itself carries the card surface, so the skin
   must NOT add a second card on the container — that caused the
   detached / double-padded look. */
.nordpaa-template-modern .nordpaa-calc-summary-container {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}
.nordpaa-template-modern .nordpaa-calc-summary {
    background: var(--np-surface);
    border: none;
    border-radius: var(--np-radius-lg);
    /* Softer, tighter shadow so the summary aligns visually with the
       main calculator card instead of floating away from it. */
    box-shadow: var(--np-shadow-out-sm);
    overflow: hidden;
}
.nordpaa-template-modern .nordpaa-calc-summary-header h3 {
    color: var(--np-text);
    font-weight: 600;
}
.nordpaa-template-modern .nordpaa-calc-summary-header-info,
.nordpaa-template-modern .nordpaa-calc-summary-header-info .separator {
    color: var(--np-text-muted);
}
.nordpaa-template-modern .nordpaa-calc-summary-header-price {
    color: var(--np-accent);
    font-weight: 600;
}
.nordpaa-template-modern .nordpaa-calc-summary-toggle {
    background: var(--np-surface);
    border: none;
    box-shadow: var(--np-shadow-out-xs);
    color: var(--np-text-soft);
    border-radius: 50%;
}
.nordpaa-template-modern .nordpaa-calc-summary-toggle:hover {
    box-shadow: var(--np-shadow-out-sm);
}
.nordpaa-template-modern .nordpaa-calc-summary-divider,
.nordpaa-template-modern .nordpaa-calc-summary-separator {
    background: transparent;
    border-top: 1px solid var(--np-border-soft);
    height: 0;
}
.nordpaa-template-modern .nordpaa-calc-summary-item {
    color: var(--np-text-soft);
}
.nordpaa-template-modern .nordpaa-calc-summary-item.discount,
.nordpaa-template-modern .nordpaa-calc-summary-item.bundle-discount {
    color: var(--np-accent);
}
.nordpaa-template-modern .nordpaa-calc-summary-empty,
.nordpaa-template-modern .nordpaa-calc-muted,
.nordpaa-template-modern .nordpaa-calc-summary-period {
    color: var(--np-text-muted);
}

/* Highlighted total — premium tactile pill.
   Add internal padding + top margin so the pill has proper breathing
   room from the discount line above and the price never kisses the
   right edge of the card. */
.nordpaa-template-modern .nordpaa-calc-summary-total {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--np-accent) 6%, var(--np-bg)),
        color-mix(in srgb, var(--np-accent) 12%, var(--np-bg)));
    border-radius: var(--np-radius-md);
    box-shadow: var(--np-shadow-inset-sm);
    padding: 14px 18px !important;
    margin-top: 12px;
}
.nordpaa-template-modern .nordpaa-calc-summary-total > span,
.nordpaa-template-modern .nordpaa-calc-summary-total-price > div:first-child {
    color: var(--np-accent);
    font-weight: 700;
}

/* ---------- Form ---------- */
.nordpaa-template-modern .nordpaa-calc-form-header h3 {
    color: var(--np-text);
    font-weight: 600;
}
.nordpaa-template-modern .nordpaa-calc-form-header p,
.nordpaa-template-modern .nordpaa-calc-form-group label,
.nordpaa-template-modern .nordpaa-calc-form-group small {
    color: var(--np-text-soft);
}
.nordpaa-template-modern .nordpaa-calc-form-group input,
.nordpaa-template-modern .nordpaa-calc-form-group textarea {
    background: var(--np-surface);
    border: none !important;
    border-radius: var(--np-radius-sm);
    box-shadow: var(--np-shadow-inset-sm);
    color: var(--np-text);
    transition: box-shadow .2s ease;
}
.nordpaa-template-modern .nordpaa-calc-form-group input::placeholder,
.nordpaa-template-modern .nordpaa-calc-form-group textarea::placeholder {
    color: var(--np-text-muted);
}
.nordpaa-template-modern .nordpaa-calc-form-group input:focus,
.nordpaa-template-modern .nordpaa-calc-form-group textarea:focus {
    outline: none;
    border: none !important;
    box-shadow:
        var(--np-shadow-inset-sm),
        0 0 0 2px color-mix(in srgb, var(--np-accent) 30%, transparent);
}
.nordpaa-template-modern .nordpaa-calc-form-group input:disabled {
    opacity: .65;
}
.nordpaa-template-modern .nordpaa-calc-field-error {
    color: #B23A48;
}

/* ---------- Drag confirm ---------- */
.nordpaa-template-modern .nordpaa-calc-captcha {
    margin-top: 22px;
}

.nordpaa-template-modern .nordpaa-calc-captcha-track {
    height: 50px;
    border: none;
    border-radius: var(--np-radius-sm);
    background: var(--np-surface);
    box-shadow: var(--np-shadow-inset-sm);
    overflow: hidden;
}

.nordpaa-template-modern .nordpaa-calc-captcha-track:hover {
    border: none;
    box-shadow:
        var(--np-shadow-inset-sm),
        0 0 0 1px color-mix(in srgb, var(--np-accent) 18%, transparent);
}

.nordpaa-template-modern .nordpaa-calc-captcha-fill {
    width: 48px;
    background: var(--np-accent);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.24);
}

.nordpaa-template-modern .nordpaa-calc-captcha-thumb {
    top: 5px;
    bottom: 5px;
    left: 4px;
    width: 40px;
    border-radius: 10px;
    background: var(--np-text);
    color: #fff;
    box-shadow:
        -3px -3px 7px rgba(255,255,255,0.55),
        4px 4px 10px rgba(13,39,80,0.20);
    transition: left .24s cubic-bezier(.22, 1, .36, 1), transform .18s ease, box-shadow .18s ease, background .2s ease;
    will-change: left, transform;
}

.nordpaa-template-modern .nordpaa-calc-captcha-thumb:hover {
    background: var(--np-text);
    transform: translateY(-1px);
}

.nordpaa-template-modern .nordpaa-calc-captcha-thumb.dragging {
    transform: scale(1.05);
    box-shadow:
        -4px -4px 8px rgba(255,255,255,0.7),
        6px 6px 14px rgba(13,39,80,0.26);
}

.nordpaa-template-modern .nordpaa-calc-captcha.verified .nordpaa-calc-captcha-track {
    background: color-mix(in srgb, #16a34a 14%, var(--np-bg));
    border: none;
}

.nordpaa-template-modern .nordpaa-calc-captcha.verified .nordpaa-calc-captcha-fill,
.nordpaa-template-modern .nordpaa-calc-captcha-thumb.verified {
    background: #16a34a;
}

.nordpaa-template-modern .nordpaa-calc-captcha-text {
    color: var(--np-text-muted);
}

.nordpaa-template-modern .nordpaa-calc-captcha.verified .nordpaa-calc-captcha-text {
    color: #126b35;
}

/* ---------- Buttons ---------- */
.nordpaa-template-modern .nordpaa-calc-submit-btn,
.nordpaa-template-modern .nordpaa-calc-summary-buttons .nordpaa-calc-submit-btn,
.nordpaa-template-modern .nordpaa-calc-summary-submit-btn,
.nordpaa-template-modern #summary-submit-btn {
    background: var(--np-accent) !important;
    color: var(--np-accent-ink) !important;
    border: none !important;
    border-radius: var(--np-radius-md);
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow:
        -6px -6px 12px rgba(255,255,255,0.9),
        6px 6px 12px rgba(13,39,80,0.18);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.nordpaa-template-modern .nordpaa-calc-submit-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow:
        -8px -8px 16px rgba(255,255,255,1),
        8px 8px 16px rgba(13,39,80,0.20);
}
.nordpaa-template-modern .nordpaa-calc-submit-btn:active {
    transform: translateY(0);
    box-shadow: var(--np-shadow-pressed);
    filter: brightness(0.98);
}
.nordpaa-template-modern .nordpaa-calc-submit-btn:disabled {
    background: var(--np-surface) !important;
    color: var(--np-text-muted) !important;
    box-shadow: var(--np-shadow-inset-sm);
    filter: none;
    transform: none;
}

.nordpaa-template-modern .nordpaa-calc-download-pdf-btn {
    background: var(--np-surface);
    color: var(--np-text-soft);
    border: none;
    border-radius: var(--np-radius-md);
    box-shadow: var(--np-shadow-out-sm);
    font-weight: 500;
    transition: box-shadow .15s ease, transform .15s ease, color .15s ease;
}
.nordpaa-template-modern .nordpaa-calc-download-pdf-btn:hover {
    color: var(--np-accent);
    box-shadow: var(--np-shadow-out);
    transform: translateY(-1px);
}
.nordpaa-template-modern .nordpaa-calc-download-pdf-btn:active {
    box-shadow: var(--np-shadow-pressed);
    transform: translateY(0);
}
.nordpaa-template-modern .nordpaa-calc-download-pdf-btn svg,
.nordpaa-template-modern .nordpaa-calc-download-pdf-btn:hover svg {
    color: currentColor;
}

.nordpaa-template-modern .nordpaa-success-btn {
    background: var(--np-accent);
    color: var(--np-accent-ink);
    border: none;
    border-radius: var(--np-radius-md);
    box-shadow: var(--np-shadow-out-sm);
}
.nordpaa-template-modern .nordpaa-success-btn:hover {
    box-shadow: var(--np-shadow-out);
}
.nordpaa-template-modern .nordpaa-success-btn:active {
    box-shadow: var(--np-shadow-pressed);
}

/* ---------- Loading spinner ---------- */
.nordpaa-template-modern .nordpaa-calc-loading .spinner {
    border-top-color: var(--np-accent);
}

/* ---------- Sticky bottom summary (mobile/tablet) ----------
   Match the Classic structural breakpoint (1406px) so the skin doesn't flip a
   different layout state than the structural CSS. Below 1406px the
   summary is a fixed full-width sticky footer in structural CSS — give
   it a flat top edge with rounded top corners and a soft top shadow. */
@media (max-width: 1405px) {
    .nordpaa-template-modern .nordpaa-calc-summary-wrapper {
        background: var(--np-bg) !important;
        border-top: 1px solid var(--np-border-soft) !important;
        box-shadow: 0 -10px 30px rgba(13, 39, 80, 0.10) !important;
    }
    .nordpaa-template-modern .nordpaa-calc-summary-wrapper .nordpaa-calc-summary {
        background: var(--np-bg);
        border-radius: 0;
        box-shadow: none;
    }
    /* Inside the sticky footer the total pill should still keep its
       internal padding for visual breathing room. */
    .nordpaa-template-modern .nordpaa-calc-summary-wrapper .nordpaa-calc-summary-total {
        margin-top: 8px;
    }
}


/* v3.36.7 - SUMMARY SIDEBAR ONLY FIX
   Do not redesign the template. This only restores Classic-like desktop placement:
   left content column + right sticky Opsummering sidebar. */
@media (min-width: 1406px) {
    #nordpaa-calculator.nordpaa-template-modern .np-modern-flow-board {
        display: grid !important;
        grid-template-columns: 1024px 350px !important;
        column-gap: 32px !important;
        align-items: start !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 28px 24px 56px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    #nordpaa-calculator.nordpaa-template-modern .np-modern-flow-intro {
        grid-column: 1 !important;
        width: 100% !important;
        max-width: 1024px !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    #nordpaa-calculator.nordpaa-template-modern .np-modern-board-outer {
        grid-column: 1 / -1 !important;
        display: grid !important;
        grid-template-columns: 1024px 350px !important;
        column-gap: 32px !important;
        align-items: start !important;
        justify-content: start !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    #nordpaa-calculator.nordpaa-template-modern .np-modern-flow-main {
        width: 100% !important;
        max-width: 1024px !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    #nordpaa-calculator.nordpaa-template-modern .np-modern-flow-summary,
    #nordpaa-calculator.nordpaa-template-modern .nordpaa-calc-summary-sidebar-placeholder {
        display: block !important;
        width: 350px !important;
        max-width: 350px !important;
        min-width: 350px !important;
        min-height: 0 !important;
        align-self: start !important;
        position: sticky !important;
        top: 120px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        overflow: visible !important;
    }

    #nordpaa-calculator.nordpaa-template-modern .nordpaa-calc-summary-inline-placeholder {
        display: none !important;
    }

    #nordpaa-calculator.nordpaa-template-modern .nordpaa-calc-summary-inline-placeholder .nordpaa-calc-summary {
        display: none !important;
    }

    #nordpaa-calculator.nordpaa-template-modern .nordpaa-calc-summary-sidebar-placeholder .nordpaa-calc-summary {
        width: 100% !important;
        margin: 0 !important;
    }
}

@media (max-width: 1405px) {
    #nordpaa-calculator.nordpaa-template-modern .np-modern-flow-board {
        display: block !important;
        width: min(100%, 860px) !important;
        max-width: 860px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    #nordpaa-calculator.nordpaa-template-modern .np-modern-board-outer {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    #nordpaa-calculator.nordpaa-template-modern .np-modern-flow-main {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    #nordpaa-calculator.nordpaa-template-modern .np-modern-flow-summary,
    #nordpaa-calculator.nordpaa-template-modern .nordpaa-calc-summary-sidebar-placeholder {
        display: none !important;
    }

    #nordpaa-calculator.nordpaa-template-modern .nordpaa-calc-summary-inline-placeholder {
        display: block !important;
    }
}


/* v3.36.7 - slider thumb centering + cleaner yearly discount badge.
   Visual-only patch. No layout/structure changes. */

/* Fix WebKit thumb vertical centering: track is 12px, thumb is 24px, so margin-top must be -6px.
   Also remove the ring-style inner shadow that made the circle look optically off-center. */
.nordpaa-template-modern .nordpaa-calc-slider::-webkit-slider-thumb {
    width: 24px !important;
    height: 24px !important;
    margin-top: -6px !important;
    border-radius: 50% !important;
    background:
        radial-gradient(circle at 50% 50%,
            var(--np-accent) 0 34%,
            var(--np-surface) 36% 100%) !important;
    box-shadow:
        -3px -3px 6px rgba(255,255,255,1),
         3px  3px 6px rgba(13,39,80,.18) !important;
    border: 0 !important;
    transform-origin: center center !important;
}

.nordpaa-template-modern .nordpaa-calc-slider::-moz-range-thumb {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background:
        radial-gradient(circle at 50% 50%,
            var(--np-accent) 0 34%,
            var(--np-surface) 36% 100%) !important;
    box-shadow:
        -3px -3px 6px rgba(255,255,255,1),
         3px  3px 6px rgba(13,39,80,.18) !important;
    border: 0 !important;
}

.nordpaa-template-modern .nordpaa-calc-slider::-webkit-slider-thumb:hover,
.nordpaa-template-modern .nordpaa-calc-slider:active::-webkit-slider-thumb {
    transform: scale(1.06) !important;
    box-shadow:
        -4px -4px 8px rgba(255,255,255,1),
         4px  4px 10px rgba(13,39,80,.20) !important;
}

/* Cleaner yearly button/badge.
   The discount should read as secondary text, not as a selected text highlight/background. */
.nordpaa-template-modern .nordpaa-calc-billing-btn {
    gap: 10px !important;
    user-select: none !important;
}

.nordpaa-template-modern .nordpaa-calc-billing-btn .nordpaa-calc-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-left: 2px !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    color: var(--np-accent) !important;
    font-size: .88em !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    opacity: .78 !important;
}

.nordpaa-template-modern .nordpaa-calc-billing-btn.active .nordpaa-calc-badge {
    color: currentColor !important;
    opacity: .82 !important;
}

/* Prevent browser/text-selection highlight look around "Spar 15%" after clicking. */
.nordpaa-template-modern .nordpaa-calc-billing-btn::selection,
.nordpaa-template-modern .nordpaa-calc-billing-btn *::selection {
    background: transparent !important;
    color: inherit !important;
}


/* v3.36.7 - slider centering + bundle/enterprise cards visual alignment.
   CSS-only. No layout restructuring. */

/* Make the actual range input hit-area align exactly with the visual rail. */
.nordpaa-template-modern .nordpaa-calc-slider {
    height: 12px !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 12px !important;
}

/* WebKit: 24px thumb on 12px track => -6px. Use a symmetric dot so it looks centered. */
.nordpaa-template-modern .nordpaa-calc-slider::-webkit-slider-runnable-track {
    height: 12px !important;
    border-radius: var(--np-radius-pill) !important;
    background: transparent !important;
}

.nordpaa-template-modern .nordpaa-calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 24px !important;
    height: 24px !important;
    margin-top: -6px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background:
        radial-gradient(circle at 50% 50%,
            var(--np-accent) 0 31%,
            var(--np-surface) 34% 100%) !important;
    box-shadow:
        -3px -3px 6px rgba(255,255,255,1),
         3px  3px 6px rgba(13,39,80,.18) !important;
    transform-origin: center center !important;
}

/* Firefox equivalent. */
.nordpaa-template-modern .nordpaa-calc-slider::-moz-range-track {
    height: 12px !important;
    border: 0 !important;
    border-radius: var(--np-radius-pill) !important;
    background: transparent !important;
}

.nordpaa-template-modern .nordpaa-calc-slider::-moz-range-thumb {
    width: 24px !important;
    height: 24px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background:
        radial-gradient(circle at 50% 50%,
            var(--np-accent) 0 31%,
            var(--np-surface) 34% 100%) !important;
    box-shadow:
        -3px -3px 6px rgba(255,255,255,1),
         3px  3px 6px rgba(13,39,80,.18) !important;
}

/* Align the visual fill/rail center with the 12px input track. */
.nordpaa-template-modern .nordpaa-calc-slider-wrap::before,
.nordpaa-template-modern .nordpaa-calc-slider-fill {
    top: 50% !important;
    transform: translateY(-50%) !important;
    height: 12px !important;
}

/* Enterprise/bundle section should visually use the same card language as "Vælg moduler". */
.nordpaa-template-modern .nordpaa-calc-bundles-section {
    margin-bottom: 34px !important;
}

.nordpaa-template-modern .nordpaa-calc-bundles-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
    color: var(--np-text) !important;
}

.nordpaa-template-modern .nordpaa-calc-bundles-header h3 {
    margin: 0 !important;
    color: var(--np-text) !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
}

.nordpaa-template-modern .nordpaa-calc-bundles-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin-top: 0 !important;
    margin-bottom: 34px !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-card {
    position: relative !important;
    min-height: 0 !important;
    padding: 26px 26px 28px !important;
    border: none !important;
    border-radius: var(--np-radius-lg) !important;
    background: var(--np-surface) !important;
    box-shadow: var(--np-shadow-out-sm) !important;
    color: var(--np-text) !important;
    overflow: visible !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-card.selected {
    box-shadow:
        var(--np-shadow-out-sm),
        inset 0 0 0 1.5px color-mix(in srgb, var(--np-accent) 35%, transparent) !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-content {
    display: grid !important;
    grid-template-columns: auto 1fr !important;
    gap: 14px !important;
    align-items: start !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    display: grid !important;
    place-items: center !important;
    background: var(--np-surface) !important;
    box-shadow: var(--np-shadow-inset-sm) !important;
    color: var(--np-text-muted) !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-icon.selected {
    color: var(--np-accent) !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-details h4 {
    margin: 0 0 10px !important;
    color: var(--np-text) !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-products {
    margin: 0 0 12px !important;
    color: var(--np-text-muted) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-price {
    color: var(--np-accent) !important;
    font-size: 22px !important;
    font-weight: 650 !important;
    letter-spacing: -0.02em !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-price small,
.nordpaa-template-modern .nordpaa-calc-bundle-price .suffix {
    color: var(--np-text-muted) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-badge-discount {
    position: absolute !important;
    top: -10px !important;
    right: 12px !important;
    z-index: 5 !important;
    border-radius: 7px !important;
    padding: 7px 10px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

/* Campaign/bundle small pills should not look like a different layout system. */
.nordpaa-template-modern .nordpaa-calc-bundle-card .nordpaa-campaign-tag,
.nordpaa-template-modern .nordpaa-calc-bundle-card .nordpaa-bundle-tag,
.nordpaa-template-modern .nordpaa-calc-bundle-card .nordpaa-calc-bundle-tag {
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--np-surface) !important;
    box-shadow: var(--np-shadow-inset-sm) !important;
    color: var(--np-text) !important;
}

/* Responsive: keep bundle cards stacked like product cards on smaller screens. */
@media (max-width: 900px) {
    .nordpaa-template-modern .nordpaa-calc-bundles-grid {
        grid-template-columns: 1fr !important;
    }
}

/* v3.36.8 - final slider and yearly-discount polish.
   Keep this block last so earlier experimental slider overrides cannot fight it. */
.nordpaa-template-modern .nordpaa-calc-slider-wrap {
    padding: 8px 0 !important;
}

.nordpaa-template-modern .nordpaa-calc-slider {
    height: 24px !important;
    line-height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.nordpaa-template-modern .nordpaa-calc-slider::-webkit-slider-runnable-track {
    height: 12px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: var(--np-radius-pill) !important;
}

.nordpaa-template-modern .nordpaa-calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 24px !important;
    height: 24px !important;
    margin-top: -6px !important;
    box-sizing: border-box !important;
    border: 4px solid var(--np-surface) !important;
    border-radius: 50% !important;
    background: var(--np-accent) !important;
    box-shadow:
        -3px -3px 7px rgba(255,255,255,1),
        3px 3px 8px rgba(13,39,80,.20) !important;
    transform-origin: center center !important;
}

.nordpaa-template-modern .nordpaa-calc-slider::-moz-range-track {
    height: 12px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: var(--np-radius-pill) !important;
}

.nordpaa-template-modern .nordpaa-calc-slider::-moz-range-thumb {
    width: 24px !important;
    height: 24px !important;
    box-sizing: border-box !important;
    border: 4px solid var(--np-surface) !important;
    border-radius: 50% !important;
    background: var(--np-accent) !important;
    box-shadow:
        -3px -3px 7px rgba(255,255,255,1),
        3px 3px 8px rgba(13,39,80,.20) !important;
}

.nordpaa-template-modern .nordpaa-calc-slider-wrap::before,
.nordpaa-template-modern .nordpaa-calc-slider-fill {
    top: 50% !important;
    height: 12px !important;
    transform: translateY(-50%) !important;
}

.nordpaa-template-modern .nordpaa-calc-billing-btn {
    min-height: 54px !important;
    padding: 10px 22px !important;
    gap: 3px !important;
    flex-direction: column !important;
    user-select: none !important;
}

.nordpaa-template-modern .nordpaa-calc-billing-label {
    display: block !important;
    line-height: 1.1 !important;
}

.nordpaa-template-modern .nordpaa-calc-billing-btn .nordpaa-calc-badge {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--np-accent) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: .02em !important;
    white-space: nowrap !important;
    opacity: .86 !important;
}

.nordpaa-template-modern .nordpaa-calc-billing-btn.active .nordpaa-calc-badge {
    color: rgba(255,255,255,.78) !important;
    opacity: 1 !important;
}

/* v3.36.15 - bundle badge layout fixes: make Visning change frontend layout and prevent overlap */
.nordpaa-template-modern .nordpaa-calc-bundle-card {
    position: relative !important;
    overflow: visible !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-card .nordpaa-badge-container {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    row-gap: 6px !important;
    z-index: 25 !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-card .nordpaa-badge-container > * {
    position: static !important;
    margin: 0 !important;
    line-height: 1.15 !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-card.nordpaa-bundle-display-badge {
    padding-top: 34px !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-card .nordpaa-badge-container.nordpaa-badge-display-badge {
    position: absolute !important;
    top: -18px !important;
    right: 14px !important;
    justify-content: flex-end !important;
    max-width: calc(100% - 28px) !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-card.nordpaa-bundle-display-card {
    padding-top: 26px !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-card .nordpaa-badge-container.nordpaa-badge-display-card {
    position: static !important;
    width: 100% !important;
    justify-content: flex-start !important;
    margin: 8px 0 14px !important;
    transform: none !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-card.nordpaa-bundle-display-highlight {
    padding-top: 38px !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-card .nordpaa-badge-container.nordpaa-badge-display-highlight {
    position: absolute !important;
    top: -16px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    justify-content: center !important;
    max-width: calc(100% - 24px) !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-card .nordpaa-campaign-badge-countdown,
.nordpaa-template-modern .nordpaa-calc-bundle-card .nordpaa-calc-bundle-badge-discount {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 30px !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-details h4 {
    margin-bottom: 10px !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-products {
    margin-top: 8px !important;
}


/* v3.36.18 - Bundle package images */
.nordpaa-calc-bundle-image,
.nordpaa-template-modern .nordpaa-calc-bundle-image {
    width: 100%;
    margin-bottom: 14px;
    border-radius: 10px;
    overflow: hidden;
}
.nordpaa-calc-bundle-image img,
.nordpaa-template-modern .nordpaa-calc-bundle-image img {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
}
.nordpaa-calc-bundle-card.image-bottom .nordpaa-calc-bundle-image,
.nordpaa-template-modern .nordpaa-calc-bundle-card.image-bottom .nordpaa-calc-bundle-image {
    margin-top: 14px;
    margin-bottom: 0;
}
.nordpaa-calc-bundle-card.image-left .nordpaa-calc-bundle-content,
.nordpaa-calc-bundle-card.image-right .nordpaa-calc-bundle-content,
.nordpaa-template-modern .nordpaa-calc-bundle-card.image-left .nordpaa-calc-bundle-content,
.nordpaa-template-modern .nordpaa-calc-bundle-card.image-right .nordpaa-calc-bundle-content {
    align-items: flex-start;
}
.nordpaa-calc-bundle-card.image-left .nordpaa-calc-bundle-image,
.nordpaa-calc-bundle-card.image-right .nordpaa-calc-bundle-image,
.nordpaa-template-modern .nordpaa-calc-bundle-card.image-left .nordpaa-calc-bundle-image,
.nordpaa-template-modern .nordpaa-calc-bundle-card.image-right .nordpaa-calc-bundle-image {
    max-width: 180px;
}


/* v3.36.18 - Mini gallery from selected module/product images inside package cards */
.nordpaa-calc-bundle-module-gallery,
.nordpaa-template-modern .nordpaa-calc-bundle-module-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0 8px;
    align-items: center;
}

.nordpaa-calc-bundle-module-thumb,
.nordpaa-template-modern .nordpaa-calc-bundle-module-thumb {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}

.nordpaa-calc-bundle-module-thumb img,
.nordpaa-template-modern .nordpaa-calc-bundle-module-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* v3.36.27: Contact-for-price mode */
.nordpaa-calc-quote-text{font-weight:700;letter-spacing:-.01em;}


/* v3.36.29 - Interval based contact-for-price text */
.nordpaa-calc-quote-text,
.nordpaa-calc-summary-header-price {
    white-space: normal;
}


/* v3.36.30 - Keep contact-for-price text balanced in total box */
.nordpaa-template-modern .nordpaa-calc-summary-total .nordpaa-calc-quote-text,
.nordpaa-template-modern .nordpaa-calc-summary-total-price .nordpaa-calc-quote-text,
.nordpaa-calc-summary-total .nordpaa-calc-quote-text,
.nordpaa-calc-summary-total-price .nordpaa-calc-quote-text {
    font-size: clamp(18px, 1.35vw, 24px) !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em;
    max-width: 150px;
    text-align: right;
    word-break: normal;
    overflow-wrap: normal;
}
.nordpaa-template-modern .nordpaa-calc-summary-total-price,
.nordpaa-calc-summary-total-price {
    min-width: 0;
}


/* v3.36.31 - Smaller balanced contact-for-price text in the Total box */
.nordpaa-template-modern .nordpaa-calc-summary-total .nordpaa-calc-quote-text,
.nordpaa-template-modern .nordpaa-calc-summary-total-price .nordpaa-calc-quote-text,
.nordpaa-calc-summary-total .nordpaa-calc-quote-text,
.nordpaa-calc-summary-total-price .nordpaa-calc-quote-text {
    font-size: clamp(15px, 1.05vw, 18px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.01em;
    max-width: 118px;
    text-align: right;
}

/* v3.36.33 - Package campaign badges follow branding, package icon removed, single package fills full width */
.nordpaa-template-modern .nordpaa-calc-bundle-badge,
.nordpaa-template-modern .nordpaa-calc-bundle-badge-discount,
.nordpaa-template-modern .nordpaa-campaign-badge-countdown {
    background: var(--np-accent, var(--nordpaa-primary, #6366f1)) !important;
    color: var(--np-accent-contrast, #ffffff) !important;
}

.nordpaa-template-modern .nordpaa-calc-bundles-grid.nordpaa-calc-bundles-grid--single {
    grid-template-columns: 1fr !important;
}

.nordpaa-template-modern .nordpaa-calc-bundles-grid.nordpaa-calc-bundles-grid--single .nordpaa-calc-bundle-card {
    width: 100% !important;
    max-width: none !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-content {
    grid-template-columns: 1fr !important;
}

.nordpaa-template-modern .nordpaa-calc-bundle-icon {
    display: none !important;
}

/* v3.36.33 - Move billing toggle into summary box */
.nordpaa-template-modern .nordpaa-calc-summary-content-inner > .nordpaa-calc-section:has(.nordpaa-calc-billing-toggle) {
  margin: 0 0 18px 0;
  padding: 0;
}
.nordpaa-template-modern .nordpaa-calc-summary .nordpaa-calc-billing-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 16px 0;
}
.nordpaa-template-modern .nordpaa-calc-summary .nordpaa-calc-billing-btn {
  min-height: 46px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
}
.nordpaa-template-modern .nordpaa-calc-summary .nordpaa-calc-billing-btn .nordpaa-calc-badge {
  display: block;
  line-height: 1.1;
  margin-top: 2px;
}
@media (max-width: 768px) {
  .nordpaa-template-modern .nordpaa-calc-summary .nordpaa-calc-billing-toggle {
    grid-template-columns: 1fr 1fr;
  }
}


/* v3.36.34 - Compact billing toggle in summary and keep click target stable */
.nordpaa-calc-summary .nordpaa-calc-billing-toggle {
  gap: 8px !important;
  margin: 0 0 14px 0 !important;
}
.nordpaa-calc-summary .nordpaa-calc-billing-btn {
  min-height: 40px !important;
  padding: 7px 10px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  line-height: 1.15 !important;
}
.nordpaa-calc-summary .nordpaa-calc-billing-label {
  font-size: 14px !important;
  line-height: 1.15 !important;
}
.nordpaa-calc-summary .nordpaa-calc-billing-btn .nordpaa-calc-badge {
  font-size: 10px !important;
  line-height: 1.05 !important;
  margin-top: 1px !important;
}


/* v3.36.35 - calmer billing toggle hover in summary */
.nordpaa-calc-summary .nordpaa-calc-billing-btn:hover,
.nordpaa-template-modern .nordpaa-calc-summary .nordpaa-calc-billing-btn:hover {
  transform: none !important;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08) !important;
}
.nordpaa-calc-summary .nordpaa-calc-billing-btn:active,
.nordpaa-template-modern .nordpaa-calc-summary .nordpaa-calc-billing-btn:active {
  transform: translateY(0) !important;
}
.nordpaa-calc-summary .nordpaa-calc-billing-btn.active:hover,
.nordpaa-template-modern .nordpaa-calc-summary .nordpaa-calc-billing-btn.active:hover {
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18) !important;
}


/* v3.36.36 - Quote text in Total box must be smaller than numeric prices */
.nordpaa-calc-summary-header-price.nordpaa-calc-summary-quote-price,
.nordpaa-calc-summary-total-price--quote,
.nordpaa-calc-summary-total-price--quote > div,
.nordpaa-calc-summary-total-quote-text {
    font-size: clamp(13px, 0.95vw, 16px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.01em !important;
    font-weight: 750 !important;
    text-align: right !important;
    max-width: 136px !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: auto;
}

.nordpaa-calc-summary-header-price.nordpaa-calc-summary-quote-price {
    display: inline-block !important;
    max-width: 150px !important;
    vertical-align: middle !important;
}

/* Keep real numeric totals large and unchanged */
.nordpaa-calc-summary-total-price:not(.nordpaa-calc-summary-total-price--quote) > div:first-child {
    font-size: inherit;
}


/* 3.36.37: Total box price/text size correction.
   Numeric totals stay large. Text-only totals are compact. */
.nordpaa-template-modern .nordpaa-summary-total .nordpaa-summary-total-value,
.nordpaa-template-modern .nordpaa-summary-total .total-value,
.nordpaa-template-modern .nordpaa-total-value,
.nordpaa-summary-total-value,
.total-value {
    font-size: clamp(28px, 2.45vw, 40px) !important;
    font-weight: 900 !important;
    line-height: .95 !important;
    letter-spacing: -0.045em !important;
}

.nordpaa-template-modern .nordpaa-summary-total .nordpaa-summary-total-value.is-text-total,
.nordpaa-template-modern .nordpaa-summary-total .total-value.is-text-total,
.nordpaa-template-modern .nordpaa-total-value.is-text-total,
.nordpaa-summary-total-value.is-text-total,
.total-value.is-text-total {
    font-size: clamp(18px, 1.45vw, 24px) !important;
    font-weight: 900 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.025em !important;
    max-width: 210px;
    white-space: normal;
    text-align: right;
}

.nordpaa-template-modern .nordpaa-summary-total .nordpaa-summary-total-value.is-price-total,
.nordpaa-template-modern .nordpaa-summary-total .total-value.is-price-total,
.nordpaa-template-modern .nordpaa-total-value.is-price-total,
.nordpaa-summary-total-value.is-price-total,
.total-value.is-price-total {
    font-size: clamp(28px, 2.45vw, 40px) !important;
    line-height: .95 !important;
}


/* 3.36.38: Restore actual numeric total price size.
   The real total markup uses .nordpaa-calc-summary-total-price > div:first-child,
   not .total-value, so numeric prices need a direct rule here. */
.nordpaa-template-modern .nordpaa-calc-summary-total .nordpaa-calc-summary-total-price:not(.nordpaa-calc-summary-total-price--quote) > div:first-child,
.nordpaa-calc-summary-total .nordpaa-calc-summary-total-price:not(.nordpaa-calc-summary-total-price--quote) > div:first-child {
    font-size: clamp(26px, 2.15vw, 34px) !important;
    line-height: .95 !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em !important;
    color: var(--np-accent, #245fc4) !important;
    white-space: nowrap !important;
}

/* Keep text/quote totals smaller and balanced. */
.nordpaa-template-modern .nordpaa-calc-summary-total .nordpaa-calc-summary-total-price--quote > div:first-child,
.nordpaa-calc-summary-total .nordpaa-calc-summary-total-price--quote > div:first-child,
.nordpaa-template-modern .nordpaa-calc-summary-total .nordpaa-calc-quote-text,
.nordpaa-calc-summary-total .nordpaa-calc-quote-text {
    font-size: clamp(18px, 1.35vw, 23px) !important;
    line-height: 1.05 !important;
    font-weight: 900 !important;
    letter-spacing: -0.025em !important;
    white-space: normal !important;
    text-align: right !important;
}

/* Period label remains small. */
.nordpaa-template-modern .nordpaa-calc-summary-total .nordpaa-calc-summary-period,
.nordpaa-calc-summary-total .nordpaa-calc-summary-period {
    font-size: 13px !important;
    line-height: 1.1 !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}


/* 3.36.39: Make text-based totals smaller than numeric prices. */
.nordpaa-template-modern .nordpaa-calc-summary-total .nordpaa-calc-summary-total-price--quote > div:first-child,
.nordpaa-calc-summary-total .nordpaa-calc-summary-total-price--quote > div:first-child,
.nordpaa-template-modern .nordpaa-calc-summary-total .nordpaa-calc-quote-text,
.nordpaa-calc-summary-total .nordpaa-calc-quote-text {
    font-size: clamp(15px, 1.05vw, 18px) !important;
    line-height: 1.08 !important;
    font-weight: 800 !important;
    letter-spacing: -0.015em !important;
    max-width: 128px !important;
    white-space: normal !important;
    text-align: right !important;
}


/* 3.36.40: Backend-controlled frontend typography */
.nordpaa-template-modern {
    --np-total-price-font-size: 34px;
    --np-total-text-font-size: 16px;
    --np-total-text-max-width: 128px;
    --np-summary-title-font-size: 18px;
    --np-summary-button-font-size: 16px;
}

.nordpaa-template-modern .nordpaa-calc-summary-card h3,
.nordpaa-template-modern .nordpaa-calc-summary-title,
.nordpaa-template-modern .nordpaa-summary-header h3 {
    font-size: var(--np-summary-title-font-size) !important;
}

.nordpaa-template-modern .nordpaa-calc-summary-total .nordpaa-calc-summary-total-price:not(.nordpaa-calc-summary-total-price--quote) > div:first-child,
.nordpaa-calc-summary-total .nordpaa-calc-summary-total-price:not(.nordpaa-calc-summary-total-price--quote) > div:first-child {
    font-size: var(--np-total-price-font-size) !important;
    line-height: .95 !important;
    font-weight: 900 !important;
    letter-spacing: -0.04em !important;
    white-space: nowrap !important;
}

.nordpaa-template-modern .nordpaa-calc-summary-total .nordpaa-calc-summary-total-price--quote > div:first-child,
.nordpaa-calc-summary-total .nordpaa-calc-summary-total-price--quote > div:first-child,
.nordpaa-template-modern .nordpaa-calc-summary-total .nordpaa-calc-quote-text,
.nordpaa-calc-summary-total .nordpaa-calc-quote-text {
    font-size: var(--np-total-text-font-size) !important;
    line-height: 1.08 !important;
    font-weight: 800 !important;
    letter-spacing: -0.015em !important;
    max-width: var(--np-total-text-max-width) !important;
    white-space: normal !important;
    text-align: right !important;
}

.nordpaa-template-modern.np-total-text-auto-scale .nordpaa-calc-summary-total .nordpaa-calc-summary-total-price--quote > div:first-child,
.nordpaa-template-modern.np-total-text-auto-scale .nordpaa-calc-summary-total .nordpaa-calc-quote-text {
    font-size: min(var(--np-total-text-font-size), clamp(13px, 1.05vw, 18px)) !important;
}

.nordpaa-template-modern #summary-submit-btn,
.nordpaa-template-modern .nordpaa-calc-summary-submit-btn,
.nordpaa-template-modern .nordpaa-submit-btn {
    font-size: var(--np-summary-button-font-size) !important;
}


/* 3.36.41: Style select fields and manual distance checkbox to match Soft UI */
.nordpaa-template-modern select,
.nordpaa-template-modern .nordpaa-calc-form-group select,
.nordpaa-template-modern #location-select,
.nordpaa-template-modern select[name="location_id"],
.nordpaa-template-modern select[name="selected_location"] {
    width: 100% !important;
    min-height: 46px !important;
    padding: 0 42px 0 16px !important;
    border: 0 !important;
    border-radius: 14px !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.68), rgba(226,233,240,.92)) !important;
    color: var(--np-text, #1F2A44) !important;
    font: inherit !important;
    font-weight: 650 !important;
    box-shadow:
        inset 7px 7px 16px rgba(146, 160, 178, .22),
        inset -7px -7px 16px rgba(255,255,255,.9),
        0 1px 0 rgba(255,255,255,.85) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--np-text-soft, #4A5772) 50%),
        linear-gradient(135deg, var(--np-text-soft, #4A5772) 50%, transparent 50%),
        linear-gradient(135deg, rgba(255,255,255,.68), rgba(226,233,240,.92)) !important;
    background-position:
        calc(100% - 22px) 50%,
        calc(100% - 16px) 50%,
        0 0 !important;
    background-size:
        6px 6px,
        6px 6px,
        100% 100% !important;
    background-repeat: no-repeat !important;
}

.nordpaa-template-modern select:focus,
.nordpaa-template-modern .nordpaa-calc-form-group select:focus {
    outline: none !important;
    box-shadow:
        inset 7px 7px 16px rgba(146, 160, 178, .20),
        inset -7px -7px 16px rgba(255,255,255,.92),
        0 0 0 3px color-mix(in srgb, var(--np-accent, #245fc4) 18%, transparent) !important;
}

/* Manual distance row */
.nordpaa-template-modern .nordpaa-calc-manual-distance,
.nordpaa-template-modern .nordpaa-manual-distance,
.nordpaa-template-modern .nordpaa-calc-checkbox-row,
.nordpaa-template-modern label[for*="manual"],
.nordpaa-template-modern label[for*="distance"] {
    color: var(--np-text, #1F2A44) !important;
}

/* Soft checkbox styling */
.nordpaa-template-modern input[type="checkbox"] {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    margin: 0 10px 0 0 !important;
    border: 0 !important;
    border-radius: 7px !important;
    background:
        linear-gradient(135deg, rgba(255,255,255,.72), rgba(226,233,240,.92)) !important;
    box-shadow:
        inset 5px 5px 11px rgba(146, 160, 178, .26),
        inset -5px -5px 11px rgba(255,255,255,.9),
        0 1px 0 rgba(255,255,255,.8) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-grid !important;
    place-content: center !important;
    vertical-align: middle !important;
    cursor: pointer !important;
}

.nordpaa-template-modern input[type="checkbox"]::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 4px;
    transform: scale(0);
    transition: transform .14s ease;
    background: var(--np-accent, #245fc4);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--np-accent, #245fc4) 32%, transparent);
}

.nordpaa-template-modern input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.nordpaa-template-modern input[type="checkbox"]:focus {
    outline: none !important;
    box-shadow:
        inset 5px 5px 11px rgba(146, 160, 178, .24),
        inset -5px -5px 11px rgba(255,255,255,.9),
        0 0 0 3px color-mix(in srgb, var(--np-accent, #245fc4) 18%, transparent) !important;
}

.nordpaa-template-modern input[type="checkbox"] + span,
.nordpaa-template-modern input[type="checkbox"] + label,
.nordpaa-template-modern label:has(input[type="checkbox"]) {
    font-weight: 650 !important;
    color: var(--np-text, #1F2A44) !important;
    line-height: 1.35 !important;
}

/* Make checkbox rows feel like part of the form instead of browser defaults */
.nordpaa-template-modern .nordpaa-calc-form-group:has(input[type="checkbox"]),
.nordpaa-template-modern .nordpaa-form-group:has(input[type="checkbox"]) {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 0 !important;
}


/* 3.36.42: Custom soft dropdown menu for Modern template */
.nordpaa-template-modern .np-soft-select {
    position: relative;
    width: 100%;
}

.nordpaa-template-modern .np-soft-select select {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.nordpaa-template-modern .np-soft-select__button {
    width: 100%;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(226,233,240,.94));
    color: var(--np-text, #1F2A44);
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    box-shadow:
        inset 7px 7px 16px rgba(146, 160, 178, .20),
        inset -7px -7px 16px rgba(255,255,255,.92),
        0 1px 0 rgba(255,255,255,.85);
}

.nordpaa-template-modern .np-soft-select__button::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--np-text-soft, #4A5772);
    border-bottom: 2px solid var(--np-text-soft, #4A5772);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .16s ease;
    opacity: .8;
}

.nordpaa-template-modern .np-soft-select.is-open .np-soft-select__button::after {
    transform: rotate(225deg) translateY(-1px);
}

.nordpaa-template-modern .np-soft-select__button:focus {
    outline: none;
    box-shadow:
        inset 7px 7px 16px rgba(146, 160, 178, .20),
        inset -7px -7px 16px rgba(255,255,255,.92),
        0 0 0 3px color-mix(in srgb, var(--np-accent, #245fc4) 18%, transparent);
}

.nordpaa-template-modern .np-soft-select__menu {
    position: absolute;
    z-index: 999;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    padding: 8px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(232,238,244,.98));
    border: 1px solid rgba(110, 126, 150, .12);
    box-shadow:
        18px 22px 50px rgba(30, 48, 80, .16),
        -10px -10px 30px rgba(255,255,255,.92);
    max-height: 240px;
    overflow: auto;
    display: none;
}

.nordpaa-template-modern .np-soft-select.is-open .np-soft-select__menu {
    display: block;
}

.nordpaa-template-modern .np-soft-select__option {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--np-text, #1F2A44);
    font: inherit;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
}

.nordpaa-template-modern .np-soft-select__option:hover,
.nordpaa-template-modern .np-soft-select__option.is-active {
    background: color-mix(in srgb, var(--np-accent, #245fc4) 12%, #ffffff);
    color: var(--np-accent, #245fc4);
}

.nordpaa-template-modern .np-soft-select__option.is-selected {
    background: linear-gradient(135deg, var(--np-accent, #245fc4), color-mix(in srgb, var(--np-accent, #245fc4) 78%, #ffffff));
    color: #fff;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--np-accent, #245fc4) 26%, transparent);
}

.nordpaa-template-modern .np-soft-select__option:disabled {
    cursor: not-allowed;
    opacity: .45;
}

@media (max-width: 640px) {
    .nordpaa-template-modern .np-soft-select__menu {
        max-height: 210px;
    }
}


/* 3.36.43: Modern UI cleanup & stability layer
   Keep this patch conservative: no layout redesign, only stable controls/fallbacks. */
.nordpaa-template-modern {
    --np-control-radius: 14px;
    --np-control-min-height: 46px;
    --np-control-shadow-inset:
        inset 7px 7px 16px rgba(146, 160, 178, .20),
        inset -7px -7px 16px rgba(255,255,255,.92),
        0 1px 0 rgba(255,255,255,.85);
    --np-control-focus:
        inset 7px 7px 16px rgba(146, 160, 178, .18),
        inset -7px -7px 16px rgba(255,255,255,.92),
        0 0 0 3px rgba(36, 95, 196, .16);
}

/* color-mix fallback for browsers with partial support */
.nordpaa-template-modern select:focus,
.nordpaa-template-modern .nordpaa-calc-form-group select:focus,
.nordpaa-template-modern input[type="checkbox"]:focus,
.nordpaa-template-modern .np-soft-select__button:focus {
    box-shadow: var(--np-control-focus) !important;
}

/* Keep native select usable if JS fails */
.nordpaa-template-modern select:not([data-np-soft-select="1"]) {
    min-height: var(--np-control-min-height) !important;
    border-radius: var(--np-control-radius) !important;
}

/* Only hide native select after JS has enhanced it */
.nordpaa-template-modern .np-soft-select select[data-np-soft-select="1"] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Make custom dropdown sit above summary/card shadows reliably */
.nordpaa-template-modern .np-soft-select {
    position: relative;
    isolation: isolate;
}

.nordpaa-template-modern .np-soft-select.is-open {
    z-index: 50;
}

.nordpaa-template-modern .np-soft-select__menu {
    z-index: 60;
}

/* Keyboard/accessibility stability */
.nordpaa-template-modern .np-soft-select__button[aria-expanded="true"] {
    box-shadow:
        var(--np-control-shadow-inset),
        0 0 0 3px rgba(36, 95, 196, .12) !important;
}

/* Prevent long option labels from breaking the control */
.nordpaa-template-modern .np-soft-select__button span,
.nordpaa-template-modern .np-soft-select__option {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Avoid :has dependency for checkbox row styling where wrapper classes exist */
.nordpaa-template-modern .np-checkbox-soft-row,
.nordpaa-template-modern .nordpaa-calc-checkbox-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 0 !important;
}

/* Safer mobile dropdown sizing */
@media (max-width: 640px) {
    .nordpaa-template-modern .np-soft-select__menu {
        max-height: min(260px, 45vh);
        overscroll-behavior: contain;
    }
}


/* 3.36.44: Frontend QA & Polish
   Conservative Modern-only polish: spacing, controls, responsive stability. */
.nordpaa-template-modern .nordpaa-calc-form-card,
.nordpaa-template-modern .nordpaa-calc-card:has(#nordpaa-lead-form) {
    margin-top: clamp(26px, 3vw, 42px) !important;
}

.nordpaa-template-modern .nordpaa-calc-form-header {
    margin-bottom: 22px !important;
}

.nordpaa-template-modern .nordpaa-calc-form-header h3 {
    letter-spacing: -0.025em !important;
}

.nordpaa-template-modern .nordpaa-calc-form-group {
    margin-bottom: 18px !important;
}

.nordpaa-template-modern .nordpaa-calc-form-group label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
    color: var(--np-text, #1F2A44) !important;
}

.nordpaa-template-modern .nordpaa-calc-form-group small,
.nordpaa-template-modern .nordpaa-help-text {
    display: block !important;
    margin-top: 7px !important;
    color: var(--np-text-muted, #7A8499) !important;
    line-height: 1.45 !important;
}

/* Make all text-like controls visually consistent */
.nordpaa-template-modern input[type="text"],
.nordpaa-template-modern input[type="email"],
.nordpaa-template-modern input[type="tel"],
.nordpaa-template-modern input[type="number"],
.nordpaa-template-modern textarea,
.nordpaa-template-modern .np-soft-select__button {
    min-height: 48px !important;
    border-radius: 15px !important;
}

.nordpaa-template-modern textarea {
    padding-top: 14px !important;
}

/* Product cards: slightly cleaner text hierarchy */
.nordpaa-template-modern .nordpaa-product-card h3,
.nordpaa-template-modern .nordpaa-product-title {
    line-height: 1.22 !important;
    letter-spacing: -0.018em !important;
}

.nordpaa-template-modern .nordpaa-product-card p,
.nordpaa-template-modern .nordpaa-product-description {
    line-height: 1.55 !important;
}

/* Summary polish */
.nordpaa-template-modern .nordpaa-calc-summary-card {
    overflow: visible !important;
}

.nordpaa-template-modern .nordpaa-calc-summary-total {
    align-items: center !important;
}

.nordpaa-template-modern .nordpaa-calc-summary-total-price {
    min-width: 0 !important;
}

.nordpaa-template-modern .nordpaa-calc-summary-period {
    opacity: .78 !important;
}

/* Button hover/focus polish */
.nordpaa-template-modern #summary-submit-btn,
.nordpaa-template-modern .nordpaa-calc-summary-submit-btn,
.nordpaa-template-modern .nordpaa-submit-btn {
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease !important;
}

.nordpaa-template-modern #summary-submit-btn:hover,
.nordpaa-template-modern .nordpaa-calc-summary-submit-btn:hover,
.nordpaa-template-modern .nordpaa-submit-btn:hover {
    transform: translateY(-1px) !important;
    filter: brightness(1.02) !important;
}

.nordpaa-template-modern #summary-submit-btn:active,
.nordpaa-template-modern .nordpaa-calc-summary-submit-btn:active,
.nordpaa-template-modern .nordpaa-submit-btn:active {
    transform: translateY(0) !important;
}

/* Dropdown option menu polish */
.nordpaa-template-modern .np-soft-select__menu {
    backdrop-filter: blur(10px);
}

.nordpaa-template-modern .np-soft-select__option {
    transition: background .14s ease, color .14s ease, box-shadow .14s ease;
}

/* Manual distance checkbox: align label and control more naturally */
.nordpaa-template-modern label:has(input[type="checkbox"]) {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
}

.nordpaa-template-modern label:has(input[type="checkbox"]) input[type="checkbox"] {
    margin-right: 0 !important;
}

/* Fallback class added by JS for browsers without reliable :has use */
.nordpaa-template-modern .np-checkbox-soft-row label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
}

/* Responsive polish */
@media (max-width: 980px) {
    .nordpaa-template-modern .nordpaa-calc-summary-card {
        margin-top: 22px !important;
    }

    .nordpaa-template-modern .nordpaa-calc-form-card,
    .nordpaa-template-modern .nordpaa-calc-card:has(#nordpaa-lead-form) {
        margin-top: 28px !important;
    }
}

@media (max-width: 640px) {
    .nordpaa-template-modern .nordpaa-calc-form-group {
        margin-bottom: 16px !important;
    }

    .nordpaa-template-modern input[type="text"],
    .nordpaa-template-modern input[type="email"],
    .nordpaa-template-modern input[type="tel"],
    .nordpaa-template-modern input[type="number"],
    .nordpaa-template-modern textarea,
    .nordpaa-template-modern .np-soft-select__button {
        min-height: 46px !important;
    }

    .nordpaa-template-modern .nordpaa-calc-summary-total {
        gap: 12px !important;
    }
}


/* 3.36.48 hotfix: safe mobile slider label removal.
   Only hides the actual label row below the slider. Does not touch dots,
   track, fill, wrapper, or the active value in the header. */
@media (max-width: 640px) {
    .nordpaa-template-modern .nordpaa-calc-slider-info {
        display: none !important;
    }

    .nordpaa-template-modern .nordpaa-calc-slider-wrap {
        margin-bottom: 0 !important;
    }
}


/* 3.36.49: Branding font family fix.
   Ensures Branding → Font family applies to all frontend calculator templates. */
#nordpaa-calculator,
#nordpaa-calculator.nordpaa-template,
#nordpaa-calculator .nordpaa-calc-wrapper,
#nordpaa-calculator .nordpaa-calc-card,
#nordpaa-calculator .nordpaa-calc-summary,
#nordpaa-calculator .nordpaa-calc-summary-card,
#nordpaa-calculator input,
#nordpaa-calculator select,
#nordpaa-calculator textarea,
#nordpaa-calculator button {
    font-family: var(--nordpaa-font, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
}

#nordpaa-calculator *:not(svg):not(path) {
    font-family: inherit;
}


/* 3.36.50: Mobile billing flow.
   Desktop keeps billing in summary. Mobile/tablet shows billing after modules,
   before the inline summary/total, so users see Monthly/Yearly without opening
   the collapsed summary. */
.nordpaa-template-modern .nordpaa-calc-billing-section--mobile-flow {
    display: none !important;
}

@media (max-width: 1405px) {
    .nordpaa-template-modern .nordpaa-calc-billing-section--mobile-flow {
        display: block !important;
        margin-top: 24px !important;
        padding-top: 22px !important;
        border-top: 1px solid rgba(13, 39, 80, .08);
    }

    .nordpaa-template-modern .nordpaa-calc-billing-section--mobile-flow::before {
        content: "Vælg betalingsform";
        display: block;
        margin-bottom: 12px;
        color: var(--np-text, #1F2A44);
        font-size: 14px;
        font-weight: 800;
        letter-spacing: -0.01em;
    }

    /* Avoid duplicate billing controls inside the collapsed/expanded mobile summary. */
    .nordpaa-template-modern .nordpaa-calc-summary .nordpaa-calc-billing-section:not(.nordpaa-calc-billing-section--mobile-flow),
    .nordpaa-template-modern .nordpaa-calc-summary-card .nordpaa-calc-billing-section:not(.nordpaa-calc-billing-section--mobile-flow),
    .nordpaa-template-modern .nordpaa-calc-summary-wrapper .nordpaa-calc-billing-section:not(.nordpaa-calc-billing-section--mobile-flow) {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .nordpaa-template-modern .nordpaa-calc-billing-section--mobile-flow {
        margin-top: 20px !important;
        padding-top: 18px !important;
    }

    .nordpaa-template-modern .nordpaa-calc-billing-section--mobile-flow .nordpaa-calc-billing-toggle {
        width: 100%;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .nordpaa-template-modern .nordpaa-calc-billing-section--mobile-flow .nordpaa-calc-billing-btn {
        width: 100%;
        min-width: 0;
    }
}


/* 3.36.52: Summary text controls */
.nordpaa-template-modern .nordpaa-calc-summary-group-label {
    margin: 14px 0 10px;
    color: var(--np-text, #1F2A44);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.01em;
}
