.shcp-wrapper,
.shcp-wrapper * {
    box-sizing: border-box;
}

.shcp-wrapper {
    --shcp-primary: #2563EB;
    --shcp-text: #172033;
    --shcp-muted: #667085;
    --shcp-border: #E5E7EB;
    --shcp-bg: #FFFFFF;
    --shcp-soft: #F8FAFC;
    --shcp-success: #16A34A;
    --shcp-warning: #D97706;
    --shcp-radius: 14px;
    --shcp-btn-radius: 10px;
    --shcp-font-size: 16px;
    --shcp-max-width: 1040px;

    width: 100%;
    max-width: var(--shcp-max-width);
    margin: 24px auto;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: var(--shcp-font-size);
    line-height: 1.5;
    color: var(--shcp-text);
}

.shcp-wrapper.shcp-width-full { max-width: 100%; }
.shcp-wrapper.shcp-width-narrow { max-width: 760px; }

.shcp-wrapper.shcp-theme-soft { --shcp-bg: #F8FAFC; --shcp-soft: #EFF4FA; }
.shcp-wrapper.shcp-theme-dark {
    --shcp-bg: #0F172A;
    --shcp-soft: #1E293B;
    --shcp-text: #F8FAFC;
    --shcp-muted: #94A3B8;
    --shcp-border: #334155;
}

.shcp-calculator {
    background: var(--shcp-bg);
    border: 1px solid var(--shcp-border);
    border-radius: var(--shcp-radius);
    padding: 26px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.shcp-calc-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--shcp-border);
}

.shcp-calc-title,
.shcp-wrapper .shcp-heading {
    margin: 0 0 6px;
    font-size: clamp(22px, 2.8vw, 28px);
    line-height: 1.25;
    font-weight: 700;
    color: var(--shcp-text);
}

.shcp-calc-desc,
.shcp-wrapper .shcp-subtext {
    margin: 0;
    font-size: 14.5px;
    color: var(--shcp-muted);
}

.shcp-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--shcp-soft);
    border: 1px solid var(--shcp-border);
    color: var(--shcp-primary);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.shcp-grid-main {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 22px;
    align-items: start;
}

.shcp-panel {
    background: var(--shcp-soft);
    border: 1px solid var(--shcp-border);
    border-radius: calc(var(--shcp-radius) - 2px);
    padding: 20px;
}

.shcp-results {
    background: var(--shcp-bg);
}

.shcp-field { margin-bottom: 15px; min-width: 0; }
.shcp-field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--shcp-text);
    margin-bottom: 6px;
}

.shcp-field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.shcp-field-row.shcp-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.shcp-input-group {
    display: flex;
    align-items: center;
    background: var(--shcp-bg);
    border: 1px solid var(--shcp-border);
    border-radius: 10px;
    min-height: 46px;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.shcp-input-group:focus-within {
    border-color: var(--shcp-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.shcp-prefix,
.shcp-suffix {
    padding: 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--shcp-muted);
    background: var(--shcp-soft);
    align-self: stretch;
    display: inline-flex;
    align-items: center;
}

.shcp-input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--shcp-border);
    border-radius: 10px;
    background: var(--shcp-bg);
    color: var(--shcp-text);
    font-size: 15.5px;
    font-weight: 600;
    outline: none;
    appearance: auto;
}

.shcp-input-group .shcp-input {
    border: 0;
    border-radius: 0;
    min-height: 44px;
}

.shcp-input:focus {
    border-color: var(--shcp-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.shcp-input-group .shcp-input:focus { box-shadow: none; }

.shcp-help {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--shcp-muted);
}

.shcp-advanced-box {
    margin: 14px 0;
    border: 1px solid var(--shcp-border);
    border-radius: 10px;
    background: var(--shcp-bg);
    overflow: hidden;
}

.shcp-advanced-toggle {
    cursor: pointer;
    padding: 12px 14px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--shcp-primary);
    user-select: none;
}

.shcp-advanced-body {
    padding: 12px 14px 4px;
    border-top: 1px solid var(--shcp-border);
}

.shcp-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.shcp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px;
    border-radius: var(--shcp-btn-radius);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform .12s ease, opacity .15s ease, background .15s ease;
}

.shcp-btn-primary {
    flex: 1;
    background: var(--shcp-primary);
    color: #FFFFFF;
}

.shcp-btn-primary:hover { opacity: 0.92; color: #FFFFFF; }

.shcp-btn-ghost {
    background: var(--shcp-bg);
    border-color: var(--shcp-border);
    color: var(--shcp-text);
}

.shcp-btn-ghost:hover { border-color: var(--shcp-primary); color: var(--shcp-primary); }

.shcp-validation-msg {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
    font-size: 13px;
    font-weight: 600;
}

.shcp-hero-result {
    background: var(--shcp-primary);
    color: #FFFFFF;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 16px;
}

.shcp-hero-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.shcp-hero-value {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    margin: 6px 0;
}

.shcp-hero-value span {
    font-size: 16px;
    font-weight: 600;
    opacity: 0.9;
}

.shcp-hero-meta {
    margin: 0;
    font-size: 13px;
    opacity: 0.92;
}

.shcp-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.shcp-result-card {
    background: var(--shcp-soft);
    border: 1px solid var(--shcp-border);
    border-radius: 10px;
    padding: 13px 14px;
}

.shcp-card-style-elevated .shcp-result-card {
    background: var(--shcp-bg);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.shcp-result-card span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--shcp-muted);
}

.shcp-result-card strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: var(--shcp-text);
    margin: 3px 0 2px;
}

.shcp-result-card small {
    display: block;
    font-size: 11.5px;
    color: var(--shcp-muted);
}

.shcp-span-2 { grid-column: 1 / -1; }

.shcp-highlight-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.shcp-highlight-item {
    border: 1px solid #BFDBFE;
    background: #EFF6FF;
    border-radius: 10px;
    padding: 13px 15px;
}

.shcp-theme-dark .shcp-highlight-item {
    background: rgba(37, 99, 235, 0.14);
    border-color: rgba(59, 130, 246, 0.35);
}

.shcp-highlight-item span { display: block; font-size: 12px; font-weight: 700; color: var(--shcp-primary); }
.shcp-highlight-item strong { display: block; font-size: 20px; font-weight: 800; color: var(--shcp-text); margin: 3px 0; }
.shcp-highlight-item small { display: block; font-size: 12px; color: var(--shcp-muted); }

/* Lightweight CSS Bars */
.shcp-chart-box {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid var(--shcp-border);
    border-radius: 10px;
    background: var(--shcp-soft);
}

.shcp-chart-title {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--shcp-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.shcp-bar-row {
    display: grid;
    grid-template-columns: 96px 1fr 92px;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12.5px;
}

.shcp-bar-row:last-child { margin-bottom: 0; }
.shcp-bar-track {
    height: 10px;
    border-radius: 999px;
    background: var(--shcp-border);
    overflow: hidden;
}
.shcp-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--shcp-primary);
    transition: width .25s ease;
}
.shcp-bar-fill.shcp-bar-accent { background: var(--shcp-success); }
.shcp-bar-row strong { text-align: right; font-weight: 700; }

.shcp-assumption-note {
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--shcp-muted);
    line-height: 1.55;
}

.shcp-result-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--shcp-border);
}

.shcp-tool-btn,
.shcp-copy-cell {
    min-height: 38px;
    padding: 7px 13px;
    border-radius: 8px;
    border: 1px solid var(--shcp-border);
    background: var(--shcp-soft);
    color: var(--shcp-text);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.shcp-tool-btn:hover,
.shcp-copy-cell:hover {
    border-color: var(--shcp-primary);
    color: var(--shcp-primary);
}

.shcp-action-feedback {
    margin: 8px 0 0;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--shcp-success);
}

/* Comparison 2-col */
.shcp-compare-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.shcp-offer-col {
    background: var(--shcp-bg);
    border: 1px solid var(--shcp-border);
    border-radius: 12px;
    padding: 16px;
}
.shcp-offer-title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 800;
    color: var(--shcp-primary);
}

/* Tables & Widgets */
.shcp-table-scroll { overflow-x: auto; width: 100%; }
.shcp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.shcp-table th,
.shcp-table td {
    padding: 11px 12px;
    text-align: left;
    border-bottom: 1px solid var(--shcp-border);
}
.shcp-table th {
    background: var(--shcp-soft);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--shcp-muted);
    text-transform: uppercase;
}

.shcp-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.shcp-info-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--shcp-border);
    background: var(--shcp-bg);
    text-decoration: none;
    color: var(--shcp-text);
}
.shcp-card-link:hover { border-color: var(--shcp-primary); }
.shcp-info-icon { font-size: 22px; }
.shcp-info-title { margin: 0; font-size: 16px; font-weight: 700; }
.shcp-info-desc { margin: 0; font-size: 13.5px; color: var(--shcp-muted); }
.shcp-mini-code { font-size: 12px; background: var(--shcp-soft); padding: 4px 8px; border-radius: 6px; width: fit-content; }
.shcp-example-rate { font-size: 26px; font-weight: 800; color: var(--shcp-primary); margin: 4px 0; }
.shcp-example-rate span { font-size: 14px; color: var(--shcp-muted); font-weight: 600; }

.shcp-nav-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.shcp-nav-pill {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--shcp-border);
    background: var(--shcp-bg);
    color: var(--shcp-text);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}
.shcp-nav-pill:hover { border-color: var(--shcp-primary); color: var(--shcp-primary); }

.shcp-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    border-radius: var(--shcp-radius);
    background: var(--shcp-soft);
    border: 1px solid var(--shcp-border);
}
.shcp-cta-title { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.shcp-cta-desc { margin: 0; font-size: 14px; color: var(--shcp-muted); }

.shcp-faq-item {
    border: 1px solid var(--shcp-border);
    border-radius: 10px;
    margin-bottom: 10px;
    background: var(--shcp-bg);
}
.shcp-faq-q { cursor: pointer; padding: 14px 16px; font-weight: 700; font-size: 15.5px; }
.shcp-faq-a { padding: 0 16px 14px; color: var(--shcp-muted); font-size: 14.5px; }
.shcp-faq-a p { margin: 0; }

.shcp-breadcrumb { font-size: 13px; color: var(--shcp-muted); }
.shcp-breadcrumb a { color: var(--shcp-primary); text-decoration: none; }
.shcp-method-list { margin: 12px 0 0; padding-left: 20px; color: var(--shcp-muted); font-size: 14.5px; }
.shcp-method-list li { margin-bottom: 8px; }

@media print {
    .shcp-form-actions, .shcp-result-toolbar, .shcp-copy-cell { display: none !important; }
    .shcp-calculator { box-shadow: none; border: 0; padding: 0; }
}
