/* ============================================================
   LogicBot — estimate.css
   ============================================================ */

.estimate-section { padding-top: 24px; padding-bottom: 120px; }

.estimate-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

/* Wizard */
.wizard-step { display: none; animation: fadeIn 0.4s ease; }
.wizard-step.active { display: block; }

.step-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.step-title span {
  width: 32px; height: 32px;
  background: var(--accent);
  color: var(--bg-primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-family: var(--font-heading);
}

/* Property Grid (Step 1) */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.prop-card { cursor: pointer; }
.prop-card input { display: none; }

.prop-content {
  background: var(--bg-card);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.prop-card:hover .prop-content {
  border-color: rgba(0,194,255,0.4);
  background: var(--bg-card-hover);
}

.prop-card input:checked + .prop-content {
  border-color: var(--accent);
  background: rgba(0,194,255,0.08);
  box-shadow: 0 0 20px rgba(0,194,255,0.15);
}

.prop-emoji { font-size: 40px; margin-bottom: 12px; }

.prop-content h4 {
  font-size: 14px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 4px;
}

.prop-content p { font-size: 12px; color: var(--text-muted); }

/* Features List (Step 2) */
.feat-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }

.feat-row { cursor: pointer; display: block; }
.feat-row input { display: none; }

.feat-info {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: var(--transition-fast);
}

.feat-row:hover .feat-info {
  background: var(--bg-card-hover);
  border-color: rgba(0,194,255,0.3);
}

.feat-row input:checked + .feat-info {
  border-color: var(--accent);
  background: rgba(0,194,255,0.05);
}

.feat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  border: 1px solid transparent;
  flex-shrink: 0;
}

.feat-info h4 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.feat-info p { font-size: 13px; color: var(--text-secondary); }

/* Actions */
.wizard-actions {
  display: flex; gap: 12px;
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  margin-top: 16px;
}

/* Summary (Step 3) */
.summary-box {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
}

.summ-header {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 16px; margin-bottom: 24px;
}

.summ-prop-label { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--text-primary); }

.summ-breakdown { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }

.summ-item {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--text-secondary);
}
.summ-item-val { font-weight: 600; color: var(--text-primary); }

.summ-total-row {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(0,194,255,0.08);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.summ-total-val {
  font-family: var(--font-heading);
  font-size: 2.2rem; font-weight: 900;
  color: var(--accent);
}

.lead-capture {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

/* Live Sticky Estimate */
.live-estimate { position: sticky; top: calc(var(--nav-height) + 24px); }

.live-est-card {
  background: linear-gradient(180deg, var(--bg-card) 0%, #060b14 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}

.live-est-card::before {
  content: ''; position: absolute; top:0; left:0; right:0; height:3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.live-est-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text-muted); margin-bottom: 8px; }

.live-est-val {
  font-family: var(--font-heading);
  font-size: 2.5rem; font-weight: 900;
  color: var(--success);
  margin-bottom: 24px;
}

.live-est-line { height: 1px; background: rgba(255,255,255,0.06); margin-bottom: 24px; }

.live-est-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }

.live-est-items li {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-secondary);
}

.live-item-val { font-weight: 600; color: var(--text-primary); }

.live-est-note {
  font-size: 11px; font-style: italic; color: var(--text-muted);
  line-height: 1.5; margin-bottom: 24px;
}

.recommender-bot {
  background: rgba(0,194,255,0.05);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.bot-avatar {
  width: 32px; height: 32px; background: rgba(0,194,255,0.15); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}

/* Responsive */
@media (max-width: 992px) {
  .estimate-layout { grid-template-columns: 1fr; }
  .live-estimate { display: none; } /* Hide sticky on mobile so it doesn't block wizard */
  .prop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .prop-grid { grid-template-columns: 1fr; }
  .summ-total-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}
