.ccic {
    --ccic-ink: #1e252b;
    --ccic-muted: #667078;
    --ccic-line: #d8d3c8;
    --ccic-paper: #fffdf9;
    --ccic-soft: #f6f2e9;
    --ccic-deep: #213646;
    --ccic-deep-2: #172630;
    --ccic-bronze: #9b6838;
    --ccic-bronze-soft: #ead8c5;
    --ccic-green: #496756;
    color: var(--ccic-ink);
    font-family: inherit;
}

.ccic * { box-sizing: border-box; }

.ccic-shell {
    max-width: 980px;
    margin: 0 auto;
    border: 1px solid var(--ccic-line);
    border-radius: 22px;
    overflow: hidden;
    background: var(--ccic-paper);
    box-shadow: 0 18px 48px rgba(34, 37, 39, .08);
}

.ccic-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 32px 36px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 20%, rgba(255,255,255,.09), transparent 22%),
        linear-gradient(135deg, var(--ccic-deep-2), var(--ccic-deep));
}

.ccic-eyebrow,
.ccic-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ccic-eyebrow { color: #e7c8a8; }
.ccic-kicker { color: var(--ccic-bronze); }

.ccic-hero h2 {
    margin: 8px 0 10px;
    font-size: clamp(29px, 4.5vw, 44px);
    line-height: 1.08;
}

.ccic-hero p {
    max-width: 720px;
    margin: 0;
    color: #e4e8eb;
    line-height: 1.65;
}

.ccic-emblem {
    min-width: 154px;
    padding: 18px 20px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    text-align: center;
    background: rgba(255,255,255,.06);
}

.ccic-emblem span,
.ccic-emblem strong,
.ccic-emblem small { display: block; }
.ccic-emblem span { color: #d9c0a8; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ccic-emblem strong { margin: 2px 0; color: #fff4e8; font-size: 25px; }
.ccic-emblem small { color: #c9d0d5; font-size: 11px; }

.ccic-guidance {
    margin: 24px 36px 0;
    padding: 15px 17px;
    border: 1px solid #e1d6c6;
    border-left: 4px solid var(--ccic-bronze);
    border-radius: 11px;
    background: #fffaf2;
    line-height: 1.6;
}

.ccic-form { padding: 24px 36px 15px; }
.ccic-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.ccic-field { display: block; min-width: 0; padding: 17px; border: 1px solid var(--ccic-line); border-radius: 14px; background: #fff; }
.ccic-label { display: block; margin-bottom: 8px; font-weight: 850; line-height: 1.35; }
.ccic-label b { color: #ae382d; }
.ccic-optional { margin-left: 5px; color: var(--ccic-muted); font-size: 12px; font-weight: 650; }

.ccic-money,
.ccic-number {
    display: flex;
    min-width: 0;
    min-height: 50px;
    align-items: center;
    border: 1px solid #bfc4c7;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.ccic-money > span,
.ccic-number > span {
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 0 13px;
    border-right: 1px solid #ddd8cf;
    color: #5f666b;
    font-weight: 850;
    background: #faf8f3;
}

.ccic-number > span { border-right: 0; border-left: 1px solid #ddd8cf; white-space: nowrap; }

.ccic input,
.ccic select {
    width: 100%;
    min-width: 0;
    padding: 13px 14px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ccic-ink);
    font: inherit;
    font-size: 16px;
}

.ccic-money:focus-within,
.ccic-number:focus-within,
.ccic-combo select:focus {
    border-color: var(--ccic-bronze);
    box-shadow: 0 0 0 3px rgba(155,104,56,.12);
}

.ccic-combo { display: grid; grid-template-columns: minmax(0,1fr) 145px; gap: 8px; }
.ccic-combo select { min-height: 50px; border: 1px solid #bfc4c7; border-radius: 10px; background: #fff; }
.ccic-field small { display: block; margin-top: 8px; color: var(--ccic-muted); line-height: 1.45; }
.ccic-error { display: block; min-height: 18px; margin-top: 5px; color: #ae382d; font-size: 12px; font-style: normal; font-weight: 750; }

.ccic-quick { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.ccic-quick button,
.ccic-secondary {
    appearance: none;
    border: 1px solid #c7c1b7;
    border-radius: 9px;
    background: #fff;
    color: var(--ccic-ink);
    font: inherit;
    font-weight: 760;
    cursor: pointer;
}
.ccic-quick button { padding: 7px 10px; font-size: 13px; }
.ccic-quick button:hover,
.ccic-secondary:hover { background: var(--ccic-soft); }

.ccic-actions { display: flex; gap: 10px; padding-top: 18px; }
.ccic-primary,
.ccic-secondary { min-height: 48px; padding: 0 18px; }
.ccic-primary {
    flex: 1;
    border: 0;
    border-radius: 10px;
    background: var(--ccic-deep);
    color: #fff;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}
.ccic-primary:hover { background: var(--ccic-deep-2); }

.ccic-results {
    margin: 14px 36px 28px;
    padding: 23px;
    border: 1px solid #d9d2c7;
    border-radius: 17px;
    background: #fffefa;
}

.ccic-result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.ccic-result-head h3 { margin: 5px 0 4px; color: var(--ccic-deep); font-size: clamp(35px, 6vw, 52px); line-height: 1; }
.ccic-result-head p { max-width: 650px; margin: 8px 0 0; color: var(--ccic-muted); line-height: 1.55; }
.ccic-result-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ccic-small { min-height: 38px; padding: 0 12px; font-size: 13px; }

.ccic-value-band { margin: 20px 0 16px; padding: 16px; border: 1px solid var(--ccic-line); border-radius: 13px; background: #fff; }
.ccic-value-band > div:first-child { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.ccic-value-band > div:first-child span { color: var(--ccic-muted); }
.ccic-value-band > div:first-child strong { color: var(--ccic-deep); font-size: 20px; }
.ccic-track { height: 11px; margin-top: 11px; border-radius: 999px; background: #ece8df; overflow: hidden; }
.ccic-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a77648, #d3b189); transition: width .25s ease; }
.ccic-band-labels { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--ccic-muted); font-size: 12px; }

.ccic-cards,
.ccic-mile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ccic-card { min-width: 0; padding: 15px; border: 1px solid var(--ccic-line); border-radius: 12px; background: #fff; }
.ccic-card span { display: block; min-height: 34px; color: var(--ccic-muted); font-size: 12px; line-height: 1.35; }
.ccic-card strong { display: block; margin-top: 4px; color: var(--ccic-ink); font-size: 19px; word-break: break-word; }
.ccic-card small { display: block; margin-top: 5px; color: #7b7f82; font-size: 11px; line-height: 1.35; }

.ccic-mileage { margin-top: 17px; padding: 18px; border: 1px solid #d4ddd6; border-radius: 13px; background: #f8fbf8; }
.ccic-mileage h4 { margin: 0 0 11px; color: var(--ccic-green); font-size: 18px; }
.ccic-mileage > p { margin: 11px 0 0; color: var(--ccic-muted); font-size: 13px; line-height: 1.55; }

.ccic-breakdown { margin-top: 17px; padding: 18px; border: 1px solid var(--ccic-line); border-radius: 13px; background: #fff; }
.ccic-breakdown h4 { margin: 0 0 10px; font-size: 18px; }
.ccic-break-list > div { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-bottom: 1px dashed #dfdbd2; }
.ccic-break-list > div:last-child { border-bottom: 0; }
.ccic-break-list span { color: var(--ccic-muted); }
.ccic-break-list strong { text-align: right; }
.ccic-break-list .ccic-total { padding: 12px 0; }
.ccic-break-list .ccic-total span,
.ccic-break-list .ccic-total strong { color: var(--ccic-deep); font-weight: 850; }
.ccic-inline-note { margin: 12px 0 0; padding: 12px 13px; border-radius: 9px; background: #fff8ee; color: #6c4a2d; font-size: 13px; line-height: 1.55; }

.ccic-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; padding: 0 36px 26px; }
.ccic-info-grid article { padding: 17px; border: 1px solid var(--ccic-line); border-radius: 12px; background: #fff; }
.ccic-info-grid strong { display: block; margin-bottom: 6px; }
.ccic-info-grid p { margin: 0; color: var(--ccic-muted); font-size: 14px; line-height: 1.55; }

.ccic-disclaimer { margin: 0 36px 36px; padding: 18px; border: 1px solid #e2d0b9; border-radius: 13px; background: #fff8ee; }
.ccic-disclaimer strong { display: block; margin-bottom: 6px; color: #6f4928; }
.ccic-disclaimer p { margin: 0; color: #65513f; font-size: 13px; line-height: 1.62; }

@media (max-width: 760px) {
    .ccic-hero { grid-template-columns: 1fr; padding: 26px 20px; }
    .ccic-emblem { display: none; }
    .ccic-guidance { margin: 18px 20px 0; }
    .ccic-form { padding: 20px 20px 10px; }
    .ccic-grid { grid-template-columns: 1fr; }
    .ccic-results { margin: 12px 20px 24px; padding: 18px; }
    .ccic-result-head { display: block; }
    .ccic-result-actions { justify-content: flex-start; margin-top: 14px; }
    .ccic-cards,
    .ccic-mile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ccic-info-grid { grid-template-columns: 1fr; padding: 0 20px 22px; }
    .ccic-disclaimer { margin: 0 20px 24px; }
}

@media (max-width: 520px) {
    .ccic-combo { grid-template-columns: 1fr; }
    .ccic-actions { flex-direction: column; }
    .ccic-primary,
    .ccic-secondary { width: 100%; }
    .ccic-cards,
    .ccic-mile-grid { grid-template-columns: 1fr; }
    .ccic-band-labels,
    .ccic-value-band > div:first-child,
    .ccic-break-list > div { align-items: flex-start; flex-direction: column; gap: 4px; }
    .ccic-break-list strong { text-align: left; }
}

@media print {
    .ccic-actions,
    .ccic-result-actions,
    .ccic-quick { display: none !important; }
    .ccic-shell { box-shadow: none; }
}
