/* ── Hexasolv Interactive Cost Estimator Styles ──────────────── */

.estimator-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.estimator-card {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(124, 58, 237, 0.05);
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

/* Progress Tracker */
.estimator-progress-wrapper {
  margin-bottom: 2.5rem;
}

.estimator-progress-text {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  color: var(--accent-1);
}

.estimator-progress-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.estimator-progress-bar-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #7c3aed, #06b6d4);
  border-radius: 10px;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Steps Layout */
.estimator-step {
  display: none;
}

.estimator-step.active {
  display: block;
  animation: fadeInStep 0.4s ease-in-out forwards;
}

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

.estimator-step-title {
  font-family: var(--font-main);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.estimator-step-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
}

/* Options Grid */
.estimator-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

/* Option Card */
.estimator-option-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.estimator-option-card:hover {
  border-color: var(--accent-1);
  transform: translateY(-4px);
}

.estimator-option-card.selected {
  border-color: var(--accent-1);
  background: rgba(124, 58, 237, 0.04);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.08);
}

html.dark .estimator-option-card.selected {
  background: rgba(124, 58, 237, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.estimator-option-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  transition: transform 0.2s;
}

.estimator-option-card:hover .estimator-option-icon {
  transform: scale(1.12);
}

.estimator-option-title {
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.estimator-option-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Multi-select checkmark indicator */
.estimator-option-card {
  position: relative;
}

.estimator-option-card::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  background: var(--accent-1);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s, transform 0.2s;
}

.estimator-option-card.selected::after {
  opacity: 1;
  transform: scale(1);
}

/* Live Estimations Bar */
.estimator-tally-bar {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.estimator-results-summary {
  display: flex;
  gap: 2rem;
}

.estimator-result-item {
  display: flex;
  flex-direction: column;
}

.estimator-result-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.estimator-result-val {
  font-family: var(--font-main);
  font-size: 1.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.estimator-nav-btns {
  display: flex;
  gap: 0.8rem;
}

.btn-estimator {
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.75rem 1.4rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-estimator-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.btn-estimator-outline:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

.btn-estimator-primary {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  box-shadow: 0 5px 15px rgba(124, 58, 237, 0.25);
}

.btn-estimator-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.btn-estimator-primary:disabled {
  background: var(--border);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Success Card */
.estimator-success-view {
  text-align: center;
  padding: 1rem 0;
}

.estimator-success-icon {
  font-size: 3.5rem;
  margin-bottom: 1.2rem;
  animation: pulseSuccess 2s infinite ease-in-out;
}

@keyframes pulseSuccess {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.estimator-success-title {
  font-family: var(--font-main);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.estimator-success-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* Responsiveness */
@media (max-width: 600px) {
  .estimator-tally-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .estimator-results-summary {
    justify-content: space-between;
  }
  .estimator-nav-btns {
    justify-content: space-between;
  }
}
