.cc-app [hidden] { display: none !important; }

.cc-app {
    --cc-accent: #1f6feb;
    --cc-accent-strong: #164fba;
    --cc-accent-soft: #eaf2ff;
    --cc-success: #12805c;
    --cc-warning: #9a6700;
    --cc-danger: #c93737;
    --cc-ink: #142033;
    --cc-muted: #667085;
    --cc-line: #dfe5ec;
    --cc-surface: #ffffff;
    --cc-surface-soft: #f6f8fb;
    --cc-shadow: 0 18px 46px rgba(20, 32, 51, 0.09);
    --cc-radius: 18px;
    color: var(--cc-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    margin: 0 auto 5rem;
    max-width: 1420px;
    position: relative;
}

.cc-app *,
.cc-app *::before,
.cc-app *::after { box-sizing: border-box; }

@media (prefers-color-scheme: dark) {
    .cc-app[data-theme="auto"] {
        --cc-ink: #edf4ff;
        --cc-muted: #a8b4c5;
        --cc-line: #334155;
        --cc-surface: #152033;
        --cc-surface-soft: #101827;
        --cc-accent-soft: #17345c;
        --cc-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
    }
}

.cc-app button,
.cc-app input,
.cc-app textarea,
.cc-app select { font: inherit; }

.cc-hero {
    align-items: end;
    background: linear-gradient(128deg, #0d2445 0%, #153d70 62%, #1f6feb 100%);
    border-radius: 24px;
    color: #fff;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    overflow: hidden;
    padding: clamp(1.75rem, 4vw, 3.5rem);
    position: relative;
}

.cc-hero::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 65%);
    content: "";
    height: 360px;
    position: absolute;
    right: -100px;
    top: -190px;
    width: 360px;
}

.cc-hero__copy { max-width: 760px; position: relative; z-index: 1; }
.cc-eyebrow { font-size: 0.73rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.cc-title { color: inherit; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.035em; line-height: 1.05; margin: 0.45rem 0 0.9rem; }
.cc-subtitle { color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; margin: 0; max-width: 680px; }
.cc-hero__trust { display: grid; flex: 0 0 auto; gap: 0.55rem; position: relative; z-index: 1; }
.cc-hero__trust span { align-items: center; display: flex; font-size: 0.86rem; font-weight: 700; gap: 0.5rem; }
.cc-hero__trust span::before { background: #66e3b4; border-radius: 50%; content: ""; height: 8px; width: 8px; }

.cc-progress {
    background: var(--cc-surface);
    border: 1px solid var(--cc-line);
    border-radius: var(--cc-radius);
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem 0.75rem;
}
.cc-saved { background: var(--cc-surface); border: 1px solid var(--cc-line); border-radius: var(--cc-radius); margin-bottom: 1.25rem; padding: 1rem; }
.cc-saved h2 { font-size: 1.15rem; margin: 0.2rem 0 0.75rem; }
.cc-saved__list { display: grid; gap: 0.65rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.cc-saved__list a { background: var(--cc-surface-soft); border: 1px solid var(--cc-line); border-radius: 12px; color: var(--cc-ink); display: grid; gap: 0.2rem; padding: 0.75rem; text-decoration: none; }
.cc-saved__list a:hover { border-color: var(--cc-accent); }
.cc-saved__list span, .cc-saved__list small { color: var(--cc-muted); }

.cc-progress__list { display: grid; gap: 0.35rem; grid-template-columns: repeat(9, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.cc-progress__item button { background: none; border: 0; color: var(--cc-muted); cursor: pointer; display: block; font-size: 0.68rem; font-weight: 750; overflow: hidden; padding: 0.35rem; text-align: center; text-overflow: ellipsis; white-space: nowrap; width: 100%; }
.cc-progress__item.is-active button { color: var(--cc-accent); }
.cc-progress__item.is-complete button { color: var(--cc-success); }
.cc-progress__bar { background: #edf0f4; border-radius: 999px; height: 4px; margin-top: 0.55rem; overflow: hidden; }
.cc-progress__bar span { background: linear-gradient(90deg, var(--cc-accent), #59a0ff); border-radius: inherit; display: block; height: 100%; transition: width 220ms ease; width: 0; }
.cc-progress__mobile { display: none; font-size: 0.82rem; font-weight: 700; margin: 0.6rem 0 0; }

.cc-layout { align-items: start; display: grid; gap: clamp(1rem, 2.6vw, 2rem); grid-template-columns: minmax(0, 1fr) minmax(310px, 390px); }
.cc-builder { min-width: 0; }
.cc-step { animation: cc-fade-in 180ms ease both; background: var(--cc-surface); border: 1px solid var(--cc-line); border-radius: var(--cc-radius); box-shadow: 0 8px 26px rgba(20, 32, 51, 0.045); padding: clamp(1.2rem, 3vw, 2rem); }
.cc-step__heading { align-items: flex-start; display: flex; gap: 0.85rem; margin-bottom: 1.4rem; }
.cc-step__number { align-items: center; background: var(--cc-accent-soft); border-radius: 12px; color: var(--cc-accent-strong); display: inline-flex; flex: 0 0 42px; font-size: 0.78rem; font-weight: 850; height: 42px; justify-content: center; }
.cc-step__heading h2 { color: var(--cc-ink); font-size: clamp(1.25rem, 2vw, 1.7rem); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 0.28rem; }
.cc-step__heading p { color: var(--cc-muted); margin: 0; }

.cc-card-grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cc-card-grid--packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cc-option-group + .cc-option-group { border-top: 1px solid var(--cc-line); margin-top: 1.6rem; padding-top: 1.35rem; }
.cc-option-group h3 { font-size: 0.92rem; margin: 0 0 0.8rem; }

.cc-choice {
    background: var(--cc-surface);
    border: 1.5px solid var(--cc-line);
    border-radius: 15px;
    color: var(--cc-ink);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 128px;
    padding: 1rem;
    position: relative;
    text-align: left;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
    width: 100%;
}

.cc-choice:hover { border-color: #a7bfdc; box-shadow: 0 8px 22px rgba(20, 32, 51, 0.08); transform: translateY(-1px); }
.cc-choice:focus-visible { box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.19); outline: none; }
.cc-choice.is-selected { background: linear-gradient(180deg, #fff, var(--cc-accent-soft)); border-color: var(--cc-accent); box-shadow: 0 0 0 1px var(--cc-accent); }
.cc-choice.is-disabled { background: #f5f6f8; cursor: not-allowed; opacity: 0.62; transform: none; }
.cc-choice__top { align-items: flex-start; display: flex; gap: 0.75rem; justify-content: space-between; }
.cc-choice__name { font-size: 1rem; font-weight: 780; line-height: 1.3; }
.cc-choice__badge { background: var(--cc-accent); border-radius: 999px; color: #fff; font-size: 0.66rem; font-weight: 800; padding: 0.22rem 0.55rem; text-transform: uppercase; }
.cc-choice__description { color: var(--cc-muted); font-size: 0.82rem; margin: 0.45rem 0 0.8rem; }
.cc-choice__meta { align-items: end; display: flex; gap: 0.5rem; justify-content: space-between; margin-top: auto; }
.cc-choice__price { color: var(--cc-ink); font-size: 0.82rem; font-weight: 750; }
.cc-choice__reason { color: var(--cc-danger); display: block; font-size: 0.73rem; margin-top: 0.6rem; }
.cc-choice__check { align-items: center; border: 1.5px solid #b8c1cd; border-radius: 50%; display: flex; flex: 0 0 22px; height: 22px; justify-content: center; width: 22px; }
.cc-choice.is-selected .cc-choice__check { background: var(--cc-accent); border-color: var(--cc-accent); }
.cc-choice.is-selected .cc-choice__check::after { border: solid #fff; border-width: 0 2px 2px 0; content: ""; height: 9px; transform: rotate(45deg) translate(-1px, -1px); width: 5px; }

.cc-quantity { align-items: center; background: var(--cc-surface-soft); border-radius: 10px; display: flex; gap: 0.45rem; margin-top: 0.75rem; padding: 0.45rem; }
.cc-quantity label { color: var(--cc-muted); font-size: 0.76rem; font-weight: 700; }
.cc-quantity input { background: var(--cc-surface); border: 1px solid var(--cc-line); border-radius: 8px; color: var(--cc-ink); margin-left: auto; max-width: 88px; min-height: 38px; padding: 0.35rem 0.5rem; text-align: right; }

.cc-field { margin-top: 1.25rem; }
.cc-field label { display: block; font-weight: 750; margin-bottom: 0.4rem; }
.cc-field textarea,
.cc-field select,
.cc-share input { background: var(--cc-surface); border: 1px solid var(--cc-line); border-radius: 10px; color: var(--cc-ink); padding: 0.7rem 0.8rem; width: 100%; }
.cc-field select { display: block; margin-top: 0.4rem; }
.cc-span-all { grid-column: 1 / -1; }
.cc-field small { color: var(--cc-muted); display: block; margin-top: 0.3rem; }
.cc-note { background: var(--cc-surface-soft); border-left: 3px solid var(--cc-accent); border-radius: 8px; color: var(--cc-muted); font-size: 0.84rem; margin-top: 1.2rem; padding: 0.75rem 0.9rem; }

.cc-navigation { display: flex; gap: 0.7rem; justify-content: space-between; margin-top: 1rem; }
.cc-button { align-items: center; border: 1px solid transparent; border-radius: 11px; cursor: pointer; display: inline-flex; font-weight: 760; justify-content: center; min-height: 46px; padding: 0.7rem 1rem; transition: background 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease; }
.cc-button:hover:not(:disabled) { transform: translateY(-1px); }
.cc-button:focus-visible { box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.2); outline: none; }
.cc-button:disabled { cursor: not-allowed; opacity: 0.5; }
.cc-button--primary { background: var(--cc-accent); color: #fff; margin-left: auto; }
.cc-button--primary:hover:not(:disabled), .cc-button--order:hover:not(:disabled) { background: var(--cc-accent-strong); }
.cc-button--secondary { background: #fff; border-color: var(--cc-line); color: var(--cc-ink); }
.cc-button--ghost { background: transparent; color: var(--cc-muted); }
.cc-button--order { background: var(--cc-accent); color: #fff; }

.cc-summary { background: var(--cc-surface); border: 1px solid var(--cc-line); border-radius: var(--cc-radius); box-shadow: var(--cc-shadow); padding: 1.35rem; position: sticky; top: 1rem; }
.cc-summary__header { align-items: start; border-bottom: 1px solid var(--cc-line); display: flex; gap: 0.8rem; justify-content: space-between; padding-bottom: 1rem; }
.cc-summary__header .cc-eyebrow { color: var(--cc-muted); }
.cc-summary__header h2 { font-size: 1.25rem; margin: 0.22rem 0 0; }
.cc-summary__valid { background: #e8f7f1; border-radius: 999px; color: var(--cc-success); font-size: 0.67rem; font-weight: 800; padding: 0.24rem 0.5rem; }
.cc-summary__lines { border-bottom: 1px solid var(--cc-line); max-height: 320px; overflow: auto; padding: 0.8rem 0; }
.cc-summary-line { align-items: start; display: flex; font-size: 0.83rem; gap: 0.7rem; justify-content: space-between; padding: 0.36rem 0; }
.cc-summary-line span:first-child { color: var(--cc-muted); }
.cc-summary-line strong { flex: 0 0 auto; font-weight: 750; }
.cc-muted { color: var(--cc-muted); }
.cc-summary__totals { display: grid; gap: 0.52rem; padding: 0.9rem 0 0.6rem; }
.cc-summary__totals > div { align-items: center; display: flex; font-size: 0.82rem; gap: 0.75rem; justify-content: space-between; }
.cc-summary__totals span { color: var(--cc-muted); }
.cc-summary__totals strong { font-size: 0.92rem; }
.cc-summary__first-invoice { border-top: 1px solid var(--cc-line); margin-top: 0.35rem; padding-top: 0.75rem; }
.cc-summary__first-invoice strong { color: var(--cc-accent-strong); font-size: 1.2rem; }
.cc-summary__tax-note, .cc-summary__secure { color: var(--cc-muted); font-size: 0.72rem; margin: 0.3rem 0 0.9rem; }
.cc-summary__actions { display: grid; gap: 0.6rem; }
.cc-summary__secure { margin: 0.65rem 0 0; text-align: center; }

.cc-review { display: grid; gap: 0.65rem; }
.cc-review__section { align-items: start; border: 1px solid var(--cc-line); border-radius: 12px; display: flex; gap: 1rem; justify-content: space-between; padding: 0.9rem 1rem; }
.cc-review__section span { color: var(--cc-muted); font-size: 0.78rem; }
.cc-review__section strong { display: block; }
.cc-share { background: var(--cc-surface-soft); border-radius: 13px; margin-top: 1rem; padding: 1rem; }
.cc-share label { display: block; font-size: 0.82rem; font-weight: 750; margin-bottom: 0.4rem; }
.cc-share__row { display: flex; gap: 0.5rem; }
.cc-share__row input { min-width: 0; }
.cc-share p { color: var(--cc-success); font-size: 0.78rem; margin: 0.4rem 0 0; }

.cc-alert { border: 1px solid; border-radius: 12px; margin: 0 0 1rem; padding: 0.8rem 1rem; }
.cc-alert ul { margin: 0.35rem 0 0; padding-left: 1.2rem; }
.cc-alert--danger { background: #fff2f2; border-color: #efc3c3; color: #8f2424; }
.cc-alert--warning { background: #fff8e6; border-color: #ead49b; color: #765000; }
.cc-status { align-items: center; display: flex; gap: 0.65rem; justify-content: center; min-height: 140px; }
.cc-spinner { animation: cc-spin 750ms linear infinite; border: 3px solid #dbe4ef; border-radius: 50%; border-top-color: var(--cc-accent); height: 26px; width: 26px; }
.cc-empty { background: var(--cc-surface); border: 1px solid var(--cc-line); border-radius: var(--cc-radius); padding: 3rem 1.5rem; text-align: center; }
.cc-empty__icon { align-items: center; background: var(--cc-accent-soft); border-radius: 50%; color: var(--cc-accent); display: inline-flex; font-size: 1.3rem; font-weight: 900; height: 50px; justify-content: center; width: 50px; }
.cc-empty h2 { margin: 0.8rem 0 0.4rem; }
.cc-empty p { color: var(--cc-muted); margin: 0 auto; max-width: 570px; }

.cc-mobile-bar { display: none; }
.cc-toast { background: #142033; border-radius: 10px; bottom: 1rem; box-shadow: var(--cc-shadow); color: #fff; left: 50%; max-width: calc(100% - 2rem); padding: 0.7rem 1rem; position: fixed; transform: translateX(-50%); z-index: 1000; }

@keyframes cc-spin { to { transform: rotate(360deg); } }
@keyframes cc-fade-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
    .cc-app { margin-bottom: 7rem; }
    .cc-layout { display: block; }
    .cc-summary { display: none; }
    .cc-hero { align-items: start; flex-direction: column; }
    .cc-hero__trust { grid-template-columns: repeat(3, auto); }
    .cc-progress__list { display: none; }
    .cc-progress__mobile { display: block; }
    .cc-mobile-bar { align-items: stretch; background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--cc-line); bottom: 0; box-shadow: 0 -12px 35px rgba(20, 32, 51, 0.14); display: grid; gap: 0.65rem; grid-template-columns: minmax(0, 1fr) auto; left: 0; padding: 0.7rem max(0.8rem, env(safe-area-inset-left)) max(0.7rem, env(safe-area-inset-bottom)); position: fixed; right: 0; z-index: 990; }
    .cc-mobile-bar__summary { background: transparent; border: 0; color: var(--cc-ink); min-width: 0; padding: 0.25rem; text-align: left; }
    .cc-mobile-bar__summary span { color: var(--cc-muted); display: block; font-size: 0.68rem; }
    .cc-mobile-bar__summary strong { display: block; font-size: 1.08rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .cc-mobile-bar__panel { background: #fff; border: 1px solid var(--cc-line); border-radius: 14px; bottom: calc(100% + 0.5rem); box-shadow: var(--cc-shadow); grid-column: 1 / -1; left: 0.7rem; max-height: min(60vh, 500px); overflow: auto; padding: 1rem; position: absolute; right: 0.7rem; }
}

@media (max-width: 680px) {
    .cc-app { margin-left: -5px; margin-right: -5px; }
    .cc-hero { border-radius: 17px; padding: 1.45rem 1.2rem; }
    .cc-title { font-size: 2rem; }
    .cc-hero__trust { gap: 0.45rem; grid-template-columns: 1fr; }
    .cc-progress { border-radius: 13px; }
    .cc-step { border-radius: 15px; padding: 1rem; }
    .cc-step__number { flex-basis: 36px; height: 36px; }
    .cc-card-grid,
    .cc-card-grid--packages { grid-template-columns: 1fr; }
    .cc-choice { min-height: 112px; padding: 0.9rem; }
    .cc-share__row { align-items: stretch; flex-direction: column; }
    .cc-navigation .cc-button { min-width: 44%; }
}

@media (prefers-reduced-motion: reduce) {
    .cc-app *, .cc-app *::before, .cc-app *::after { animation-duration: 0.01ms !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

