.csi-cost-calculator {
	--csi-navy: #202945;
	--csi-navy-deep: #141b31;
	--csi-gold: #e2b940;
	--csi-gold-light: #fff6d8;
	--csi-ink: #1f2937;
	--csi-muted: #596273;
	--csi-line: #d9dee8;
	--csi-paper: #f5f7fa;
	margin: 2rem 0;
	border: 1px solid var(--csi-line);
	border-top: 7px solid var(--csi-gold);
	border-radius: 9px;
	background: #fff;
	color: var(--csi-ink);
	box-shadow: 0 14px 34px rgba(15, 23, 42, .15);
	overflow: hidden;
}

.csi-cost-calculator *,
.csi-cost-calculator *::before,
.csi-cost-calculator *::after { box-sizing: border-box; }

.csi-cost-calculator__header { padding: 1.9rem 1.9rem 1.55rem; background: linear-gradient(135deg,var(--csi-navy-deep),var(--csi-navy)); color: #fff; }
.csi-cost-calculator__header h2 { margin: .18rem 0 .65rem; color: #fff; font-size: clamp(1.55rem,3vw,2.15rem); line-height: 1.15; }
.csi-cost-calculator__header p:last-child { max-width: 760px; margin-bottom: 0; font-size: 1rem; line-height: 1.6; }
.csi-cost-calculator__eyebrow,
.csi-cost-calculator__result-eyebrow { margin: 0; color: var(--csi-gold); font-size: .8rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }

.csi-cost-calculator__form { padding: 1.35rem 1.8rem 1.65rem; background: var(--csi-paper); }
.csi-cost-calculator__quick-note { margin: 0 0 1rem; padding: .85rem 1rem; border-left: 4px solid var(--csi-gold); border-radius: 3px; background: #fff; color: var(--csi-ink); line-height: 1.5; }
.csi-cost-calculator__form-error { margin: 0 0 1rem; padding: .85rem 1rem; border: 2px solid #a51d2d; border-radius: 5px; background: #fff7f7; color: #8a1c1c; font-weight: 750; line-height: 1.5; }
.csi-cost-calculator__form-error[hidden] { display: none; }
.csi-cost-calculator__section,
.csi-cost-calculator__optional { margin-top: .9rem; border: 1px solid var(--csi-line); border-radius: 7px; background: #fff; box-shadow: 0 2px 8px rgba(32,41,69,.045); }
.csi-cost-calculator__section { padding: 1.25rem; }
.csi-cost-calculator__section h3 { display: flex; align-items: center; gap: .65rem; margin: 0 0 1rem; color: var(--csi-navy); font-size: 1.12rem; font-weight: 850; }
.csi-cost-calculator__section h3 span,
.csi-cost-calculator__optional summary > span:first-child { display: inline-grid; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--csi-gold); color: var(--csi-navy); place-items: center; font-size: .92rem; font-weight: 850; flex: 0 0 auto; }

.csi-cost-calculator__optional summary { display: flex; align-items: center; gap: .7rem; min-height: 62px; padding: .85rem 1rem; color: var(--csi-navy); cursor: pointer; list-style: none; }
.csi-cost-calculator__optional summary::-webkit-details-marker { display: none; }
.csi-cost-calculator__optional summary > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: .08rem; }
.csi-cost-calculator__optional summary strong { font-size: 1rem; line-height: 1.3; }
.csi-cost-calculator__optional summary small { color: var(--csi-muted); font-size: .83rem; line-height: 1.35; }
.csi-cost-calculator__optional summary::after { content: '+'; display: grid; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--csi-paper); color: var(--csi-navy); font-size: 1.3rem; font-weight: 700; place-items: center; flex: 0 0 auto; }
.csi-cost-calculator__optional[open] summary { border-bottom: 1px solid var(--csi-line); background: #fffdf5; }
.csi-cost-calculator__optional[open] summary::after { content: '−'; }
.csi-cost-calculator__optional-body { padding: 1.05rem 1.2rem 1.2rem; }
.csi-cost-calculator__intro { margin: 0 0 1rem; color: var(--csi-muted); font-size: .94rem; line-height: 1.5; }

.csi-cost-calculator__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.csi-cost-calculator__grid--three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.csi-cost-calculator__field--wide { grid-column: 1 / -1; }
.csi-cost-calculator__field label { display: block; min-height: 1.4em; margin-bottom: .42rem; color: var(--csi-navy); font-weight: 750; line-height: 1.4; }
.csi-cost-calculator__field small { display: block; margin-top: .38rem; color: var(--csi-muted); font-size: .83rem; line-height: 1.45; }
.csi-cost-calculator__field input,
.csi-cost-calculator__field select { width: 100%; min-height: 48px; padding: .7rem .78rem; border: 1px solid #bfc6d3; border-radius: 5px; background: #fff; color: #111827; font: inherit; }
.csi-cost-calculator__field input:hover,
.csi-cost-calculator__field select:hover { border-color: #8d96a8; }
.csi-cost-calculator__field input:focus,
.csi-cost-calculator__field select:focus,
.csi-cost-calculator button:focus,
.csi-cost-calculator a:focus,
.csi-cost-calculator__result:focus,
.csi-cost-calculator summary:focus { outline: 3px solid var(--csi-gold); outline-offset: 3px; }
.csi-cost-calculator__field input[aria-invalid="true"] { border: 3px solid #a51d2d; background: #fff7f7; }

.csi-cost-calculator__preview { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .16rem .8rem; margin-top: .65rem; padding: .75rem .85rem; border: 1px solid #ead27e; border-radius: 5px; background: var(--csi-gold-light); }
.csi-cost-calculator__preview span { color: var(--csi-muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .035em; }
.csi-cost-calculator__preview strong { color: var(--csi-navy); font-size: 1.05rem; text-align: right; }
.csi-cost-calculator__preview small { grid-column: 1 / -1; margin: 0; color: var(--csi-muted); }

.csi-cost-calculator__risks { margin: 0; padding: 0; border: 0; }
.csi-cost-calculator__checks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem 1.15rem; }
.csi-cost-calculator__checks label { display: flex; align-items: flex-start; gap: .55rem; color: var(--csi-ink); line-height: 1.45; }
.csi-cost-calculator__checks input { width: 1.15rem; height: 1.15rem; margin-top: .16rem; accent-color: var(--csi-gold); flex: 0 0 auto; }
.csi-cost-calculator__sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.csi-cost-calculator__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.15rem; }
.csi-cost-calculator__button,
.csi-cost-calculator__result-actions button { min-height: 47px; padding: .76rem 1.15rem; border: 2px solid var(--csi-gold); border-radius: 5px; background: var(--csi-gold); color: var(--csi-navy); font: inherit; font-weight: 850; cursor: pointer; }
.csi-cost-calculator__button:hover,
.csi-cost-calculator__result-actions button:hover { border-color: #c9a12e; background: #f0cb60; }
.csi-cost-calculator__button--secondary { border-color: #9da6b6; background: #fff; color: var(--csi-navy); }

.csi-cost-calculator__result { margin: 1.4rem 1.8rem 1rem; padding: 1.4rem; border: 1px solid var(--csi-line); border-top: 6px solid var(--csi-gold); border-radius: 6px; background: #fff; color: var(--csi-ink); box-shadow: 0 7px 20px rgba(32,41,69,.08); }
.csi-cost-calculator__stale,
.csi-cost-calculator__share-status { margin: 1.15rem 1.8rem 0; padding: .85rem 1rem; border-left: 4px solid var(--csi-gold); border-radius: 4px; background: var(--csi-gold-light); color: var(--csi-navy); font-weight: 750; line-height: 1.5; }
.csi-cost-calculator__stale[hidden] { display: none; }
.csi-cost-calculator__share-status { border: 1px solid #c9d3e4; border-left: 4px solid var(--csi-navy); background: #f4f7fb; }
.csi-cost-calculator__share-status[hidden] { display: none; }
.csi-cost-calculator__result h3 { margin: .15rem 0 .35rem; color: var(--csi-navy); }
.csi-cost-calculator__result h4 { color: var(--csi-navy); }
.csi-cost-calculator__result-lead { margin-top: 0; color: var(--csi-muted); }
.csi-cost-calculator__range { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; margin: 1.15rem 0 1.35rem; }
.csi-cost-calculator__range-card { padding: 1rem; border: 1px solid var(--csi-line); border-radius: 6px; background: var(--csi-paper); }
.csi-cost-calculator__range-card.is-primary { border: 3px solid var(--csi-gold); background: #fffaf0; }
.csi-cost-calculator__range-card h4 { margin: 0 0 .35rem; font-size: .95rem; }
.csi-cost-calculator__range-card strong { display: block; color: var(--csi-navy); font-size: clamp(1.25rem,2.3vw,1.7rem); line-height: 1.15; }
.csi-cost-calculator__range-card span { display: block; margin-top: .35rem; color: var(--csi-muted); font-size: .88rem; }
.csi-cost-calculator__subheading { margin: 1.4rem 0 .6rem; }
.csi-cost-calculator__table-wrap { max-width: 100%; overflow-x: auto; }
.csi-cost-calculator__table { width: 100%; min-width: 520px; border-collapse: collapse; }
.csi-cost-calculator__table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.csi-cost-calculator__table th,
.csi-cost-calculator__table td { padding: .62rem .7rem; border-bottom: 1px solid var(--csi-line); text-align: left; }
.csi-cost-calculator__table th { color: var(--csi-ink); font-weight: 650; }
.csi-cost-calculator__table td { text-align: right; font-variant-numeric: tabular-nums; }
.csi-cost-calculator__table tr:last-child { background: #fff8df; }
.csi-cost-calculator__table tr:last-child th,
.csi-cost-calculator__table tr:last-child td { border-top: 2px solid var(--csi-gold); color: var(--csi-navy); font-weight: 850; }
.csi-cost-calculator__notes,
.csi-cost-calculator__risk-result,
.csi-cost-calculator__location-result { margin-top: 1rem; padding: 1rem; border-radius: 5px; background: var(--csi-paper); }
.csi-cost-calculator__risk-result { border-left: 4px solid var(--csi-gold); }
.csi-cost-calculator__location-result { border: 1px solid #d5dbe6; border-left: 4px solid var(--csi-gold); background: #fffdf5; }
.csi-cost-calculator__location-result h4 { margin: 0 0 .45rem; }
.csi-cost-calculator__location-result p { margin: .35rem 0; }
.csi-cost-calculator__location-result a { color: #334f8d; font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.csi-cost-calculator__location-warning { color: var(--csi-muted); font-size: .9rem; }
.csi-cost-calculator__notes h4,
.csi-cost-calculator__risk-result h4 { margin: 0 0 .45rem; }
.csi-cost-calculator__notes p:last-child,
.csi-cost-calculator__risk-result p:last-child,
.csi-cost-calculator__notes ul,
.csi-cost-calculator__risk-result ul { margin-bottom: 0; }
.csi-cost-calculator__disclaimer { margin-bottom: 0; padding-top: 1rem; border-top: 1px solid var(--csi-line); color: var(--csi-muted); font-size: .91rem; }
.csi-cost-calculator__error { margin: 0; color: #8a1c1c; font-weight: 750; }

.csi-cost-calculator__next-step { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.15rem; padding: 1.1rem; border-radius: 6px; background: var(--csi-navy); color: #fff; }
.csi-cost-calculator__next-step h4 { margin: 0 0 .3rem; color: #fff; }
.csi-cost-calculator__next-step p { margin: 0; color: #e9ecf3; font-size: .92rem; }
.csi-cost-calculator__next-step a { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: .65rem .9rem; border-radius: 4px; background: var(--csi-gold); color: var(--csi-navy); font-weight: 850; text-decoration: none; white-space: nowrap; }
.csi-cost-calculator__next-step a:hover { background: #f0cb60; }

.csi-cost-calculator__result-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 0 1.8rem 1.35rem; }
.csi-cost-calculator__result-actions[hidden] { display: none; }
.csi-cost-calculator__result-actions button { min-height: 42px; padding: .58rem .9rem; }
.csi-cost-calculator__result-actions button:not([data-csi-copy]) { border-color: #9da6b6; background: #fff; color: var(--csi-navy); }
.csi-cost-calculator__result-actions button:not([data-csi-copy]):hover { border-color: var(--csi-gold); background: var(--csi-gold-light); }
.csi-cost-calculator__method { margin: 0; padding: 1rem 1.8rem 1.35rem; border-top: 1px solid var(--csi-line); background: #fff; }
.csi-cost-calculator__method summary { color: var(--csi-navy); font-weight: 850; cursor: pointer; }
.csi-cost-calculator__method p { color: var(--csi-muted); }
.csi-cost-calculator__method p:last-child { margin-bottom: 0; }
.csi-cost-calculator__method-table { width: 100%; min-width: 760px; margin: .9rem 0; border-collapse: collapse; color: var(--csi-ink); font-size: .88rem; }
.csi-cost-calculator__method-table caption { padding: 0 0 .55rem; color: var(--csi-navy); font-weight: 850; text-align: left; }
.csi-cost-calculator__method-table th,
.csi-cost-calculator__method-table td { padding: .62rem .7rem; border: 1px solid var(--csi-line); text-align: left; vertical-align: top; }
.csi-cost-calculator__method-table thead th { background: var(--csi-navy); color: #fff; }
.csi-cost-calculator__method-table tbody tr:nth-child(even) { background: var(--csi-paper); }

@media (max-width: 850px) {
	.csi-cost-calculator__grid--three { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 700px) {
	.csi-cost-calculator__header { padding: 1.45rem 1rem 1.25rem; }
	.csi-cost-calculator__form { padding: 1rem; }
	.csi-cost-calculator__result,
	.csi-cost-calculator__result-actions,
	.csi-cost-calculator__stale,
	.csi-cost-calculator__share-status { margin-left: 1rem; margin-right: 1rem; }
	.csi-cost-calculator__method { padding-left: 1rem; padding-right: 1rem; }
	.csi-cost-calculator__section { padding: 1rem; }
	.csi-cost-calculator__grid,
	.csi-cost-calculator__grid--three,
	.csi-cost-calculator__checks,
	.csi-cost-calculator__range { grid-template-columns: 1fr; }
	.csi-cost-calculator__field--wide { grid-column: auto; }
	.csi-cost-calculator__preview { grid-template-columns: 1fr; }
	.csi-cost-calculator__preview strong { text-align: left; }
	.csi-cost-calculator__button { width: 100%; }
	.csi-cost-calculator__next-step { align-items: stretch; flex-direction: column; }
	.csi-cost-calculator__next-step a { width: 100%; white-space: normal; }
}

@media print {
	@page { margin: .55in; }
	body.csi-cost-calculator-printing * { visibility: hidden !important; }
	body.csi-cost-calculator-printing .csi-cost-calculator--print-target,
	body.csi-cost-calculator-printing .csi-cost-calculator--print-target * { visibility: visible !important; }
	body.csi-cost-calculator-printing .csi-cost-calculator--print-target { position: absolute; top: 0; left: 0; width: 100%; margin: 0; border: 0; box-shadow: none; overflow: visible; }
	.csi-cost-calculator__header { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
	.csi-cost-calculator__form,
	.csi-cost-calculator__result-actions,
	.csi-cost-calculator__share-status,
	.csi-cost-calculator__stale,
	.csi-cost-calculator__method,
	.csi-cost-calculator__next-step { display: none !important; }
	.csi-cost-calculator__result { margin: .35in 0 0; padding: 0; border: 0; box-shadow: none; }
	.csi-cost-calculator__range-card,
	.csi-cost-calculator__notes,
	.csi-cost-calculator__risk-result,
	.csi-cost-calculator__location-result,
	.csi-cost-calculator__table tr { break-inside: avoid; }
}
