/* Central HVAC Filter Finder */

.filter-bg {
  background: #f4f8fb;
}

.filter-wrap {
  max-width: 1050px;
}

.filter-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 26px;
}

.filter-progress button {
  padding: 12px 14px;
  border-radius: 10px;
  background: #e8eef4;
  color: #617286;
  text-align: center;
  font-size: .88rem;
  font-family: inherit;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.filter-progress button:hover {
  background: #d8e4ef;
  color: #17324f;
}

.filter-progress button:focus-visible {
  outline: 3px solid rgba(11, 94, 215, .28);
  outline-offset: 2px;
}

.filter-progress button.active,
.filter-progress button.active:hover {
  background: #0b5ed7;
  color: #fff;
  transform: translateY(-1px);
}

.filter-step {
  display: none;
}

.filter-step.active {
  display: block;
}

.step-heading {
  margin-bottom: 24px;
}

.step-heading h2 {
  margin: 7px 0 8px;
}

.filter-card,
.affiliate-box,
.filter-report {
  margin-bottom: 22px;
  padding: 24px;
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(12, 36, 61, .06);
}

.filter-card h3,
.affiliate-box h2 {
  margin-top: 0;
}

.muted {
  color: #657487;
}

.field-label,
.filter-card label,
.form-grid label {
  font-weight: 700;
  color: #10233a;
}

.filter-card input[type="text"],
.filter-card input[type="number"],
.filter-card input[type="email"],
.filter-card input[type="tel"],
.filter-card select,
.form-grid input,
.form-grid select {
  width: 100%;
  min-height: 46px;
  margin-top: 7px;
  padding: 10px 12px;
  border: 1px solid #cbd6e2;
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.camera-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 2px dashed #b8c8d8;
  border-radius: 14px;
  cursor: pointer;
  background: #f8fbfe;
}

.camera-box:hover {
  border-color: #0b5ed7;
}

.camera-box input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.camera-box small,
.camera-box strong {
  display: block;
}

.camera-box small {
  margin-top: 4px;
  color: #657487;
  font-weight: 500;
}

.camera-icon {
  font-size: 2rem;
}

.photo-preview {
  margin-top: 18px;
}

.photo-preview img {
  display: block;
  max-width: 100%;
  max-height: 340px;
  margin-bottom: 12px;
  border-radius: 12px;
}

.choice-grid,
.condition-grid {
  display: grid;
  gap: 12px;
}

.choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.condition-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid label,
.condition-grid label,
.consent label {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #e0e7ef;
  border-radius: 10px;
  background: #fafcfe;
  font-weight: 600;
}

.choice-grid input,
.condition-grid input,
.consent input {
  margin-top: 3px;
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.custom-size-toggle {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  font-weight: 800;
  color: #0b5ed7;
  cursor: pointer;
}

.custom-size-toggle input {
  margin: 0;
}

.custom-nominal-fields {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #d8e4ef;
  border-radius: 10px;
  background: #f8fbfe;
}

.custom-nominal-fields .muted {
  margin-top: 0;
}

.custom-size-note {
  margin: 10px 0 0;
  font-size: .92rem;
  color: #536273;
}

.measure-help {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e2e9f0;
}

.measure-help summary {
  cursor: pointer;
  font-weight: 800;
  color: #0b5ed7;
}

.result-note {
  margin-top: 14px;
  padding: 12px 14px;
  background: #eef6ff;
  border-radius: 10px;
  font-weight: 700;
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

.consent {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.actions.right {
  justify-content: flex-end;
}

.actions.center {
  justify-content: center;
  flex-wrap: wrap;
}

.filter-error {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff1f0;
  color: #8f1d1d;
  font-weight: 700;
}

.filter-report h2 {
  margin-top: 0;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.report-item {
  padding: 16px;
  border-radius: 12px;
  background: #f5f9fc;
}

.report-item strong,
.report-item span {
  display: block;
}

.report-item strong {
  margin-bottom: 4px;
  color: #63758a;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.report-item span {
  color: #10233a;
  font-weight: 800;
}

.report-advice {
  margin-top: 20px;
  padding: 18px;
  border-left: 4px solid #0b5ed7;
  background: #eef6ff;
  border-radius: 8px;
}

.report-warning {
  margin-top: 16px;
  padding: 16px;
  border-left: 4px solid #f28b20;
  background: #fff8ef;
  border-radius: 8px;
}

.affiliate-box {
  border-top: 5px solid #0b5ed7;
}

.affiliate-disclosure {
  margin-top: 12px;
  color: #6b7787;
  font-size: .82rem;
}

.disabled-link {
  pointer-events: none;
  opacity: .55;
}

@media (max-width: 760px) {
  .filter-progress {
    grid-template-columns: repeat(2, 1fr);
  }

  .choice-grid,
  .condition-grid,
  .size-grid,
  .form-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .form-grid .wide {
    grid-column: auto;
  }

  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
  }
}


/* Filter location cards */
.filter-location-grid {
  align-items: stretch;
}

.filter-location-option {
  display: grid !important;
  grid-template-columns: 24px 64px minmax(0, 1fr);
  gap: 14px !important;
  align-items: center !important;
  min-height: 118px;
  padding: 16px 18px !important;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.filter-location-option:hover {
  border-color: #9bc8f5;
  box-shadow: 0 8px 20px rgba(12, 36, 61, .08);
  transform: translateY(-1px);
}

.filter-location-option:has(input:checked) {
  border-color: #0b5ed7;
  box-shadow: 0 0 0 2px rgba(11, 94, 215, .10);
  background: #f6faff;
}

.filter-location-option input[type="radio"] {
  inline-size: 18px;
  block-size: 18px;
  margin: 0;
  align-self: center;
}

.filter-location-icon {
  display: grid;
  place-items: center;
  inline-size: 64px;
  block-size: 64px;
  border-radius: 50%;
  background: #eef6ff;
  color: #5279a6;
}

.filter-location-icon svg {
  inline-size: 46px;
  block-size: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.filter-location-icon-question {
  font-size: 2.35rem;
  line-height: 1;
  font-weight: 800;
}

.filter-location-copy {
  min-width: 0;
}

.filter-location-copy strong,
.filter-location-copy small {
  display: block;
}

.filter-location-copy strong {
  margin-bottom: 5px;
  color: #10233a;
  font-size: .98rem;
  line-height: 1.3;
}

.filter-location-copy small {
  color: #657487;
  font-size: .85rem;
  line-height: 1.45;
  font-weight: 500;
}

@media (max-width: 760px) {
  .filter-location-option {
    grid-template-columns: 22px 54px minmax(0, 1fr);
    min-height: 104px;
    padding: 14px !important;
  }

  .filter-location-icon {
    inline-size: 54px;
    block-size: 54px;
  }

  .filter-location-icon svg {
    inline-size: 38px;
    block-size: 38px;
  }
}

@media (max-width: 430px) {
  .filter-location-option {
    grid-template-columns: 20px 48px minmax(0, 1fr);
    gap: 10px !important;
  }

  .filter-location-icon {
    inline-size: 48px;
    block-size: 48px;
  }

  .filter-location-icon svg {
    inline-size: 34px;
    block-size: 34px;
  }

  .filter-location-copy strong {
    font-size: .94rem;
  }

  .filter-location-copy small {
    font-size: .8rem;
  }
}


/* Revised Step 1 alignment */
.system-type-card,
.filter-location-card {
  width: 100%;
}

.system-type-grid,
.filter-location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.system-type-option,
.filter-location-option {
  display: grid !important;
  grid-template-columns: 22px 58px minmax(0, 1fr);
  gap: 12px !important;
  align-items: center !important;
  min-height: 116px;
  padding: 15px 16px !important;
  border: 1px solid #dfe7ef;
  border-radius: 12px;
  background: #fafcfe;
  cursor: pointer;
  font-weight: 600;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.system-type-option:hover,
.filter-location-option:hover {
  border-color: #9bc8f5;
  box-shadow: 0 8px 20px rgba(12, 36, 61, .08);
  transform: translateY(-1px);
}

.system-type-option:has(input:checked),
.filter-location-option:has(input:checked) {
  border-color: #0b5ed7;
  background: #f5f9ff;
  box-shadow: 0 0 0 2px rgba(11, 94, 215, .10);
}

.system-type-option input[type="radio"],
.filter-location-option input[type="radio"] {
  inline-size: 18px;
  block-size: 18px;
  margin: 0;
}

.system-type-icon,
.filter-location-icon {
  display: grid;
  place-items: center;
  inline-size: 58px;
  block-size: 58px;
  border-radius: 50%;
  background: #eef6ff;
  color: #5279a6;
}

.system-type-icon svg,
.filter-location-icon svg {
  inline-size: 40px;
  block-size: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.system-type-icon-question,
.filter-location-icon-question {
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
}

.system-type-copy,
.filter-location-copy {
  min-width: 0;
}

.system-type-copy strong,
.system-type-copy small,
.filter-location-copy strong,
.filter-location-copy small {
  display: block;
}

.system-type-copy strong,
.filter-location-copy strong {
  margin-bottom: 4px;
  color: #10233a;
  font-size: .94rem;
  line-height: 1.28;
}

.system-type-copy small,
.filter-location-copy small {
  color: #657487;
  font-size: .79rem;
  line-height: 1.38;
  font-weight: 500;
}

.filter-style-row {
  max-width: 520px;
  margin-top: 18px;
}

.filter-style-row select {
  width: 100%;
}

@media (max-width: 1000px) {
  .system-type-grid,
  .filter-location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .system-type-grid,
  .filter-location-grid {
    grid-template-columns: 1fr;
  }

  .system-type-option,
  .filter-location-option {
    grid-template-columns: 22px 52px minmax(0, 1fr);
    min-height: 100px;
    padding: 14px !important;
  }

  .system-type-icon,
  .filter-location-icon {
    inline-size: 52px;
    block-size: 52px;
  }

  .system-type-icon svg,
  .filter-location-icon svg {
    inline-size: 36px;
    block-size: 36px;
  }

  .filter-style-row {
    max-width: none;
  }
}


/* Step 2 condition-card alignment */
.condition-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.condition-option {
  display: grid !important;
  grid-template-columns: 22px 42px minmax(0, 1fr);
  gap: 12px !important;
  align-items: center !important;
  min-height: 78px;
  padding: 14px 16px !important;
  cursor: pointer;
}

.condition-option input[type="checkbox"] {
  inline-size: 18px;
  block-size: 18px;
  margin: 0;
}

.condition-icon {
  display: grid;
  place-items: center;
  inline-size: 42px;
  block-size: 42px;
  border-radius: 50%;
  background: #eef6ff;
  font-size: 1.15rem;
}

.condition-copy {
  min-width: 0;
  color: #10233a;
  font-weight: 700;
  line-height: 1.35;
}

.condition-option:has(input:checked) {
  border-color: #0b5ed7;
  background: #f5f9ff;
  box-shadow: 0 0 0 2px rgba(11, 94, 215, .10);
}

.step2-bottom-grid {
  align-items: stretch;
}

.step2-field-card {
  display: flex;
  align-items: center;
  min-height: 126px;
}

.step2-field-card .field-label {
  width: 100%;
}

/* Step 3 consent alignment */
.consent {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.consent-option {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px !important;
  align-items: center !important;
  min-height: 54px;
  padding: 12px 14px !important;
}

.consent-option input[type="checkbox"] {
  inline-size: 18px;
  block-size: 18px;
  margin: 0;
}

.consent-option span {
  min-width: 0;
  color: #10233a;
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .condition-grid {
    grid-template-columns: 1fr;
  }

  .condition-option {
    grid-template-columns: 22px 40px minmax(0, 1fr);
    min-height: 68px;
  }

  .condition-icon {
    inline-size: 40px;
    block-size: 40px;
  }

  .step2-field-card {
    min-height: 0;
  }
}

/* Mobile: keep the custom printed-size checkbox label readable */
@media (max-width: 620px) {
  .custom-size-toggle {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    width: 100%;
  }

  .custom-size-toggle input[type="checkbox"] {
    inline-size: 18px;
    block-size: 18px;
    margin: 2px 0 0;
  }

  .custom-size-toggle span {
    min-width: 0;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }
}

