:root {
  --hbc-blue-deep: #27509b;
  --hbc-blue-mid: #4676cf;
  --hbc-green: #97bb3a;
  --hbc-green-deep: #6f9223;
  --hbc-ink: #1d2b44;
  --hbc-muted: #5d6b82;
  --hbc-surface: #ffffff;
  --hbc-soft: #eef4ff;
  --hbc-border: rgba(39, 80, 155, 0.12);
  --hbc-shadow: color: var(--hbc-ink);
}

.hbc-component {
  display: block;
}

.hbc-root [hidden] {
  display: none !important;
}

.hbc-shell {
  background:
    radial-gradient(
      circle at top right,
      rgb(151 187 58 / 38%),
      transparent 28%
    ),
    linear-gradient(180deg, rgb(39 80 155 / 12%), rgb(70 118 207 / 12%));
  border: 1px solid var(--hbc-border);
  border-radius: 26px;
  padding: 1.75rem;
  box-shadow: var(--hbc-shadow);
}

.hbc-header {
  margin-bottom: 1.5rem;
}

.hbc-eyebrow {
  margin: 0 0 0.4rem;
  color: var(--hbc-blue-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hbc-header h2 {
  margin: 0;
  color: var(--hbc-ink);
  font-size: clamp(1.65rem, 2vw, 2.35rem);
  line-height: 1.15;
}

.hbc-lead {
  max-width: 52rem;
  margin: 0.7rem 0 0;
  color: var(--hbc-muted);
}

.hbc-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hbc-grid-bottom {
  margin-top: 1rem;
}

.hbc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(39, 80, 155, 0.08);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(39, 80, 155, 0.06);
}

.hbc-card-header {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.hbc-card-header h3 {
  margin: 0;
  font-size: 1.16rem;
}

.hbc-card-header p {
  margin: 0.22rem 0 0;
  color: var(--hbc-muted);
}

.hbc-step {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  color: #fff;
  background: linear-gradient(
    160deg,
    var(--hbc-blue-deep),
    var(--hbc-blue-mid)
  );
  border-radius: 999px;
  font-weight: 700;
}

.hbc-label {
  display: block;
  color: var(--hbc-ink);
  font-size: 0.96rem;
  font-weight: 700;
}

.hbc-input,
.hbc-unit-input input {
    width: 100%;
    min-height: 50px;
    padding: 0.25rem 0;
    background: #fff;
    border: 0;
    border-radius: 14px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hbc-unit-input input {
  max-width: 110px;
  font-size: 2rem;
  text-align: right;
  color: var(--color-alt-content-heading);
  font-weight: 600;
}

.hbc-input:focus,
.hbc-unit-input input:focus {
  outline: none;
  border-color: var(--hbc-green);
  box-shadow: 0 0 0 4px rgba(151, 187, 58, 0.14);
}

.hbc-combobox {
  position: relative;
}

.hbc-suggestion-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  max-height: 18rem;
  overflow: auto;
  padding: 0.45rem;
  background: #fff;
  border: 1px solid rgba(39, 80, 155, 0.12);
  border-radius: 16px;
  box-shadow: 0 18px 34px rgba(29, 43, 68, 0.18);
}

.hbc-suggestion {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 0.8rem;
  color: var(--hbc-ink);
  background: transparent;
  border: 0;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
}

.hbc-suggestion strong {
  font-size: 0.96rem;
}

.hbc-suggestion span {
  color: var(--hbc-muted);
  font-size: 0.85rem;
}

.hbc-suggestion:hover,
.hbc-suggestion.is-active {
  background: var(--hbc-soft);
}

.hbc-help,
.hbc-note {
  margin: 0;
  color: var(--hbc-muted);
  font-size: 0.92rem;
}

.hbc-explainer {
  padding: 0.95rem 1rem;
  color: var(--hbc-ink);
  background: linear-gradient(
    135deg,
    rgba(39, 80, 155, 0.08),
    rgba(151, 187, 58, 0.08)
  );
  border: 1px solid rgba(39, 80, 155, 0.08);
  border-radius: 16px;
}

.hbc-consent-panel {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.hbc-consent-message {
  margin: 0;
  color: var(--hbc-muted);
  font-size: 0.96rem;
}

.hbc-accordion-group {
  display: grid;
  gap: 0.75rem;
}

.hbc-accordion {
  overflow: hidden;
  background: rgba(238, 244, 255, 0.72);
  border: 1px solid rgba(39, 80, 155, 0.1);
  border-radius: 16px;
}

.hbc-accordion summary {
  position: relative;
  padding: 1rem 3rem 1rem 1rem;
  color: var(--hbc-ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.hbc-accordion summary::-webkit-details-marker {
  display: none;
}

.hbc-accordion summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: var(--hbc-blue-deep);
  font-size: 1.3rem;
  line-height: 1;
}

.hbc-accordion[open] summary::after {
  content: "−";
}

.hbc-accordion-body {
  padding: 0 1rem 1rem;
}

.hbc-consent-copy {
  margin: 0;
  color: var(--hbc-ink);
  font-size: 0.94rem;
}

.hbc-consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hbc-link {
  color: var(--hbc-blue-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.hbc-link:hover,
.hbc-link:focus {
  color: var(--hbc-blue-mid);
}

.hbc-official-placeholder {
  min-height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: var(--hbc-muted);
  text-align: center;
  background: rgba(238, 244, 255, 0.78);
  border: 1px dashed rgba(39, 80, 155, 0.16);
  border-radius: 16px;
}

.hbc-component-summary .hbc-official-placeholder {
  margin-bottom: 0;
}

.hbc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hbc-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.25rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hbc-badge.is-eligible {
  color: #0f5f35;
  background: rgba(151, 187, 58, 0.2);
}

.hbc-badge.is-not-eligible {
  color: #731000;
  background: rgb(255 10 7 / 18%);
}

.hbc-badge.is-info {
  color: var(--hbc-blue-deep);
  background: rgba(70, 118, 207, 0.12);
}

.hbc-official-lead {
  color: var(--hbc-ink);
  font-weight: 600;
  margin: 0 0 20px;
}

.hbc-accordion-copy {
  margin: 0;
  color: var(--hbc-ink);
}

.hbc-details-grid {
  display: grid;
  gap: 0.55rem;
}

.hbc-provider-grid,
.hbc-manual-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 11px;
}

.hbc-manual-grid > div:first-child {
    border-right: 1px solid var(--hbc-border);
    padding-right: 10px;
}

.hbc-provider-card {
  padding: 1rem;
  background: var(--hbc-soft);
  border-radius: 16px;
}

.hbc-provider-card h4 {
  margin: 0 0 0.35rem;
  color: var(--hbc-blue-deep);
  font-size: 1rem;
}

.hbc-provider-card p {
  margin: 0;
  color: var(--hbc-ink);
}

.hbc-details-grid {
  color: var(--hbc-muted);
  font-size: 0.93rem;
}

.hbc-meter {
  height: 14px;
  overflow: hidden;
  background: rgba(39, 80, 155, 0.12);
  border-radius: 999px;
}

.hbc-meter-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--hbc-green), var(--hbc-blue-mid));
  border-radius: inherit;
  transition: width 0.25s ease;
}

.hbc-progress-label {
  margin: 0;
  color: var(--hbc-muted);
}

.hbc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  color: #fff;
  background: linear-gradient(
    160deg,
    var(--hbc-blue-deep),
    var(--hbc-blue-mid)
  );
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.hbc-button:hover,
.hbc-button:focus {
  filter: brightness(1.03);
}

.hbc-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.hbc-button-secondary {
  color: var(--hbc-ink);
  background: rgba(39, 80, 155, 0.08);
}

.hbc-measurement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hbc-unit-input {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.hbc-unit-input span {
  flex: none;
  color: var(--hbc-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.hbc-summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hbc-summary-list li + li {
  margin-top: 0.4rem;
}

.hbc-status {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  font-weight: 600;
}

.hbc-status-neutral {
  color: var(--hbc-ink);
  background: rgba(39, 80, 155, 0.08);
}

.hbc-status-success {
  color: #0e5c34;
  background: rgba(151, 187, 58, 0.18);
}

.hbc-status-warning {
  color: #7d5200;
  background: rgba(255, 193, 7, 0.16);
}

@media (max-width: 980px) {
  .hbc-grid,
  .hbc-provider-grid,
  .hbc-details-grid {
    grid-template-columns: 1fr;
  }

  .hbc-shell {
    padding: 1.2rem;
    border-radius: 22px;
  }

  .hbc-card {
    padding: 1rem;
  }
}

.hbc-ping {
  display: none !important;
}

.hbc-street-select {
  max-width: 310px !important;
}

