/* =============================================
   ESTIMATOR PAGE — Base Layout & Wizard
   ============================================= */

.estimator-hero {
  padding-top: calc(96px + 60px);
  padding-bottom: 2rem;
  background: #fff;
  /* text-align: center; */
}

.estimator-hero .hero-content {
  /* max-width: 900px; */
  /* margin: 0 auto; */
}



.estimator-hero .hero-heading {
  margin-bottom: 1.5rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-text-default);
}

.estimator-hero .hero-desc {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* Re-use char animation from home */
.estimator-hero .hero-heading .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(80px);
  will-change: transform, opacity;
}

/* =============================================
   PROGRESS BAR
   ============================================= */

.estimator-progress-section {
  background: var(--color-bg-default);
  padding: 2rem 0;
  border-bottom: 1px solid #e9e9e9;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.progress-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.progress-value {
  font-family: var(--font-bricolage);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text-default);
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 14.28%; /* Initial Step 1 of 7 */
  background: var(--color-primary);
  border-radius: 100px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================
   ESTIMATOR CONTENT LAYOUT
   ============================================= */

.estimator-main {
  background: var(--color-bg-default);
  padding: 4rem 0 6rem;
}

.estimator-layout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Left Wizard Card */
.wizard-card {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.step-content-wrapper {
  flex-grow: 1;
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

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

.wizard-card h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text-default);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.wizard-card .step-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

/* Option Row/List */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  background: #fff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.option-card:hover {
  border-color: var(--color-primary);
  background: #f8fafc;
  transform: translateY(-2px);
}

.option-card.selected {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.04);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.option-card-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.option-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.option-card.selected .option-card-icon {
  background: var(--color-primary);
  color: #fff;
}

.option-card-icon svg {
  width: 22px;
  height: 22px;
}

.option-card-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-default);
  margin-bottom: 0.25rem;
}

.option-card-info p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.option-card-price {
  font-family: var(--font-bricolage);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
}

/* Grid Layout for Checkbox Step */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.option-card-vertical {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  cursor: pointer;
  background: #fff;
  transition: all 0.3s ease;
  min-height: 180px;
}

.option-card-vertical:hover {
  border-color: var(--color-primary);
  background: #f8fafc;
  transform: translateY(-2px);
}

.option-card-vertical.selected {
  border-color: var(--color-primary);
  background: rgba(37, 99, 235, 0.04);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.option-card-vertical-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.option-card-vertical-bottom h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-default);
  margin-bottom: 0.35rem;
}

.option-card-vertical-bottom p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Wizard Navigation Row */
.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #f1f5f9;
}

.btn-prev {
  background: #fff;
  border: 1px solid #e2e8f0;
  color: var(--color-text-default);
}

.btn-prev:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-next {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #cbd5e1;
  border-color: #cbd5e1;
  color: #fff;
}


/* =============================================
   RIGHT COLUMN — Live Calculation Sidebars
   ============================================= */

.sidebar-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Computation Summary Box */
.sidebar-box {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.sidebar-box h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-default);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-box h3 svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

.sidebar-box .sidebar-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 2rem;
}

/* List of Selected Components */
.selected-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.selected-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9375rem;
}

.selected-item-label {
  color: var(--color-text-default);
  font-weight: 500;
  display: flex;
  flex-direction: column;
}

.selected-item-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.selected-item-price {
  font-weight: 700;
  color: var(--color-text-default);
}

.no-selections {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-style: italic;
  text-align: center;
  padding: 1rem 0;
}

/* Running Estimate Display Box */
.running-estimate-display {
  background: #f8fafc;
  border-radius: 18px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.running-estimate-display span.estimate-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.running-estimate-display .estimate-amount {
  font-family: var(--font-bricolage);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.running-estimate-display .estimate-amount span.currency {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-default);
  margin-left: 0.25rem;
}

.running-estimate-display .estimate-timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.9375rem;
}

.running-estimate-display .estimate-timeline-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
}

.running-estimate-display .estimate-timeline-label svg {
  width: 16px;
  height: 16px;
}

.running-estimate-display .estimate-timeline-value {
  font-weight: 700;
  color: var(--color-text-default);
}

/* Secure consultation guarantee box */
.guarantee-box {
  background: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.guarantee-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.guarantee-icon svg {
  width: 20px;
  height: 20px;
}

.guarantee-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-default);
  margin-bottom: 0.35rem;
}

.guarantee-content p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}


/* =============================================
   FORM FIELDS FOR STEP 7
   ============================================= */

.estimator-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.estimator-form-grid .form-group-full {
  grid-column: 1 / -1;
}

.estimator-form-grid label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
}

.estimator-form-grid label span {
  color: var(--color-primary);
}

.estimator-form-grid .form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  background: #f8f9fc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.estimator-form-grid .form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.estimator-form-grid textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-error-msg {
  color: #ef4444;
  font-size: 0.8125rem;
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error .form-control {
  border-color: #ef4444;
  background: #fff5f5;
}

.form-group.has-error .form-error-msg {
  display: block;
}

/* Success panel state */
.success-panel {
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.success-icon svg {
  width: 40px;
  height: 40px;
}

.success-panel h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text-default);
}

.success-panel p {
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}


/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 1200px) {
  .estimator-layout-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
  }
  
  .wizard-card {
    padding: 2rem;
  }
}

@media (max-width: 1024px) {
  .estimator-layout-grid {
    grid-template-columns: 1fr;
  }
  
  .sidebar-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
  }
  
  .running-estimate-display {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .estimator-hero {
    padding-top: calc(70px + 40px);
  }
  
  .estimator-hero .hero-heading {
    font-size: clamp(2.5rem, 7vw, 3.5rem);
  }
  
  .estimator-hero .hero-desc {
    font-size: 1rem;
  }
  
  .sidebar-container {
    grid-template-columns: 1fr;
  }
  
  .options-grid {
    grid-template-columns: 1fr;
  }
  
  .wizard-card {
    padding: 1.5rem;
    border-radius: 20px;
  }
  
  .wizard-card h2 {
    font-size: 1.5rem;
  }
  
  .wizard-card .step-desc {
    margin-bottom: 1.75rem;
  }
  
  .option-card {
    padding: 1.25rem;
  }
  
  .option-card-icon {
    width: 40px;
    height: 40px;
  }
  
  .option-card-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .option-card-info h4 {
    font-size: 1rem;
  }
  
  .option-card-info p {
    font-size: 0.85rem;
  }
  
  .option-card-price {
    font-size: 1rem;
  }
  
  .estimator-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .estimator-hero {
    padding-top: calc(60px + 30px);
  }
  
  .estimator-hero .hero-heading {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }
  
  .wizard-card {
    padding: 1.25rem;
  }
  
  .sidebar-box {
    padding: 1.5rem;
  }
  
  .guarantee-box {
    padding: 1.5rem;
  }
  .wizard-actions{
    flex-direction: column;
    gap: 10px;
  }
  .btn-prev{
    width: 100%;
  }
  .btn-next{
    width: 100%;
  }
}
