.collection-estimator-page .estimator-input-grid,
.collection-estimator-page .estimator-options-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.collection-estimator-page .estimator-step-panel {
  min-width: 0;
}

.collection-estimator-page .estimator-step-heading {
  display: grid;
  gap: 5px;
  padding-bottom: 18px;
  border-bottom: 1px solid #dfe4e1;
}

.collection-estimator-page .estimator-step-heading:focus {
  outline: none;
}

.collection-estimator-page .estimator-step-heading > span {
  color: #68736d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.collection-estimator-page .estimator-step-heading > strong {
  color: #1d2521;
  font-size: 1.45rem;
  line-height: 1.2;
}

.collection-estimator-page .estimator-step-heading > p {
  margin-top: 3px;
  color: #68736d;
  font-size: 0.92rem;
  line-height: 1.5;
}

.collection-estimator-page .estimator-step-heading--outside {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 10px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.collection-estimator-page .estimator-step-heading--outside > span,
.collection-estimator-page .estimator-step-heading--outside > strong,
.collection-estimator-page .estimator-step-heading--outside > button {
  color: #fff;
}

.collection-estimator-page .estimator-step-heading--outside > strong {
  grid-column: 1;
}

.collection-estimator-page .estimator-step-heading--outside > button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  border: 0;
  padding: 4px 0;
  background: transparent;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.collection-estimator-page .estimator-collection-type {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.collection-estimator-page .estimator-collection-type > legend,
.collection-estimator-page .complete-system-equipment > legend {
  color: #303834;
  font-weight: 850;
}

.collection-estimator-page .estimator-collection-type__options {
  display: grid;
  gap: 10px;
}

.collection-estimator-page .estimator-collection-type__options > label {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid #d5ddd8;
  border-radius: 8px;
  background: #f5f7f6;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.collection-estimator-page .estimator-collection-type__options > label:hover {
  border-color: #9eafa6;
}

.collection-estimator-page .estimator-collection-type__options > label.is-selected {
  border-color: #1f6b4f;
  background: #edf7f2;
}

.collection-estimator-page .estimator-collection-type__options input {
  position: absolute;
  opacity: 0;
}

.collection-estimator-page .estimator-collection-type__check {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid #a9b7b0;
  border-radius: 999px;
  background: #fff;
  color: transparent;
  font-size: 0.8rem;
  font-weight: 900;
}

.collection-estimator-page .estimator-collection-type__options input:checked + .estimator-collection-type__check {
  border-color: #1f6b4f;
  background: #1f6b4f;
  color: #fff;
}

.collection-estimator-page .estimator-collection-type__options input:focus-visible + .estimator-collection-type__check {
  outline: 3px solid rgba(31, 107, 79, 0.22);
  outline-offset: 3px;
}

.collection-estimator-page .estimator-collection-type__content {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.collection-estimator-page .estimator-collection-type__content > strong {
  color: #1d2521;
  line-height: 1.25;
}

.collection-estimator-page .estimator-collection-type__content > span {
  color: #68736d;
  font-size: 0.88rem;
  line-height: 1.45;
}

.collection-estimator-page .estimator-collection-type__content > small {
  width: fit-content;
  margin-top: 2px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e4eee9;
  color: #245b46;
  font-size: 0.74rem;
  font-weight: 850;
}

.collection-estimator-page .estimator-type-step__actions .btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.collection-estimator-page .complete-system-form {
  overflow: visible;
}

.collection-estimator-page .complete-system-form__sections {
  display: grid;
  gap: 24px;
  margin-top: 20px;
}

.collection-estimator-page .complete-system-form__sections section {
  display: grid;
  gap: 14px;
}

.collection-estimator-page .complete-system-form__sections h2 {
  font-size: 1.1rem;
}

.collection-estimator-page .complete-system-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.collection-estimator-page .complete-system-form__full {
  grid-column: 1 / -1;
}

.collection-estimator-page .complete-system-form select,
.collection-estimator-page .complete-system-form textarea {
  width: 100%;
  border: 1px solid #cfd7d2;
  border-radius: 6px;
  padding: 12px 13px;
  background: #fff;
  color: #1d2521;
}

.collection-estimator-page .complete-system-form select {
  min-height: 50px;
}

.collection-estimator-page .complete-system-form textarea {
  min-height: 120px;
  resize: vertical;
}

.collection-estimator-page .complete-system-form select:focus,
.collection-estimator-page .complete-system-form textarea:focus {
  outline: 3px solid rgba(31, 107, 79, 0.18);
  border-color: #1f6b4f;
}

.collection-estimator-page .complete-system-form [aria-invalid="true"] {
  border-color: #a3412d;
}

.collection-estimator-page .complete-system-equipment {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.collection-estimator-page .complete-system-equipment__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.collection-estimator-page .complete-system-equipment__grid label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 11px;
  border: 1px solid #d5ddd8;
  border-radius: 6px;
  background: #f5f7f6;
  color: #303834;
  font-size: 0.86rem;
  line-height: 1.35;
  cursor: pointer;
}

.collection-estimator-page .complete-system-equipment__grid input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #1f6b4f;
}

.collection-estimator-page .complete-system-form .field-error {
  min-height: 0;
  color: #a3412d;
  font-size: 0.8rem;
  font-weight: 800;
}

.collection-estimator-page .complete-system-form__preview-message {
  min-height: 0;
  margin-top: 16px;
  color: #245b46;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.45;
}

.collection-estimator-page .complete-system-form__actions {
  padding-top: 2px;
}

@media (min-width: 1024px) {
  .collection-estimator-page .estimator-page-container {
    width: 100%;
    max-width: 1240px;
    grid-template-columns: minmax(300px, 0.85fr) minmax(620px, 1.15fr);
    gap: clamp(32px, 4vw, 56px);
    align-items: center;
  }

  .collection-estimator-page .estimator-card {
    width: 100%;
    max-width: 660px;
    justify-self: end;
    padding: 24px;
  }

  .collection-estimator-page .complete-system-form {
    max-width: 720px;
  }

  .collection-estimator-page .estimator-fields {
    gap: 14px;
    margin-top: 18px;
  }

  .collection-estimator-page .estimator-input-grid,
  .collection-estimator-page .estimator-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .collection-estimator-page .estimator-options-grid .loading-choice-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .collection-estimator-page .loading-choice {
    min-height: auto;
    gap: 3px 8px;
    padding: 11px 12px;
  }

  .collection-estimator-page .loading-choice small {
    margin-top: 1px;
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .collection-estimator-page .estimator-field-note,
  .collection-estimator-page .postcode-location {
    overflow-wrap: anywhere;
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .collection-estimator-page .estimator-result {
    min-height: 0;
    margin-top: 16px;
    padding-top: 14px;
  }

  .collection-estimator-page .estimate-breakdown h3 {
    margin-bottom: 2px;
  }

  .collection-estimator-page .estimate-row {
    padding-block: 9px;
  }

  .collection-estimator-page .estimate-row--trade {
    margin-top: 6px;
    padding: 11px 13px;
  }

  .collection-estimator-page .estimate-total {
    margin-top: 12px;
    padding: 15px 16px;
  }

  .collection-estimator-page .estimate-total small {
    margin-top: 6px;
  }

  .collection-estimator-page .estimate-disclaimer {
    margin-top: 10px;
  }

  .collection-estimator-page .estimator-actions {
    flex-wrap: nowrap;
    margin-top: 14px;
  }

  .collection-estimator-page .estimator-actions .btn {
    flex: 1 1 auto;
  }

  .collection-estimator-page .estimator-reset {
    flex: 0 0 auto;
  }
}

@media (max-width: 720px) {
  .collection-estimator-page .estimator-step-heading--outside {
    grid-template-columns: 1fr;
  }

  .collection-estimator-page .estimator-step-heading--outside > button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .collection-estimator-page .complete-system-form__grid,
  .collection-estimator-page .complete-system-equipment__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .collection-estimator-page .complete-system-form__full {
    grid-column: auto;
  }

  .collection-estimator-page .complete-system-form__actions {
    padding: 0;
  }
}

/* Complete System Step 2 has its own layout so the panel estimator remains unchanged. */
.collection-estimator-page .complete-system-step__intro-column {
  align-self: center;
  gap: 0;
}

.collection-estimator-page .complete-system-step__title {
  width: 100%;
  max-width: 650px;
  margin: 0;
  font-size: clamp(46px, 3.4vw, 52px);
  line-height: 1.04;
}

.collection-estimator-page .complete-system-step__title span {
  display: block;
  white-space: nowrap;
}

.collection-estimator-page .estimator-intro .complete-system-step__intro {
  max-width: 610px;
  margin: 26px 0 0;
  font-size: 17px;
  line-height: 1.65;
}

.collection-estimator-page .complete-system-step__notice {
  max-width: 610px;
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 3px solid #82b99f;
  border-radius: 0 12px 12px 0;
  background: rgba(255, 255, 255, 0.08);
}

.collection-estimator-page .estimator-intro .complete-system-step__notice p {
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.6;
}

.collection-estimator-page .complete-system-step__form {
  width: 100%;
  min-width: 0;
  justify-self: start;
}

@media (min-width: 1200px) {
  .collection-estimator-page .estimator-page-container.complete-system-step {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(48px, 5vw, 80px);
    align-items: center;
  }

  .collection-estimator-page .complete-system-step .complete-system-form {
    max-width: 720px;
    justify-self: end;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .collection-estimator-page .estimator-page-container.complete-system-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    align-items: start;
  }

  .collection-estimator-page .complete-system-step__title {
    max-width: 650px;
    font-size: clamp(44px, 5.2vw, 48px);
  }

  .collection-estimator-page .complete-system-step .complete-system-form {
    max-width: 720px;
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .collection-estimator-page .estimator-intro__mobile-hidden {
    display: none;
  }

  .collection-estimator-page .estimator-page-container.complete-system-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    align-items: start;
  }

  .collection-estimator-page .complete-system-step__title {
    max-width: none;
    font-size: clamp(34px, 9vw, 40px);
    line-height: 1.08;
  }

  .collection-estimator-page .complete-system-step__title span {
    display: inline;
    white-space: normal;
  }

  .collection-estimator-page .complete-system-step__title span + span::before {
    content: " ";
  }

  .collection-estimator-page .estimator-intro .complete-system-step__intro {
    margin-top: 24px;
    font-size: 1rem;
  }

  .collection-estimator-page .complete-system-step__notice {
    max-width: none;
    margin-top: 24px;
    padding: 16px;
  }
}
