:root {
  --cchpb-bg: #f8fafc;
  --cchpb-surface: #ffffff;
  --cchpb-surface-soft: #f7fffd;
  --cchpb-text: #0f172a;
  --cchpb-muted: #64748b;
  --cchpb-border: #d9e5f0;
  --cchpb-shadow: 0 26px 70px rgba(15, 23, 42, 0.10);
}

.cchpb-hire-purchase {
  --cchpb-accent: #0f766e;
  --cchpb-accent-dark: #115e59;
  --cchpb-secondary: #1d4ed8;
  color: var(--cchpb-text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: 100%;
}

.cchpb-hire-purchase * {
  box-sizing: border-box;
}

.cchpb-shell {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  background: linear-gradient(135deg, #eef6ff 0%, #f8fafc 42%, #ecfeff 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 32px;
  padding: 28px;
  box-shadow: var(--cchpb-shadow);
}

.cchpb-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 22px;
}

.cchpb-heading-block {
  min-width: 0;
}

.cchpb-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 118, 110, 0.10);
  color: var(--cchpb-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.cchpb-title {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.03;
}

.cchpb-description {
  margin: 0;
  color: var(--cchpb-muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 900px;
}

.cchpb-headline-card {
  flex: 0 0 320px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(217, 229, 240, 0.9);
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.cchpb-headline-card span,
.cchpb-headline-card small {
  display: block;
  color: var(--cchpb-muted);
}

.cchpb-headline-card span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.cchpb-headline-card strong {
  display: block;
  font-size: 24px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.cchpb-section {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(217, 229, 240, 0.92);
  border-radius: 28px;
  padding: 24px;
}

.cchpb-section + .cchpb-section {
  margin-top: 20px;
}

.cchpb-section-heading {
  margin-bottom: 18px;
}

.cchpb-section-heading h3 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.2;
}

.cchpb-section-heading p {
  margin: 0;
  color: var(--cchpb-muted);
  line-height: 1.6;
}

.cchpb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.cchpb-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cchpb-field > span {
  font-size: 14px;
  font-weight: 700;
}

.cchpb-field > small {
  color: var(--cchpb-muted);
  font-size: 12px;
  line-height: 1.5;
}

.cchpb-input {
  width: 100%;
  min-height: 52px;
  border-radius: 15px;
  border: 1px solid var(--cchpb-border);
  background: var(--cchpb-surface);
  padding: 0 14px;
  font-size: 15px;
  color: var(--cchpb-text);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cchpb-input:focus {
  outline: none;
  border-color: var(--cchpb-accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.cchpb-disclaimer {
  margin-top: 18px;
  border-radius: 18px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.14);
  padding: 14px 16px;
  color: var(--cchpb-text);
  font-size: 14px;
  line-height: 1.6;
}

.cchpb-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.cchpb-summary-card {
  background: #ffffff;
  border: 1px solid var(--cchpb-border);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.cchpb-summary-card span,
.cchpb-summary-card small {
  display: block;
}

.cchpb-summary-card span {
  color: var(--cchpb-muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.cchpb-summary-card strong {
  display: block;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  margin-bottom: 8px;
}

.cchpb-summary-card small {
  color: var(--cchpb-muted);
  line-height: 1.55;
}

.cchpb-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--cchpb-border);
  border-radius: 22px;
  background: #ffffff;
}

.cchpb-summary-table,
.cchpb-breakdown-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.cchpb-summary-table th,
.cchpb-summary-table td,
.cchpb-breakdown-table th,
.cchpb-breakdown-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(217, 229, 240, 0.9);
  text-align: left;
  font-size: 14px;
}

.cchpb-summary-table th,
.cchpb-breakdown-table thead th {
  font-weight: 700;
  color: var(--cchpb-text);
  background: #f8fafc;
}

.cchpb-summary-table td,
.cchpb-breakdown-table td {
  color: var(--cchpb-muted);
}

.cchpb-summary-table tr:last-child th,
.cchpb-summary-table tr:last-child td,
.cchpb-breakdown-table tbody tr:last-child td {
  border-bottom: none;
}

.cchpb-chart-card {
  border: 1px solid var(--cchpb-border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%);
  padding: 18px;
}

.cchpb-chart-wrap {
  width: 100%;
  min-height: 360px;
}

.cchpb-chart-canvas {
  display: block;
  width: 100%;
  height: 360px;
}

.cchpb-chart-note {
  margin-top: 12px;
  color: var(--cchpb-muted);
  font-size: 14px;
  line-height: 1.55;
}

.cchpb-breakdown-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.cchpb-inline-select {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}

.cchpb-inline-select span {
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .cchpb-header,
  .cchpb-breakdown-head {
    flex-direction: column;
    align-items: stretch;
  }

  .cchpb-headline-card {
    flex: 1 1 auto;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .cchpb-shell {
    padding: 18px;
    border-radius: 24px;
  }

  .cchpb-section {
    padding: 18px;
    border-radius: 22px;
  }

  .cchpb-chart-wrap,
  .cchpb-chart-canvas {
    min-height: 300px;
    height: 300px;
  }

  .cchpb-summary-table,
  .cchpb-breakdown-table {
    min-width: 680px;
  }
}
