.chr-calculator {
--chr-accent: #1769aa;
--chr-accent-dark: #12578d;
--chr-accent-dark: color-mix(in srgb, var(--chr-accent) 82%, #000);
--chr-surface: #ffffff;
--chr-surface-soft: #f6f8fb;
--chr-border: #dfe5ec;
--chr-text: #18212b;
--chr-muted: #667383;
--chr-danger: #b42318;
--chr-radius-lg: 22px;
--chr-radius-md: 14px;
--chr-shadow: 0 18px 50px rgba(20, 35, 55, 0.10);
color: var(--chr-text);
direction: ltr;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-size: 16px;
line-height: 1.5;
margin: 28px auto;
max-width: 920px;
text-align: left;
width: 100%;
}
.chr-calculator *,
.chr-calculator *::before,
.chr-calculator *::after {
box-sizing: border-box;
}
.chr-shell {
background: var(--chr-surface);
border: 1px solid var(--chr-border);
border-radius: var(--chr-radius-lg);
box-shadow: var(--chr-shadow);
overflow: hidden;
}
.chr-header {
background: #f7fafd;
background: linear-gradient(135deg, color-mix(in srgb, var(--chr-accent) 8%, #fff), #fff 65%);
border-bottom: 1px solid var(--chr-border);
padding: 28px;
}
.chr-kicker,
.chr-results-eyebrow {
color: var(--chr-accent);
font-size: .76rem;
font-weight: 800;
letter-spacing: .08em;
text-transform: uppercase;
}
.chr-title {
color: var(--chr-text);
font-size: clamp(1.65rem, 4vw, 2.25rem);
line-height: 1.12;
margin: 6px 0 8px;
}
.chr-intro {
color: var(--chr-muted);
margin: 0;
max-width: 720px;
}
.chr-form,
.chr-results {
padding: 28px;
}
.chr-field-grid,
.chr-breakdown-grid,
.chr-results-head,
.chr-total-card {
direction: ltr !important;
}
.chr-field-grid {
align-items: end;
display: grid !important;
gap: 16px 18px;
grid-auto-flow: row;
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
width: 100%;
}
.chr-field {
direction: ltr !important;
min-width: 0;
text-align: left !important;
}
.chr-field--full {
grid-column: 1 / -1;
}
.chr-field label {
color: var(--chr-text);
display: block;
font-size: .9rem;
font-weight: 700;
margin: 0 0 7px;
}
.chr-input,
.chr-select {
appearance: none;
background: #fff;
border: 1px solid #cfd7e2;
border-radius: 12px;
color: var(--chr-text);
font: inherit;
min-height: 48px;
outline: none;
padding: 10px 13px;
transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
width: 100%;
}
.chr-select {
background-image:
linear-gradient(45deg, transparent 50%, #667383 50%),
linear-gradient(135deg, #667383 50%, transparent 50%);
background-position:
calc(100% - 18px) 20px,
calc(100% - 13px) 20px;
background-repeat: no-repeat;
background-size: 5px 5px, 5px 5px;
padding-right: 36px;
}
.chr-input:focus,
.chr-select:focus {
border-color: var(--chr-accent);
box-shadow: 0 0 0 3px color-mix(in srgb, var(--chr-accent) 16%, transparent);
}
.chr-error {
color: var(--chr-danger);
font-size: .9rem;
font-weight: 700;
min-height: 1.35em;
margin: 14px 0 0;
}
.chr-actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 10px;
}
.chr-button {
border: 1px solid transparent;
border-radius: 12px;
cursor: pointer;
font: inherit;
font-weight: 800;
min-height: 46px;
padding: 10px 18px;
transition: transform .14s ease, background-color .14s ease, border-color .14s ease;
}
.chr-button:hover {
transform: translateY(-1px);
}
.chr-button--primary {
background: var(--chr-accent);
color: #fff;
min-width: 210px;
}
.chr-button--primary:hover {
background: var(--chr-accent-dark);
}
.chr-results {
background: var(--chr-surface-soft);
border-top: 1px solid var(--chr-border);
}
.chr-results[hidden] {
display: none !important;
}
.chr-results-head {
align-items: center;
display: flex;
gap: 16px;
justify-content: space-between;
margin-bottom: 16px;
}
.chr-results-head h3 {
color: var(--chr-text);
font-size: 1.08rem;
line-height: 1.3;
margin: 0;
}
.chr-total-card {
background: #f3f8fc;
background: color-mix(in srgb, var(--chr-accent) 7%, #fff);
border: 1px solid color-mix(in srgb, var(--chr-accent) 22%, var(--chr-border));
border-radius: var(--chr-radius-md);
margin-bottom: 12px;
padding: 20px;
}
.chr-total-label {
color: var(--chr-muted);
display: block;
font-size: .82rem;
font-weight: 700;
margin-bottom: 5px;
}
.chr-total {
color: var(--chr-accent);
display: block;
font-size: clamp(1.55rem, 5vw, 2.2rem);
font-variant-numeric: tabular-nums;
line-height: 1.15;
overflow-wrap: anywhere;
}
.chr-breakdown-grid {
direction: ltr !important;
display: block !important;
width: 100%;
}
.chr-breakdown-row {
direction: ltr !important;
display: grid !important;
gap: 12px;
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
margin: 0 0 12px;
width: 100%;
}
.chr-breakdown-row:last-child {
margin-bottom: 0;
}
.chr-breakdown-spacer {
min-width: 0;
}
.chr-result-card {
margin: 0;
width: 100%;
}
.chr-result-card--pi {
grid-column: 1;
}
.chr-result-card--taxes {
grid-column: 2;
}
.chr-result-card--insurance {
grid-column: 1;
}
.chr-result-card--pmi {
grid-column: 2;
}
.chr-result-card--hoa {
grid-column: 1;
}
.chr-result-card {
background: #fff;
border: 1px solid var(--chr-border);
border-radius: var(--chr-radius-md);
min-width: 0;
padding: 16px;
}
.chr-result-card[hidden] {
display: none !important;
}
.chr-result-label {
color: var(--chr-muted);
display: block;
font-size: .78rem;
font-weight: 700;
line-height: 1.25;
margin-bottom: 7px;
}
.chr-result-value {
color: var(--chr-text);
display: block;
font-size: 1.15rem;
font-variant-numeric: tabular-nums;
line-height: 1.2;
overflow-wrap: anywhere;
}
.chr-note {
color: var(--chr-muted);
font-size: .78rem;
line-height: 1.5;
margin: 14px 2px 0;
}
@media (max-width: 760px) {
.chr-calculator {
margin: 18px auto;
}
.chr-shell {
border-radius: 18px;
}
.chr-header,
.chr-form,
.chr-results {
padding: 22px;
}
}
@media (max-width: 640px) {
.chr-field-grid {
gap: 14px;
grid-template-columns: 1fr !important;
}
.chr-breakdown-row {
gap: 14px;
grid-template-columns: 1fr !important;
}
.chr-field--full {
grid-column: auto;
}
.chr-breakdown-spacer {
display: none;
}
}
@media (max-width: 520px) {
.chr-actions {
display: grid;
grid-template-columns: 1fr;
}
.chr-button {
min-width: 0;
width: 100%;
}
}
@media (max-width: 360px) {
.chr-header,
.chr-form,
.chr-results {
padding: 18px;
}
}
@media (prefers-reduced-motion: reduce) {
.chr-calculator *,
.chr-calculator *::before,
.chr-calculator *::after {
scroll-behavior: auto !important;
transition: none !important;
}
}