/* SpeedLedger Pricing Calculator */
.sl-calc {
    font-family: 'Source Sans 3', 'Source Sans Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #262626;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}
.sl-calc *,
.sl-calc *::before,
.sl-calc *::after {
    box-sizing: border-box;
}

/* Layout */
.sl-calc__inner {
    display: flex;
    min-height: 560px;
    background: #fff;
}

/* Left panel */
.sl-calc__left {
    flex: 1;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
}

/* Right panel */
.sl-calc__right {
    width: 37%;
    min-width: 380px;
    background: #f4fbf6;
    border-left: 1px solid #e0ddd8;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

/* ===== PROGRESS BAR ===== */
.sl-calc__progress {
    display: flex;
    align-items: center;
    margin-bottom: 36px;
}
.sl-calc__progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}
.sl-calc__progress-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e1d8;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}
.sl-calc__progress-dot--active {
    background: #3a7b4c;
    color: #fff;
    border-color: #3a7b4c;
}
.sl-calc__progress-dot--done {
    background: #3a7b4c;
    color: #fff;
    border-color: #3a7b4c;
}
.sl-calc__progress-label {
    font-size: 18px;
    color: #262626;
    white-space: nowrap;
    font-weight: 400;
    transition: color 0.3s;
}
.sl-calc__progress-label--active {
    color: #262626;
}
.sl-calc__progress-label--done {
    color: #262626;
}
.sl-calc__progress-line {
    flex: 1;
    height: 2px;
    background: #e5e1d8;
    margin: 0 12px;
    transition: background 0.4s;
    min-width: 24px;
}
.sl-calc__progress-line--done {
    background: #3a7b4c;
}

/* ===== STEP CONTENT ===== */
.sl-calc__step {
    display: none;
    flex-direction: column;
    flex: 1;
    animation: slCalcFadeIn 0.35s ease;
}
.sl-calc__step--active {
    display: flex;
}
@keyframes slCalcFadeIn {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}
.sl-calc__step-question {
    font-size: 36px;
    font-weight: 900;
    font-family: 'Noto Serif', serif;
    margin-bottom: 8px;
    line-height: 1.25;
}
.sl-calc__step-subtitle {
    font-size: 24px;
    color: #262626;
    margin-bottom: 46px;
    font-weight: 400;
}

/* ===== OPTION CARDS ===== */
.sl-calc__options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sl-calc__option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
    border: 1px solid #ccc0a3;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    user-select: none;
}
.sl-calc__option:hover {
    border-color: #ccc;
    background: #fafafa;
}
.sl-calc__option--selected {
    border-color: #3a7b4c;
    background: #f6fdf8;
}
.sl-calc__option-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #ccc;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 7px;
}
.sl-calc__option--selected .sl-calc__option-radio {
    border-color: #3a7b4c;
}
.sl-calc__option--selected .sl-calc__option-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3a7b4c;
}
.sl-calc__option-text {
    font-weight: 600;
    font-size: 24px;
    color: #262626;
}
.sl-calc__option-desc {
    font-weight: 400;
    font-size: 18px;
    color: #262626;
    margin-top: 3px;
    line-height: 1.4;
}

/* ===== METHOD PILLS ===== */
.sl-calc__method {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sl-calc__method--inline {
    margin-top: 12px;
}
.sl-calc__method-label {
    font-size: 18px;
    color: #262626;
    font-weight: 400;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ===== INFO ICON + TOOLTIP ===== */
.sl-calc__info-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}
.sl-calc__info-icon:hover {
    color: #262626;
}
.sl-calc__tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: #262626;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    padding: 12px 16px;
    border-radius: 10px;
    width: 300px;
    max-width: calc(100vw - 40px);
    white-space: normal;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    text-decoration: none;
}
.sl-calc__tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 6px solid transparent;
    border-top-color: #262626;
}
.sl-calc__info-icon--active .sl-calc__tooltip {
    display: block;
}
/* Method tooltip stays centered (small element) */
#sl-method-info .sl-calc__tooltip {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}
#sl-method-info .sl-calc__tooltip::after {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}
.sl-calc__option-content {
    flex: 1;
}

/* ===== PILLS (segmented control) ===== */
.sl-calc__pills {
    display: inline-flex;
    position: relative;
    border: 1px solid #ccc0a3;
    border-radius: 24px;
    background: #f5f3f0;
    padding: 0;
}
.sl-calc__pill {
    /* Same structural size for all pills (selected or not) */
    padding: 8px 20px;
    border: 1.5px solid transparent;
    border-radius: 24px;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #888;
    user-select: none;
    font-family: inherit;
    box-sizing: border-box;
    line-height: 1.2;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sl-calc__pill:hover {
    color: #555;
}
.sl-calc__pill--selected {
    background: #fff;
    border-color: #3a7b4c;
    color: #262626;
}

/* ===== TILLVAL CHECKBOXES ===== */
.sl-calc__tillval-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sl-calc__tillval {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border: 2px solid #eee;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}
.sl-calc__tillval:hover {
    border-color: #ccc;
}
.sl-calc__tillval--active {
    border-color: #3a7b4c;
    background: #f6fdf8;
}
.sl-calc__tillval--hidden {
    display: none;
}
.sl-calc__tillval-check {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid #ddd;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    align-self: flex-start;
    margin-top: 1px;
}
.sl-calc__tillval--active .sl-calc__tillval-check {
    background: #3a7b4c;
    border-color: #3a7b4c;
}
.sl-calc__tillval--active .sl-calc__tillval-check::after {
    content: '\2713';
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.sl-calc__tillval-info {
    flex: 1;
}
.sl-calc__tillval-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.sl-calc__tillval-name {
    font-weight: 600;
    font-size: 18px;
    color: #262626;
}
.sl-calc__tillval-desc {
    font-size: 18px;
    color: #262626;
    font-weight: 400;
    margin-top: 3px;
    line-height: 1.4;
}
.sl-calc__tillval-price {
    font-weight: 600;
    font-size: 18px;
    color: #262626;
    white-space: nowrap;
    text-align: right;
}

/* ===== FULLSERVICE INFO ===== */
.sl-calc__fullservice-info {
    padding: 24px;
    background: #f9f9f4;
    border-radius: 14px;
    margin-top: 8px;
}
.sl-calc__fullservice-title {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 14px;
}
.sl-calc__fullservice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sl-calc__fullservice-item {
    font-size: 15px;
    color: #3a7b4c;
}

/* ===== NAVIGATION ===== */
.sl-calc__nav {
    display: flex;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
}
.sl-calc__btn {
    padding: 12px 28px;
    border-radius: 24px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}
.sl-calc__btn--secondary {
    background: #f5f3f0;
    color: #262626;
}
.sl-calc__btn--secondary:hover {
    background: #eee;
}
.sl-calc__btn--primary {
    background: #262626;
    color: #fff;
}
.sl-calc__btn--primary:hover {
    background: #444;
}

/* ===== SUMMARY PANEL — Kvartalsvis / Årsvis TOGGLE ===== */
.sl-calc__toggle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: nowrap;
}
.sl-calc__toggle-label {
    display: none;
}
.sl-calc__toggle-group {
    display: inline-flex;
    align-items: center;
    position: relative;
    border: 1px solid #ccc0a3;
    border-radius: 24px;
    background: #f5f3f0;
    padding: 0;
}
.sl-calc__toggle-btn {
    /* Same structural size for both buttons — only color changes on active */
    padding: 8px 20px;
    border: 1.5px solid transparent;
    border-radius: 24px;
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: #888;
    transition: all 0.25s ease;
    text-align: center;
    font-family: inherit;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
}
.sl-calc__toggle-btn--active {
    background: #fff;
    border-color: #3a7b4c;
    color: #262626;
}
.sl-calc__toggle-badge {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: inherit;
    line-height: 1;
    white-space: nowrap;
}
.sl-calc__toggle-btn--active .sl-calc__toggle-badge {
    color: #3a7b4c;
}

.sl-calc__summary-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 46px;
}
.sl-calc__summary-title {
    font-family: 'Noto Serif', serif;
    font-weight: 900;
    font-size: 36px;
}
.sl-calc__summary-price-label {
    font-size: 36px;
    font-weight: 900;
    font-family: 'Noto Serif', serif;
    color: #262626;
    text-align: right;
}
.sl-calc__summary-price-label-sub {
    font-size: 18px;
    font-weight: 900;
    font-family: 'Noto Serif', serif;
    display: block;
    line-height: 1;
    margin-top: -8px;
}

/* Company form label (e.g. "Enskild firma", "Aktiebolag / KB / HB", "Förening") */
.sl-calc__company-label {
    font-size: 24px;
    font-weight: 600;
    color: #3a7b4c;
    margin-bottom: 8px;
}
.sl-calc__company-label:empty {
    display: none;
}

/* Nystartat description text — same style as summary note */
.sl-calc__nystartat-desc {
    font-size: 16px;
    color: #262626;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 12px;
}

.sl-calc__summary-items {
    display: flex;
    flex-direction: column;
}
.sl-calc__summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    padding: 4px 0;
    align-items: baseline;
}
.sl-calc__summary-item-label {
    color: #262626;
    font-weight: 400;
}
.sl-calc__summary-item-price {
    font-weight: 400;
    color: #262626;
    text-align: right;
    white-space: nowrap;
}

/* Promo pricing */
.sl-calc__price-old {
    text-decoration: line-through;
    color: #262626;
    margin-right: 4px;
    font-weight: 400;
}
.sl-calc__price-promo {
    color: #3a7b4c;
    font-weight: 400;
}

.sl-calc__summary-divider {
    height: 1px;
    background: #dbd1b8;
    margin: 12px 0;
}
.sl-calc__summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}
.sl-calc__summary-total-label {
    font-weight: 600;
    font-size: 24px;
    color: #262626;
}
.sl-calc__summary-total-price {
    font-weight: 600;
    font-size: 24px;
    color: #262626;
}
.sl-calc__summary-total-price .sl-calc__price-old,
.sl-calc__summary-total-price .sl-calc__price-promo {
    font-weight: 600;
    font-size: 24px;
}
.sl-calc__summary-total-old {
    text-align: right;
    font-size: 15px;
    text-decoration: line-through;
    color: #999;
    margin-bottom: 2px;
}

.sl-calc__summary-yearly {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 8px 0;
}
.sl-calc__summary-yearly-item {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 400;
    color: #262626;
}

.sl-calc__summary-note {
    font-size: 18px;
    color: #262626;
    margin: 16px 0 20px;
    font-weight: 400;
}

.sl-calc__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #262626;
    color: #fff;
    border: 1px solid #262626;
    border-radius: 24px;
    padding: 14px 28px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    font-family: inherit;
}
.sl-calc__cta:hover {
    background: #444;
    color: #fff;
}

.sl-calc__summary-subtext {
    font-size: 18px;
    color: #888888;
    margin-top: 12px;
    line-height: 1.5;
}
.sl-calc__summary-subtext a {
    color: #888888;
    text-decoration: underline;
}
.sl-calc__trial-link {
    color: #262626;
    text-decoration: underline;
    cursor: pointer;
    display: inline-block;
}
.sl-calc__info-icon--text {
    display: inline-block;
    position: relative;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .sl-calc__inner {
        flex-direction: column;
    }
    .sl-calc__left {
        padding: 24px 20px;
    }
    .sl-calc__right {
        width: 100%;
        min-width: 0;
        border-left: none;
        border-top: 1px solid #e0ddd8;
        padding: 24px 20px;
    }
    .sl-calc__method {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .sl-calc__step-question {
        font-size: 24px;
    }
    .sl-calc__step-subtitle {
        font-size: 16px;
    }
    .sl-calc__progress {
        margin-bottom: 24px;
        gap: 0;
    }
    .sl-calc__progress-step {
        flex-direction: column;
        gap: 4px;
        align-items: center;
    }
    .sl-calc__progress-label {
        font-size: 11px;
    }
    .sl-calc__progress-dot {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }
    .sl-calc__progress-line {
        min-width: 12px;
        margin: 0 4px;
        align-self: flex-start;
        margin-top: 11px;
    }
    .sl-calc__toggle-row {
        flex-wrap: nowrap;
    }
    .sl-calc__toggle-label {
        font-size: 13px;
    }
    .sl-calc__toggle-btn {
        font-size: 13px;
        padding: 5px 10px;
    }
    .sl-calc__toggle-badge {
        font-size: 10px;
    }
    .sl-calc__pill {
        font-size: 14px;
        padding: 6px 14px;
    }
    .sl-calc__summary-header {
        flex-direction: row;
        gap: 8px;
    }
    .sl-calc__summary-title {
        font-size: 20px;
    }
    .sl-calc__company-label {
        font-size: 18px;
    }
    .sl-calc__nystartat-desc {
        font-size: 14px;
    }
    .sl-calc__summary-price-label {
        font-size: 20px;
        text-align: right;
    }
    .sl-calc__summary-price-label-sub {
        font-size: 13px;
    }
    .sl-calc__summary-item {
        font-size: 16px;
    }
    .sl-calc__summary-total-label {
        font-size: 16px;
    }
    .sl-calc__summary-total-price {
        font-size: 16px;
        white-space: nowrap;
    }
    .sl-calc__summary-note {
        font-size: 14px;
    }
    .sl-calc__cta {
        font-size: 16px;
    }
    .sl-calc__summary-subtext {
        font-size: 14px;
    }
    .sl-calc__option-text {
        font-size: 20px;
    }
    .sl-calc__option-desc {
        font-size: 15px;
    }
    .sl-calc__btn {
        font-size: 16px;
    }
    .sl-calc__tillval-name {
        font-size: 15px;
    }
    .sl-calc__tillval-price {
        font-size: 15px;
    }
    .sl-calc__tillval-desc {
        font-size: 14px;
    }
}
