.pbi-shell {
  color: #102338;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 0;
}

.pbi-shell * {
  box-sizing: border-box;
}

.pbi-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.pbi-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: radial-gradient(circle at top left, rgba(255,255,255,.1), transparent 34%), linear-gradient(150deg, #132f47, var(--pbi-dark));
  box-shadow: 0 28px 80px rgba(13, 36, 56, .24);
  padding: 28px;
  color: #fff;
}

.pbi-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.pbi-progress span {
  display: block;
  height: 5px;
  flex: 1;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: transparent;
}

.pbi-progress span.is-active {
  background: var(--pbi-accent);
}

.pbi-step {
  display: none;
  animation: pbiFade .22s ease;
}

.pbi-step.is-active {
  display: block;
}

.pbi-step h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 21px;
  letter-spacing: 0;
}

.pbi-category {
  margin-bottom: 12px;
  border: 1px solid rgba(16, 35, 56, .08);
  border-radius: 14px;
  background: #fff;
  color: #102338;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(6, 19, 33, .08);
}

.pbi-category-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.pbi-category strong,
.pbi-category small {
  display: block;
}

.pbi-category small,
.pbi-category-head span {
  color: #5f6f80;
  font-size: 12px;
  line-height: 1.4;
}

.pbi-category-head span {
  white-space: nowrap;
  font-weight: 800;
  color: #102338;
}

.pbi-slider-row {
  display: grid;
  grid-template-columns: 1fr 88px;
  gap: 18px;
  align-items: center;
}

.pbi-slider-row input[type="range"] {
  appearance: none;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pbi-accent) var(--fill, 0%), #e6ebf0 var(--fill, 0%));
  outline: none;
}

.pbi-slider-row input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #dfe7ee;
  box-shadow: 0 5px 18px rgba(16, 35, 56, .16);
  cursor: pointer;
}

.pbi-slider-row input[type="number"],
.pbi-field input,
.pbi-field textarea {
  width: 100%;
  border: 1px solid #dce5ed;
  border-radius: 8px;
  background: #fff;
  color: #102338;
  font: inherit;
  font-weight: 700;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.pbi-slider-row input[type="number"] {
  height: 43px;
  padding: 0 10px;
  text-align: center;
}

.pbi-field input,
.pbi-field textarea {
  margin-top: 7px;
  padding: 13px 14px;
  font-weight: 600;
}

.pbi-slider-row input:focus,
.pbi-field input:focus,
.pbi-field textarea:focus {
  border-color: var(--pbi-accent);
  box-shadow: 0 0 0 3px rgba(22, 193, 114, .16);
}

.pbi-totals {
  padding: 6px 0 16px;
}

.pbi-totals > div,
.pbi-grand-total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: baseline;
  padding: 5px 0;
}

.pbi-totals span {
  color: #dbe7f0;
}

.pbi-totals small {
  color: #91a3b4;
}

.pbi-totals strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 18px;
}

.pbi-grand-total {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.pbi-grand-total span {
  color: #fff;
  font-weight: 800;
}

.pbi-grand-total strong {
  color: #62d998;
  font-size: 30px;
}

.pbi-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  width: 100%;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--pbi-accent), #12a963);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(22, 193, 114, .22);
  transition: transform .18s ease, box-shadow .18s ease;
}

.pbi-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(22, 193, 114, .3);
}

.pbi-button-muted {
  background: rgba(255,255,255,.12);
  box-shadow: none;
}

.pbi-step-grid {
  display: block;
}

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

.pbi-fields > .pbi-field {
  grid-column: 1 / -1;
}

.pbi-field {
  color: #dbe7f0;
  font-size: 13px;
  font-weight: 800;
}

.pbi-field em {
  color: #90a5b8;
  font-style: normal;
  font-weight: 600;
}

.pbi-field-full {
  grid-column: 1 / -1;
}

.pbi-fields > .pbi-field-postcode,
.pbi-fields > .pbi-field-house {
  grid-column: span 4;
}

.pbi-fields > .pbi-field-addition {
  grid-column: span 2;
}

.pbi-fields > .pbi-field-half {
  grid-column: span 5;
}

.pbi-address-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pbi-address-fields[hidden] {
  display: none;
}

.pbi-checks {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.pbi-check {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #eaf2f7;
  font-size: 14px;
  font-weight: 700;
}

.pbi-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--pbi-accent);
}

.pbi-summary {
  margin-top: 18px;
  border-radius: 16px;
  padding: 20px;
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}

.pbi-summary span {
  display: block;
  color: #b8c7d4;
  font-weight: 800;
}

.pbi-summary strong {
  display: block;
  margin-top: 8px;
  color: #62d998;
  font-size: 28px;
}

.pbi-actions {
  display: grid;
  grid-template-columns: .6fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.pbi-loader {
  padding: 16px 0 8px;
}

.pbi-loader-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.pbi-loader-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--pbi-accent);
  transition: width .28s ease;
}

.pbi-loader ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.pbi-loader li {
  color: #91a3b4;
  font-weight: 800;
}

.pbi-loader li.is-done {
  color: #fff;
}

.pbi-loader li.is-done::before {
  content: "✓ ";
  color: var(--pbi-accent);
}

.pbi-thanks {
  text-align: center;
}

.pbi-checkmark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--pbi-accent);
  font-size: 32px;
  font-weight: 900;
}

.pbi-thanks dl {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.pbi-thanks dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.1);
}

.pbi-thanks dt {
  color: #b8c7d4;
}

.pbi-thanks dd {
  margin: 0;
  font-weight: 900;
}

.pbi-thanks h3 {
  margin: 18px 0 8px;
}

.pbi-thanks ol {
  margin: 0;
  padding-left: 24px;
  text-align: left;
  color: #dbe7f0;
  line-height: 1.8;
}

.pbi-message {
  margin: 14px 0 0;
  color: #ffd6d6;
  font-weight: 800;
}

.pbi-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

@keyframes pbiFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .pbi-step-grid {
    grid-template-columns: 1fr;
  }

  .pbi-summary {
    position: static;
  }
}

@media (max-width: 560px) {
  .pbi-shell {
    padding: 28px 10px;
  }

  .pbi-card {
    padding: 18px;
    border-radius: 18px;
  }

  .pbi-category {
    padding: 15px;
  }

  .pbi-category-head {
    display: grid;
    gap: 8px;
  }

  .pbi-category-head span {
    white-space: normal;
  }

  .pbi-slider-row,
  .pbi-actions {
    grid-template-columns: 1fr;
  }

  .pbi-slider-row input[type="number"] {
    text-align: left;
  }
}
