.upgrhpc {
  --upgrhpc-ink: #17354a;
  --upgrhpc-muted: #687b88;
  --upgrhpc-border: #d8e2e8;
  --upgrhpc-surface: #ffffff;
  --upgrhpc-soft: #edf6f8;
  --upgrhpc-accent: #0a7285;
  --upgrhpc-accent-dark: #075565;
  --upgrhpc-warm: #fbf4e7;
  --upgrhpc-green: #e7f5ec;
  --upgrhpc-green-border: #86b99a;
  --upgrhpc-yellow: #fff5d8;
  --upgrhpc-yellow-border: #d5af4a;
  --upgrhpc-red: #fdeaea;
  --upgrhpc-red-border: #c97979;
  --upgrhpc-focus: #155eef;
  color: var(--upgrhpc-ink);
  font: inherit;
  line-height: 1.55;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.upgrhpc *,
.upgrhpc *::before,
.upgrhpc *::after {
  box-sizing: border-box;
}

.upgrhpc [hidden] {
  display: none !important;
}

.upgrhpc__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 18px 0 12px;
  color: var(--upgrhpc-muted);
  font-size: 13px;
}

.upgrhpc__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.upgrhpc__review-warning,
.upgrhpc__noscript,
.upgrhpc__error {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--upgrhpc-yellow-border);
  border-radius: 14px;
  background: var(--upgrhpc-yellow);
}

.upgrhpc__card {
  margin: 18px 0 28px;
  border: 1px solid var(--upgrhpc-border);
  border-radius: 24px;
  background: var(--upgrhpc-surface);
  box-shadow: 0 16px 42px rgba(18, 52, 70, 0.10);
  overflow: hidden;
}

.upgrhpc__intro {
  padding: 28px 30px 22px;
  background: linear-gradient(135deg, #edf7fa 0%, #fff5e8 100%);
  border-bottom: 1px solid var(--upgrhpc-border);
}

.upgrhpc__eyebrow {
  margin: 0 0 7px;
  color: var(--upgrhpc-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.upgrhpc__title,
.upgrhpc__intro h2 {
  margin: 0 0 10px;
  color: var(--upgrhpc-ink);
  font-size: clamp(25px, 4vw, 39px);
  line-height: 1.1;
}

.upgrhpc__intro p:last-child {
  margin-bottom: 0;
  max-width: 820px;
}

.upgrhpc__progress {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 18px 24px;
  border-bottom: 1px solid var(--upgrhpc-border);
  background: #fbfcfb;
}

.upgrhpc__progress li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--upgrhpc-muted);
  font-size: 13px;
}

.upgrhpc__progress li span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: 1px solid var(--upgrhpc-border);
  background: #fff;
  font-weight: 800;
}

.upgrhpc__progress li b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upgrhpc__progress li[aria-current="step"] {
  color: var(--upgrhpc-accent-dark);
}

.upgrhpc__progress li[aria-current="step"] span {
  border-color: var(--upgrhpc-accent);
  background: var(--upgrhpc-accent);
  color: #fff;
}

.upgrhpc__progress li.is-done span {
  border-color: #8bbbc4;
  background: var(--upgrhpc-soft);
  color: var(--upgrhpc-accent-dark);
}

.upgrhpc__form,
.upgrhpc__result {
  padding: 28px 30px 32px;
}

.upgrhpc__step-head {
  margin-bottom: 22px;
}

.upgrhpc__step-count {
  margin: 0 0 5px;
  color: var(--upgrhpc-accent);
  font-size: 13px;
  font-weight: 800;
}

.upgrhpc__step-head h3,
.upgrhpc__result h3,
.upgrhpc__result h4,
.upgrhpc__result h5 {
  color: var(--upgrhpc-ink);
}

.upgrhpc__step-head h3 {
  margin: 0 0 8px;
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.2;
}

.upgrhpc__step-head p:last-child {
  margin-bottom: 0;
}

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

.upgrhpc__number-field {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--upgrhpc-border);
  border-radius: 15px;
  background: #fcfdfc;
}

.upgrhpc__number-field label {
  display: block;
  margin-bottom: 7px;
  font-weight: 800;
  color: var(--upgrhpc-ink);
}

.upgrhpc__number-field input {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #aec0c9;
  border-radius: 10px;
  background: #fff;
  color: var(--upgrhpc-ink);
  font: inherit;
  font-size: 16px;
}

.upgrhpc__number-field input:focus,
.upgrhpc__choices input:focus + span,
.upgrhpc__button:focus-visible,
.upgrhpc__text-button:focus-visible,
.upgrhpc a:focus-visible,
.upgrhpc [tabindex="-1"]:focus {
  outline: 3px solid var(--upgrhpc-focus);
  outline-offset: 3px;
}

.upgrhpc__number-field.is-invalid,
.upgrhpc__question.is-invalid {
  border-color: var(--upgrhpc-red-border);
  background: #fffafa;
}

.upgrhpc__number-field.is-invalid input {
  border-color: #b84242;
}

.upgrhpc__hint {
  margin: 7px 0 0;
  color: var(--upgrhpc-muted);
  font-size: 13px;
}

.upgrhpc__field-error {
  margin: 7px 0 0;
  color: #a52323;
  font-size: 13px;
  font-weight: 700;
}

.upgrhpc__budget-note {
  margin-top: 17px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--upgrhpc-warm);
  color: #554f45;
}

.upgrhpc__questions {
  display: grid;
  gap: 14px;
}

.upgrhpc__question {
  min-width: 0;
  margin: 0;
  padding: 17px;
  border: 1px solid var(--upgrhpc-border);
  border-radius: 16px;
  background: #fff;
}

.upgrhpc__question legend {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--upgrhpc-ink);
  font-weight: 800;
  line-height: 1.4;
}

.upgrhpc__number {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--upgrhpc-soft);
  color: var(--upgrhpc-accent-dark);
  font-size: 13px;
}

.upgrhpc__choices {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 13px;
}

.upgrhpc__choices label {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.upgrhpc__choices input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0.001;
}

.upgrhpc__choices span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #b7c6ce;
  border-radius: 999px;
  background: #fff;
  color: var(--upgrhpc-ink);
  font-size: 14px;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.upgrhpc__choices input:checked + span {
  border-color: var(--upgrhpc-accent);
  background: var(--upgrhpc-accent);
  color: #fff;
}

.upgrhpc__nav,
.upgrhpc__cta-row,
.upgrhpc__result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.upgrhpc__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 19px;
  border: 1px solid var(--upgrhpc-accent);
  border-radius: 999px;
  background: var(--upgrhpc-accent);
  color: #fff !important;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
}

.upgrhpc__button:hover {
  background: var(--upgrhpc-accent-dark);
  border-color: var(--upgrhpc-accent-dark);
}

.upgrhpc__button--secondary {
  border-color: #aec0c9;
  background: #fff;
  color: var(--upgrhpc-ink) !important;
}

.upgrhpc__button--secondary:hover {
  background: var(--upgrhpc-soft);
  border-color: var(--upgrhpc-accent);
}

.upgrhpc__text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--upgrhpc-accent-dark);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.upgrhpc__error-summary {
  margin: 18px 30px 0;
  padding: 13px 15px;
  border: 1px solid var(--upgrhpc-red-border);
  border-radius: 13px;
  background: var(--upgrhpc-red);
  color: #8b2323;
  font-weight: 700;
}

.upgrhpc__result {
  padding-top: 24px;
}

.upgrhpc__result-hero {
  padding: 21px 22px;
  border: 1px solid var(--upgrhpc-yellow-border);
  border-radius: 18px;
  background: var(--upgrhpc-yellow);
}

.upgrhpc__result-hero[data-result-level="green"] {
  border-color: var(--upgrhpc-green-border);
  background: var(--upgrhpc-green);
}

.upgrhpc__result-hero[data-result-level="red"] {
  border-color: var(--upgrhpc-red-border);
  background: var(--upgrhpc-red);
}

.upgrhpc__result-hero h3 {
  margin: 4px 0 8px;
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.2;
}

.upgrhpc__result-hero p:last-child {
  margin-bottom: 0;
}

.upgrhpc__score-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.upgrhpc__score,
.upgrhpc__metric {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--upgrhpc-border);
  border-radius: 14px;
  background: #fff;
}

.upgrhpc__score strong {
  display: block;
  color: var(--upgrhpc-ink);
  font-size: 25px;
  line-height: 1.1;
}

.upgrhpc__score span,
.upgrhpc__metric small {
  display: block;
  margin-top: 4px;
  color: var(--upgrhpc-muted);
  font-size: 12px;
}

.upgrhpc__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 22px;
}

.upgrhpc__metric strong {
  display: block;
  margin-top: 5px;
  color: var(--upgrhpc-ink);
  font-size: 18px;
  line-height: 1.25;
}

.upgrhpc__result-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--upgrhpc-border);
}

.upgrhpc__result-section h4 {
  margin: 0 0 10px;
  font-size: 20px;
}

.upgrhpc__result-section h5 {
  margin: 0 0 8px;
  font-size: 16px;
}

.upgrhpc__result-section ul {
  margin: 0;
  padding-left: 21px;
}

.upgrhpc__result-section li + li {
  margin-top: 7px;
}

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

.upgrhpc__ask-grid > div {
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  background: #f7f9f8;
}

.upgrhpc__links {
  display: grid;
  gap: 8px;
}

.upgrhpc__links a {
  color: var(--upgrhpc-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.upgrhpc__disclaimer,
.upgrhpc__privacy {
  margin: 18px 0 0;
  color: var(--upgrhpc-muted);
  font-size: 13px;
}

.upgrhpc__privacy {
  margin-top: 7px;
}

@media (max-width: 820px) {
  .upgrhpc__progress {
    grid-template-columns: repeat(5, auto);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

  .upgrhpc__progress li b {
    display: none;
  }

  .upgrhpc__ask-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .upgrhpc__intro,
  .upgrhpc__form,
  .upgrhpc__result {
    padding-left: 18px;
    padding-right: 18px;
  }

  .upgrhpc__error-summary {
    margin-left: 18px;
    margin-right: 18px;
  }

  .upgrhpc__number-grid,
  .upgrhpc__metrics,
  .upgrhpc__score-grid {
    grid-template-columns: 1fr;
  }

  .upgrhpc__choices {
    display: grid;
    grid-template-columns: 1fr;
  }

  .upgrhpc__choices span {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .upgrhpc__nav .upgrhpc__button,
  .upgrhpc__cta-row .upgrhpc__button {
    width: 100%;
  }

  .upgrhpc__card {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .upgrhpc *,
  .upgrhpc *::before,
  .upgrhpc *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  .upgrhpc__meta,
  .upgrhpc__review-warning,
  .upgrhpc__intro,
  .upgrhpc__progress,
  .upgrhpc__form,
  .upgrhpc__cta-row,
  .upgrhpc__result-actions,
  .upgrhpc__privacy {
    display: none !important;
  }

  .upgrhpc,
  .upgrhpc__card,
  .upgrhpc__result {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .upgrhpc__result {
    display: block !important;
  }

  .upgrhpc__metric,
  .upgrhpc__score,
  .upgrhpc__result-hero,
  .upgrhpc__ask-grid > div {
    break-inside: avoid;
  }
}


.upgrhpc__select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.upgrhpc__select-field {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--upgrhpc-border);
  border-radius: 15px;
  background: #fcfdfd;
}
.upgrhpc__select-field label { display:block; margin-bottom:7px; font-weight:800; color:var(--upgrhpc-ink); }
.upgrhpc__select-field select,
.upgrhpc__select-field input[type="date"] {
  width:100%; min-height:46px; margin:0; padding:10px 12px;
  border:1px solid #aec0c9; border-radius:10px; background:#fff;
  color:var(--upgrhpc-ink); font:inherit; font-size:16px;
}
.upgrhpc__select-field select:focus,
.upgrhpc__select-field input[type="date"]:focus { outline:3px solid var(--upgrhpc-focus); outline-offset:3px; }
.upgrhpc__select-field.is-invalid { border-color:var(--upgrhpc-red-border); background:#fffafa; }
.upgrhpc__select-field.is-invalid select,
.upgrhpc__select-field.is-invalid input { border-color:#b84242; }
@media (max-width:680px) { .upgrhpc__select-grid { grid-template-columns:1fr; } }
