/* Instant Price Estimate — wizard UI (Rayco brand) */

.est-hero {
  background: linear-gradient(135deg, #1a472a 0%, #2d6a41 100%);
  color: #fff;
  padding: 3rem 0;
}

/* Progress */
.est-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  border-bottom: 2px solid #e9ecef;
}
.est-prog {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c757d;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.est-prog-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dee2e6;
  color: #495057;
  font-size: 0.75rem;
}
.est-prog.active { color: #1a472a; border-bottom-color: #1a472a; }
.est-prog.active .est-prog-num { background: #1a472a; color: #fff; }
.est-prog.done { color: #2d6a41; }
.est-prog.done .est-prog-num { background: #2d6a41; color: #fff; }

/* Panels */
.est-panel {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

/* System cards */
.est-system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.est-system-card {
  position: relative;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #f8f9fa;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color 0.15s, transform 0.15s;
  padding: 0;
  text-align: left;
  /* theme gives bare <button> a shine ::before — kill it */
}
.est-system-card::before { display: none !important; }
.est-system-card:hover { border-color: #2d6a41; transform: translateY(-2px); }
.est-system-card.selected { border-color: #1a472a; box-shadow: 0 0 0 3px rgba(26, 71, 42, 0.15); }
.est-system-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.est-system-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.05) 60%);
}
.est-system-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 2.5rem;
  background: #e9ecef;
}
.est-system-label {
  position: relative;
  padding: 0.9rem 1rem;
  color: #fff;
}
.est-system-placeholder ~ .est-system-label { color: #343a40; }
.est-system-name { display: block; font-weight: 700; font-size: 1rem; }
.est-system-sub { display: block; font-size: 0.8rem; opacity: 0.85; }

/* Forms */
.est-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.est-form-group { margin-bottom: 1rem; }
.est-form-group label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.est-form-group input,
.est-form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 1rem;
}
.est-form-group input:focus,
.est-form-group textarea:focus {
  border-color: #2d6a41;
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 106, 65, 0.12);
}
.est-form-group input.invalid { border-color: #dc3545; }
.est-input-hint { display: block; font-size: 0.78rem; color: #6c757d; margin-top: 0.3rem; }
.est-field-error { display: block; font-size: 0.78rem; color: #dc3545; margin-top: 0.3rem; }
.est-honeypot { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.est-error {
  background: #f8d7da;
  color: #842029;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Suburb autocomplete */
.est-suburb-wrap { position: relative; }
.est-suburb-list {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 0 0 8px 8px;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.est-suburb-option { padding: 0.55rem 0.75rem; cursor: pointer; font-size: 0.95rem; }
.est-suburb-option:hover, .est-suburb-option.active { background: #e8f1ea; }

/* Nav buttons */
.est-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.5rem; }
.est-btn {
  display: inline-block;
  border-radius: 8px;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  flex-direction: row;
}
.est-btn::before { display: none !important; }
.est-btn-next { background: #1a472a; color: #fff; }
.est-btn-next:hover { background: #2d6a41; color: #fff; }
.est-btn-next:disabled { background: #94a39a; cursor: wait; }
.est-btn-back { background: transparent; color: #495057; border-color: #ced4da; }
.est-btn-back:hover { border-color: #adb5bd; color: #343a40; }

/* Result */
.est-result-hero {
  background: linear-gradient(135deg, #1a472a 0%, #2d6a41 100%);
  color: #fff;
  border-radius: 10px;
  padding: 1.75rem;
  text-align: center;
  margin-bottom: 1.25rem;
}
.est-result-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
.est-result-system { font-size: 1.05rem; font-weight: 600; margin: 0.35rem 0 0.75rem; }
.est-result-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
  font-size: 2.2rem;
  font-weight: 800;
}
.est-result-gst { font-size: 0.8rem; opacity: 0.85; margin-top: 0.75rem; }
.est-result-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.est-meta-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
}
.est-meta-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: #6c757d; }
.est-meta-val { font-weight: 600; font-size: 0.95rem; }
.est-disclaimer {
  background: #fff8e1;
  border-left: 4px solid #f0c040;
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  color: #5d4a12;
  margin-bottom: 1.25rem;
}
.est-result-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

@media (max-width: 576px) {
  .est-result-price { font-size: 1.6rem; }
  .est-prog { font-size: 0.75rem; padding: 0.5rem 0.5rem; }
  .est-panel { padding: 1rem; }
}
