/**
 * Cost Calculator — shared styles (site + app blocks).
 *
 * Everything is scoped under the self-contained namespace `.sws-calc`
 * (BEM __ / --, shared states `.is-*`). Values are ported 1:1 from the Claude
 * Design specs (Site/App Cost Calculator.dc.html), whose markup used inline
 * styles; here they live as classes so the block carries no decorative inline CSS.
 */

.sws-calc {
    --scc-green: #028d40;
    --scc-accent: #605cb8;
    --scc-ink: #343a40;
    --scc-body: #474747;
    --scc-muted: #777;
    --scc-line: #e6e6e6;
    --scc-line-soft: #f2f2f2;
    --scc-soft: #f4f7f5;
    --scc-soft-2: #eef5f0;
    --scc-dark: #1f2327;
    --scc-radius: .25rem;

    max-width: 1140px;
    margin: 0 auto;
    color: var(--scc-body);
    animation: sws-calc-fade .4s ease-out both;
}

.sws-calc *,
.sws-calc *::before,
.sws-calc *::after { box-sizing: border-box; }

@keyframes sws-calc-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- header ---------- */
.sws-calc__head { text-align: center; margin-bottom: 26px; }
.sws-calc__eyebrow {
    font-size: 12px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--scc-green); margin-bottom: 10px;
}
.sws-calc__title {
    margin: 0 0 8px; font-size: 34px; font-weight: 500;
    color: var(--scc-ink); line-height: 1.2;
}
.sws-calc__subtitle { margin: 0; font-size: 16px; color: var(--scc-muted); }

/* ---------- layout ---------- */
.sws-calc__grid { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }

.sws-calc__wizard {
    flex: 1 1 380px; min-width: 300px; min-height: 480px;
    background: #fff; border: 1px solid var(--scc-line);
    border-radius: var(--scc-radius); box-shadow: 0 0 10px rgba(0, 0, 0, .1); overflow: hidden;
}

.sws-calc__panel {
    flex: 0 0 350px; max-width: 100%; position: sticky; top: 20px;
    background: #fff; border: 1px solid var(--scc-line);
    border-radius: var(--scc-radius); box-shadow: 0 0 10px rgba(0, 0, 0, .1); overflow: hidden;
}

/* ---------- progress ---------- */
.sws-calc__progress { padding: 20px 30px; border-bottom: 1px solid var(--scc-line-soft); }
.sws-calc__progress-head {
    display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px;
}
.sws-calc__step-num {
    font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
    color: var(--scc-green); white-space: nowrap;
}
.sws-calc__step-name { font-size: 14px; font-weight: 500; color: var(--scc-ink); }
.sws-calc__bar { height: 6px; border-radius: 3px; background: #eef0f2; overflow: hidden; }
.sws-calc__bar-fill { height: 100%; border-radius: 3px; background: var(--scc-green); transition: width .35s ease-out; }

/* ---------- step body ---------- */
.sws-calc__body { padding: 26px 30px; min-height: 340px; }
.sws-calc__q-title { font-size: 18px; font-weight: 500; color: var(--scc-ink); margin-bottom: 4px; }
.sws-calc__q-hint { font-size: 14px; color: var(--scc-muted); margin-bottom: 20px; }

/* ---------- cards ---------- */
.sws-calc__cards {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px;
}
.sws-calc__cards--stack { grid-template-columns: 1fr; }
.sws-calc__card {
    display: flex; gap: 13px; align-items: flex-start; padding: 15px; cursor: pointer;
    border: 1px solid var(--scc-line); border-radius: var(--scc-radius); background: #fff;
    transition: border-color .18s ease-out, background .18s ease-out;
}
.sws-calc__cards--stack .sws-calc__card { align-items: center; }
.sws-calc__card:hover { border-color: #cfe0d6; }
.sws-calc__card.is-selected { border-color: var(--scc-green); background: var(--scc-soft); }
.sws-calc__card-icon {
    width: 44px; height: 44px; flex: none; border-radius: 50%;
    background: var(--scc-soft-2); color: var(--scc-green);
    display: flex; align-items: center; justify-content: center;
}
.sws-calc__card-icon i { font-size: 18px; }
.sws-calc__card-body { flex: 1 1 auto; min-width: 0; }
.sws-calc__card-label { font-size: 15px; font-weight: 500; color: var(--scc-ink); line-height: 1.25; }
.sws-calc__card-sub { font-size: 12.5px; color: var(--scc-muted); margin-top: 3px; line-height: 1.4; }
.sws-calc__card-price { font-size: 13px; font-weight: 500; color: var(--scc-green); margin-top: 7px; }
.sws-calc__card-price--right { margin-top: 0; white-space: nowrap; align-self: center; }
.sws-calc__card-check { color: var(--scc-green); font-size: 17px; flex: none; }

/* ---------- radios ---------- */
.sws-calc__radios { display: grid; gap: 10px; }
.sws-calc__radio {
    display: flex; gap: 13px; align-items: center; padding: 13px 15px; cursor: pointer;
    border: 1px solid var(--scc-line); border-radius: var(--scc-radius); background: #fff;
    transition: border-color .18s ease-out, background .18s ease-out;
}
.sws-calc__radio:hover { border-color: #cfe0d6; }
.sws-calc__radio.is-selected { border-color: var(--scc-green); background: var(--scc-soft); }
.sws-calc__radio-dot {
    width: 20px; height: 20px; flex: none; border-radius: 50%;
    border: 1px solid #c4c4c4; background: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: background .18s ease-out, border-color .18s ease-out;
}
.sws-calc__radio.is-selected .sws-calc__radio-dot { border-color: var(--scc-green); background: var(--scc-green); }
.sws-calc__radio-inner { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.sws-calc__radio-body { flex: 1 1 auto; }
.sws-calc__radio-label { font-size: 14.5px; font-weight: 500; color: var(--scc-ink); }
.sws-calc__radio-sub { font-size: 12px; color: var(--scc-muted); margin-top: 2px; }
.sws-calc__radio-price { font-size: 13px; font-weight: 500; color: var(--scc-green); white-space: nowrap; }

/* ---------- pills ---------- */
.sws-calc__pills { display: flex; gap: 10px; flex-wrap: wrap; }
.sws-calc__pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px;
    cursor: pointer; user-select: none;
    border: 1px solid var(--scc-line); border-radius: 2rem; background: #fff;
    color: var(--scc-ink); font-size: 14px;
    transition: background .16s ease-out, border-color .16s ease-out, color .16s ease-out;
}
.sws-calc__pill:hover { border-color: #cfe0d6; }
.sws-calc__pill.is-selected { background: var(--scc-green); border-color: var(--scc-green); color: #fff; }
.sws-calc__pill.is-locked { cursor: default; }
.sws-calc__pill.is-locked:hover { border-color: var(--scc-line); }
.sws-calc__pill i { font-size: 13px; }
.sws-calc__pill-price { font-size: 12px; margin-left: 2px; color: var(--scc-green); font-weight: 500; }
.sws-calc__pill.is-selected .sws-calc__pill-price { color: rgba(255, 255, 255, .85); }

/* ---------- feature groups ---------- */
.sws-calc__group { margin-bottom: 20px; }
.sws-calc__group:last-child { margin-bottom: 0; }
.sws-calc__group-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 11px; }
.sws-calc__group-title { font-size: 14px; font-weight: 500; color: var(--scc-ink); }
.sws-calc__group-note { font-size: 12px; color: var(--scc-green); font-weight: 500; }

/* ---------- stepper ---------- */
.sws-calc__stepper { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.sws-calc__stepper-btn {
    width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%;
    background: var(--scc-green); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: background .2s ease-out;
}
.sws-calc__stepper-btn:hover { background: var(--scc-accent); }
.sws-calc__stepper-val { text-align: center; min-width: 96px; }
.sws-calc__stepper-num { font-size: 40px; font-weight: 500; color: var(--scc-ink); line-height: 1; }
.sws-calc__stepper-unit { font-size: 12.5px; color: var(--scc-muted); margin-top: 4px; }
.sws-calc__stepper-included { font-size: 13px; color: var(--scc-muted); line-height: 1.5; flex: 1 1 140px; }

/* ---------- info note / hint row ---------- */
.sws-calc__note {
    margin-top: 18px; padding: 14px 16px; background: var(--scc-soft);
    border: 1px solid #d7e6dd; border-radius: var(--scc-radius);
    font-size: 13.5px; color: var(--scc-body); line-height: 1.5;
    display: flex; gap: 8px; align-items: flex-start;
}
.sws-calc__note i { color: var(--scc-green); margin-top: 2px; }
.sws-calc__hint-row {
    margin-top: 12px; font-size: 12px; color: #999; line-height: 1.5;
    display: flex; gap: 7px; align-items: flex-start;
}
.sws-calc__hint-row i { margin-top: 2px; color: #bbb; }

/* ---------- subsection ---------- */
.sws-calc__subsection { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--scc-line-soft); }
.sws-calc__subsection-title { font-size: 15px; font-weight: 500; color: var(--scc-ink); margin-bottom: 14px; }
.sws-calc__subsection .sws-calc__q-hint { margin-top: -8px; }

/* ---------- nav ---------- */
.sws-calc__nav {
    padding: 16px 30px; border-top: 1px solid var(--scc-line-soft);
    display: flex; align-items: center; gap: 12px;
}
.sws-calc__nav-spacer { flex: 1; }
.sws-calc__btn {
    height: 46px; padding: 0 22px; border-radius: var(--scc-radius); font-size: 14.5px;
    cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
    transition: border-color .2s ease-out, color .2s ease-out, background .2s ease-out;
}
.sws-calc__btn i { font-size: 12px; }
.sws-calc__btn--back { border: 1px solid var(--scc-line); background: #fff; color: var(--scc-ink); }
.sws-calc__btn--back:hover { border-color: var(--scc-accent); color: var(--scc-accent); }
.sws-calc__btn--next { border: 0; background: var(--scc-green); color: #fff; padding: 0 28px; gap: 9px; }
.sws-calc__btn--next:hover { background: var(--scc-accent); }
.sws-calc__btn--ghost {
    height: 44px; border: 1px solid var(--scc-green); background: #fff; color: var(--scc-green);
    font-size: 14px;
}
.sws-calc__btn--ghost:hover { background: var(--scc-green); color: #fff; }

/* ---------- done panel ---------- */
.sws-calc__done { text-align: center; padding: 20px 6px; }
.sws-calc__done-icon {
    width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 50%;
    background: var(--scc-soft-2); color: var(--scc-green);
    display: flex; align-items: center; justify-content: center;
}
.sws-calc__done-icon i { font-size: 26px; }
.sws-calc__done-title { font-size: 20px; font-weight: 500; color: var(--scc-ink); margin-bottom: 8px; }
.sws-calc__done-text { font-size: 14px; color: var(--scc-muted); line-height: 1.6; max-width: 340px; margin: 0 auto 22px; }

/* ---------- estimate: consultation header ---------- */
.sws-calc__consult { padding: 24px 24px 22px; background: var(--scc-dark); color: #fff; }
.sws-calc__consult-icon {
    width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .12);
    display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.sws-calc__consult-icon i { font-size: 17px; }
.sws-calc__consult-title { font-size: 18px; font-weight: 500; line-height: 1.3; margin-bottom: 8px; }
.sws-calc__consult-text { font-size: 13.5px; color: #c9ccce; line-height: 1.55; }
.sws-calc__rough { margin-top: 14px; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, .18); }
.sws-calc__rough-label { font-size: 12px; color: #9aa0a4; }
.sws-calc__rough-val { font-size: 22px; font-weight: 500; }

/* ---------- estimate: number header ---------- */
.sws-calc__num { padding: 22px 24px 20px; background: var(--scc-green); color: #fff; }
.sws-calc__num-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sws-calc__num-eyebrow {
    font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85;
}
.sws-calc__cur { display: flex; border: 1px solid rgba(255, 255, 255, .45); border-radius: .2rem; overflow: hidden; }
.sws-calc__cur-btn {
    width: 30px; height: 26px; border: 0; cursor: pointer; font-size: 14px; font-weight: 500;
    background: transparent; color: #fff; transition: background .15s ease-out, color .15s ease-out;
}
.sws-calc__cur-btn.is-active { background: #fff; color: var(--scc-green); }
.sws-calc__num-low { font-size: 32px; font-weight: 500; line-height: 1.05; }
.sws-calc__num-high { font-size: 14px; opacity: .9; margin-top: 3px; }
/* "equivalent" marker, $ view only; block-level so the 32px amount never wraps. */
.sws-calc__num-equiv { display: block; font-size: 13px; font-weight: 400; line-height: 1.2; opacity: .9; }
.sws-calc__num-note {
    margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(255, 255, 255, .22);
    display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px; line-height: 1.45; opacity: .85;
}
.sws-calc__num-note i { margin-top: 2px; }
/* .sws-calc__rough already draws a divider above — a second one would read as a bug. */
.sws-calc__consult .sws-calc__num-note { border-top: 0; padding-top: 8px; }
.sws-calc__timeline {
    margin-top: 14px; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, .22);
    font-size: 13px; display: flex; align-items: center; gap: 8px;
}
.sws-calc__timeline strong { font-weight: 500; }

/* ---------- estimate: breakdown rows ---------- */
.sws-calc__rows { padding: 18px 24px 4px; }
.sws-calc__rows-head {
    font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--scc-muted); margin-bottom: 12px;
}
.sws-calc__row {
    display: flex; justify-content: space-between; gap: 12px; padding: 7px 0;
    border-bottom: 1px solid #f4f4f4; font-size: 13px;
}
.sws-calc__row-label { color: var(--scc-body); line-height: 1.35; }
.sws-calc__row-val { color: var(--scc-ink); font-weight: 500; white-space: nowrap; }

/* ---------- lead area ---------- */
.sws-calc__lead { padding: 18px 24px 24px; }
.sws-calc__lead-text { font-size: 13.5px; color: var(--scc-body); line-height: 1.5; margin-bottom: 14px; }
.sws-calc__input {
    width: 100%; height: 46px; padding: 0 14px; margin-bottom: 10px; font-size: 15px;
    color: var(--scc-ink); border: 1px solid var(--scc-line); border-radius: var(--scc-radius);
    outline: none;
}
.sws-calc__input:focus { border-color: var(--scc-green); }
.sws-calc__submit {
    width: 100%; height: 48px; margin-top: 2px; border: 0; border-radius: var(--scc-radius);
    background: var(--scc-green); color: #fff; font-size: 15px; cursor: pointer; transition: background .2s ease-out;
}
.sws-calc__submit:hover { background: var(--scc-accent); }
.sws-calc__disclaimer { font-size: 11.5px; color: #999; text-align: center; margin-top: 10px; line-height: 1.4; }
.sws-calc__cta {
    width: 100%; height: 50px; border: 0; border-radius: var(--scc-radius);
    background: var(--scc-green); color: #fff; font-size: 15.5px; font-weight: 500; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 9px; transition: background .2s ease-out;
}
.sws-calc__cta:hover { background: var(--scc-accent); }
.sws-calc__phone {
    display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px;
    height: 44px; border: 1px solid var(--scc-line); border-radius: var(--scc-radius);
    color: var(--scc-ink); font-size: 14px; text-decoration: none;
    transition: border-color .2s ease-out, color .2s ease-out;
}
.sws-calc__phone:hover { border-color: var(--scc-green); color: var(--scc-green); }
.sws-calc__phone i { font-size: 13px; }
.sws-calc__thanks { text-align: center; padding: 8px 4px; }
.sws-calc__thanks-icon {
    width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%;
    background: var(--scc-soft-2); color: var(--scc-green);
    display: flex; align-items: center; justify-content: center;
}
.sws-calc__thanks-icon i { font-size: 20px; }
.sws-calc__thanks-title { font-size: 15px; font-weight: 500; color: var(--scc-ink); margin-bottom: 6px; }
.sws-calc__thanks-text { font-size: 13px; color: var(--scc-muted); line-height: 1.55; }
.sws-calc__footnote {
    margin-top: 16px; font-size: 11.5px; color: #999; line-height: 1.5; display: flex; gap: 7px;
}
.sws-calc__footnote i { margin-top: 2px; color: #bbb; }

/* ---------- CF7 lead form ---------- */
/* Hidden only via the attribute (JS removes it to reveal); keeps it hidden for JS-off. */
.sws-calc__leadform[hidden] { display: none !important; }
.sws-calc__form .wpcf7-form { margin: 0; }
.sws-calc__form .wpcf7 { margin: 0; }
.sws-calc__form .sws-lf__field { margin-bottom: 10px; }
.sws-calc__form .wpcf7-form-control-wrap { display: block; }
.sws-calc__form input.wpcf7-text,
.sws-calc__form textarea.wpcf7-textarea {
    width: 100%; padding: 12px 14px; font-size: 15px; line-height: 1.35; font-family: inherit;
    color: var(--scc-ink); background: #fff;
    border: 1px solid var(--scc-line); border-radius: var(--scc-radius); outline: none;
}
.sws-calc__form input.wpcf7-text { height: 46px; padding: 0 14px; }
.sws-calc__form textarea.wpcf7-textarea { min-height: 72px; resize: vertical; }
.sws-calc__form input.wpcf7-text:focus,
.sws-calc__form textarea.wpcf7-textarea:focus { border-color: var(--scc-green); }
.sws-calc__form input.wpcf7-text::placeholder,
.sws-calc__form textarea.wpcf7-textarea::placeholder { color: var(--scc-muted); }
.sws-calc__form .sws-lf__actions { margin-top: 2px; }
.sws-calc__form input.wpcf7-submit {
    width: 100%; height: 48px; border: 0; border-radius: var(--scc-radius); font-family: inherit;
    background: var(--scc-green); color: #fff; font-size: 15px; font-weight: 500;
    cursor: pointer; transition: background .2s ease-out;
}
.sws-calc__form input.wpcf7-submit:hover { background: var(--scc-accent); }
.sws-calc__form input.wpcf7-submit:disabled { opacity: .7; cursor: default; }
.sws-calc__form .cf-turnstile { margin: 0 0 12px; }
.sws-calc__form .wpcf7-spinner { margin: 10px auto 0; display: block; }
.sws-calc__form input.wpcf7-not-valid,
.sws-calc__form textarea.wpcf7-not-valid { border-color: #dc3232; }
.sws-calc__form .wpcf7-not-valid-tip { margin-top: 6px; font-size: 12.5px; color: #dc3232; line-height: 1.35; }
/* Reveal CF7's own localized messages (the theme hides them globally). Only
   when non-empty — otherwise the empty output shows as a stray bordered box in
   the initial `.init` state. `:not(:empty)` gives 0,4,0 to beat both the global
   `.wpcf7 form .wpcf7-response-output` (0,2,1) hide and stay off when blank. */
.sws-calc .sws-calc__form .wpcf7-response-output:not(:empty) {
    display: block !important; margin: 12px 0 0; padding: 10px 12px;
    font-size: 12.5px; line-height: 1.4; text-align: left;
    border: 1px solid var(--scc-line); border-radius: var(--scc-radius);
}
.sws-calc__form .wpcf7-form.invalid .wpcf7-response-output,
.sws-calc__form .wpcf7-form.unaccepted .wpcf7-response-output,
.sws-calc__form .wpcf7-form.spam .wpcf7-response-output,
.sws-calc__form .wpcf7-form.failed .wpcf7-response-output { border-color: #dc3232; color: #b32d2e; }

/* ---------- noscript fallback ---------- */
.sws-calc__noscript {
    padding: 20px 24px; border: 1px solid var(--scc-line); border-radius: var(--scc-radius);
    background: #fff; text-align: center; color: var(--scc-body); font-size: 15px;
}

/* ---------- responsive ---------- */
@media (max-width: 767.98px) {
    .sws-calc__panel { position: static; flex-basis: 100%; }
    .sws-calc__title { font-size: 27px; }
    .sws-calc__body { padding: 22px 18px; }
    .sws-calc__progress { padding: 18px 18px; }
    .sws-calc__nav { padding: 14px 18px; }
    .sws-calc__stepper { gap: 14px; }
}
