.estimator-page {
  --navy: #101725;
  --blue: #3566b5;
  --orange: #fe8200;
  --page: #f5f7fb;
  background: var(--page);
  min-height: 100vh;
}

.estimator-shell {
  background: var(--navy);
  color: #fff;
}

.estimator-shell .site-header {
  background: rgba(16, 23, 37, 0.92);
}

.estimator-main {
  padding: 36px 0 88px;
}

.estimator-panel {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
}

.progress-wrap {
  margin-bottom: 28px;
}

.progress-meta {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}

.progress-list {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b95a8;
  font-size: 13px;
  font-weight: 600;
}

.progress-index {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8edf5;
  color: #6b7289;
  font-size: 12px;
}

.progress-step.is-current .progress-index {
  background: var(--blue);
  color: #fff;
}

.progress-step.is-done .progress-index {
  background: #fff3e8;
  color: var(--orange);
}

.progress-step.is-current,
.progress-step.is-done {
  color: var(--text);
}

.progress-bar {
  height: 4px;
  border-radius: 99px;
  background: #e8edf5;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: var(--blue);
}

.wizard-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 16px 40px rgba(16, 23, 37, 0.05);
}

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

.step-heading h1 {
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
}

.step-heading p {
  color: var(--muted);
  max-width: 620px;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.option-card {
  display: flex;
  gap: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.option-card:hover,
.option-card:focus-visible {
  border-color: #c9d6ea;
  box-shadow: 0 10px 24px rgba(16, 23, 37, 0.06);
  outline: none;
}

.option-card.is-selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(53, 102, 181, 0.16);
}

.option-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #c5cede;
  flex: none;
  margin-top: 2px;
}

.option-card.is-selected .option-check {
  border-color: var(--blue);
  background: radial-gradient(circle, var(--blue) 45%, #fff 48%);
}

.option-label {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.option-range {
  display: block;
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.option-copy {
  display: block;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
  min-height: 180px;
  background: #fbfcfe;
}

textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(53, 102, 181, 0.16);
}

.char-count {
  margin: 8px 0 22px;
  font-size: 13px;
  color: var(--muted);
}

.hint-card {
  background: #f7f9fc;
  border-radius: 16px;
  padding: 18px 20px;
}

.hint-card p {
  font-weight: 700;
  margin-bottom: 10px;
}

.hint-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.hint-card li {
  display: grid;
  gap: 2px;
  font-size: 14px;
  color: var(--muted);
}

.hint-card strong {
  color: var(--text);
}

.form-error {
  margin-top: 18px;
  color: #b42318;
  font-weight: 600;
}

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

.btn-ghost,
.btn-secondary-light {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-secondary-light:hover,
.btn-ghost:hover:not(:disabled) {
  background: #f4f6fa;
}

.summary-card,
.result-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 14px;
}

.summary-card h2,
.result-card h3 {
  font-size: 16px;
  margin-bottom: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.summary-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.summary-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.summary-value {
  white-space: pre-wrap;
}

.text-link {
  background: none;
  border: 0;
  color: var(--blue);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
}

.empty-state {
  color: var(--muted);
  background: #f7f9fc;
  border-radius: 12px;
  padding: 14px 16px;
}

.pending-banner {
  background: #fff3e8;
  color: var(--navy);
  border-radius: 14px;
  padding: 14px 16px;
  font-weight: 600;
  margin-bottom: 14px;
}

.feature-list,
.optional-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.feature-list li {
  background: #f7f9fc;
  border-radius: 12px;
  padding: 12px 14px;
}

.optional-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #f7f9fc;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
}

.optional-item em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

.disclaimer {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

.result-card .btn {
  margin-top: 12px;
}

.estimate-hero h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.estimate-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin: 16px 0;
}

.estimate-facts dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.estimate-facts dd {
  margin: 4px 0 0;
  font-weight: 600;
}

.estimate-expected {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 18px;
  margin: 16px 0 8px;
}

.estimate-expected strong {
  font-size: 28px;
}

.clarify-list {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 12px 0;
}

.clarify-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fbfcfe;
}

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

.quote-card .btn {
  margin-top: 8px;
}

@media (max-width: 760px) {
  .estimator-panel {
    width: min(860px, calc(100% - 32px));
  }

  .wizard-form {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .option-grid,
  .option-grid-budget {
    grid-template-columns: 1fr;
  }

  .progress-name {
    display: none;
  }

  .wizard-actions {
    flex-direction: column-reverse;
  }

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