/* ═══════════════════════════════════════════════════════════
   FİYAT ALMA SİHİRBAZI (WIZARD)
   ═══════════════════════════════════════════════════════════ */

.wizard-section {
  background: transparent;
  position: relative;
  overflow: hidden;
}

.wizard-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.dedicated-wizard {
  max-width: 100% !important;
  width: 100%;
}

/* Progress Bar */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-10);
  position: relative;
  padding: 0 var(--space-4);
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--dark-border);
}

.wizard-progress-fill {
  position: absolute;
  top: 20px;
  left: 40px;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  position: relative;
  z-index: 1;
}

.wizard-step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark-card);
  border: 2px solid var(--dark-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-muted);
  transition: all var(--transition-base);
}

.wizard-step-indicator.active .wizard-step-circle {
  background: var(--gold-gradient);
  border-color: var(--gold-primary);
  color: var(--dark-primary);
  box-shadow: 0 0 0 6px rgba(200, 164, 92, 0.2);
}

.wizard-step-indicator.completed .wizard-step-circle {
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  color: var(--dark-primary);
}

.wizard-step-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.wizard-step-indicator.active .wizard-step-label {
  color: var(--gold-primary);
  font-weight: 600;
}

.wizard-step-indicator.completed .wizard-step-label {
  color: var(--text-secondary);
}

/* Wizard Card */
.wizard-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  min-height: 550px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wizard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}

/* Wizard Steps Content */
.wizard-steps-wrapper {
  position: relative;
  overflow: hidden;
}

.wizard-step-content {
  display: none;
  animation: wizardFadeIn 0.4s ease;
}

.wizard-step-content.active {
  display: block;
}

@keyframes wizardFadeIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.wizard-step-content.slide-out-left {
  animation: wizardSlideOutLeft 0.3s ease forwards;
}

@keyframes wizardSlideOutLeft {
  to {
    opacity: 0;
    transform: translateX(-30px);
  }
}

.wizard-step-header {
  margin-bottom: var(--space-8);
}

.wizard-step-header h3 {
  font-family: var(--font-body);
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.wizard-step-header p {
  font-size: var(--text-base);
}

/* Building Type Selection */
.wizard-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.wizard-type-card {
  background: var(--dark-secondary);
  border: 2px solid var(--dark-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
}

.wizard-type-card:hover {
  border-color: rgba(200, 164, 92, 0.3);
  background: var(--dark-hover);
}

.wizard-type-card.selected {
  border-color: var(--gold-primary);
  background: rgba(200, 164, 92, 0.08);
}

.wizard-type-card i {
  width: 40px;
  height: 40px;
  color: var(--gold-primary);
  margin-bottom: var(--space-3);
}

.wizard-type-card h4 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
}

/* İmar Bilgileri (Emsal/TAKS/KAKS) */
.wizard-imar-info {
  background: rgba(200, 164, 92, 0.05);
  border: 1px solid rgba(200, 164, 92, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-top: var(--space-4);
}

.wizard-imar-info h5 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--gold-primary);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.wizard-imar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.wizard-imar-item {
  text-align: center;
  padding: var(--space-3);
  background: var(--dark-card);
  border-radius: var(--radius-md);
}

.wizard-imar-value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gold-primary);
}

.wizard-imar-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-1);
}

/* Form Grid */
.wizard-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3); /* Reduced from space-5 to save vertical space */
}

.wizard-form-grid .form-group {
  margin-bottom: 0;
}

/* Optimize scale for forms to prevent scrolling */
.wizard-form-grid .form-label {
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.wizard-form-grid .form-input,
.wizard-form-grid .form-select {
  padding: 8px 12px;
  font-size: 0.9rem;
  height: auto;
}

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

/* Preference Chips */
.wizard-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.wizard-chip {
  padding: var(--space-2) var(--space-5);
  background: var(--dark-secondary);
  border: 1.5px solid var(--dark-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wizard-chip:hover {
  border-color: rgba(200, 164, 92, 0.3);
}

.wizard-chip.selected {
  background: rgba(200, 164, 92, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* Navigation Buttons */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: var(--space-5);
  border-top: 1px solid var(--dark-border);
}

.wizard-nav-step {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
  flex: 1; /* Allows it to occupy center space nicely */
}

/* Success Screen */
.wizard-success {
  text-align: center;
  padding: var(--space-10);
}

.wizard-success-check {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.wizard-success-check i {
  width: 40px;
  height: 40px;
  color: var(--dark-primary);
}

.wizard-success h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.wizard-success p {
  margin-bottom: var(--space-6);
}

.wizard-summary {
  background: var(--dark-secondary);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: left;
  margin-bottom: var(--space-6);
}

.wizard-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.wizard-summary-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.wizard-summary-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wizard-summary-value {
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: 600;
}

.wizard-success-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .wizard-card {
    padding: var(--space-6);
  }

  .wizard-type-grid {
    grid-template-columns: 1fr;
  }

  .wizard-form-grid {
    grid-template-columns: 1fr;
  }

  .wizard-imar-grid {
    grid-template-columns: 1fr;
  }

  .wizard-summary-grid {
    grid-template-columns: 1fr;
  }

  .wizard-progress {
    overflow-x: auto;
    padding-bottom: var(--space-4);
  }

  .wizard-step-label {
    display: none;
  }
}

/* ─── Wizard 3D Card Split Layout ──────────────────────── */
.wizard-grid-layout {
  display: grid;
  grid-template-columns: 460px 1fr;
  gap: var(--space-6);
  align-items: stretch;
  max-width: 100%;
  margin: 0 auto;
}

.wizard-visuals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  height: 100%;
  min-height: 550px;
}

.visuals-tab-header {
  display: none;
}

.wizard-3d-card,
.wizard-2d-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* Red line accent for 2D Kat Planı and Gold for 3D model */
.wizard-3d-card::before,
.wizard-2d-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1;
}

.wizard-3d-card::before {
  background: var(--gold-gradient);
}

.wizard-2d-card::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

.viewer3d-canvas-container,
.viewer2d-container {
  flex: 1;
  width: 100%;
  min-height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: rgba(10, 15, 28, 0.4);
}

.viewer2d-container {
  background: #0A0F1C;
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.05);
}

@media (max-width: 1200px) {
  .wizard-grid-layout {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (max-width: 992px) {
  .wizard-section {
    padding-top: var(--space-6) !important;
    padding-bottom: var(--space-4) !important;
  }

  body.dedicated-wizard-page .wizard-section {
    padding-top: 95px !important;
  }

  .wizard-progress {
    margin-bottom: var(--space-4) !important;
    padding: 0 var(--space-2) !important;
  }

  .wizard-progress::before {
    top: 14px !important;
    left: 20px !important;
    right: 20px !important;
  }

  .wizard-progress-fill {
    top: 14px !important;
    left: 20px !important;
  }

  .wizard-step-circle {
    width: 28px !important;
    height: 28px !important;
    font-size: 11px !important;
  }

  /* Hide visuals on the homepage wizard only */
  .wizard-container:not(.dedicated-wizard) .wizard-visuals {
    display: none !important;
  }

  /* Support visible visuals at the top on the dedicated wizard page */
  .dedicated-wizard .wizard-grid-layout {
    display: flex;
    flex-direction: column;
  }

  .dedicated-wizard .wizard-visuals {
    order: -1;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-height: auto;
    margin-bottom: var(--space-4);
  }

  .wizard-3d-card,
  .wizard-2d-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .visuals-tab-header {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
    width: 100%;
    background: rgba(200, 164, 92, 0.03);
    border: 1px solid rgba(200, 164, 92, 0.12);
    padding: 4px;
    border-radius: var(--radius-lg);
    box-sizing: border-box !important;
  }
  
  .visuals-tab-btn {
    flex: 1;
    padding: 8px var(--space-2) !important;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px !important;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    transition: all var(--transition-base);
  }
  
  .visuals-tab-btn.active {
    background: rgba(200, 164, 92, 0.12);
    color: var(--gold-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(200, 164, 92, 0.2);
  }
  
  .desktop-only-title {
    display: none !important;
  }
  
  .wizard-visual-pane {
    display: none !important;
  }
  
  .wizard-visual-pane.active {
    display: block !important;
  }
}

.desktop-only-title {
  display: block;
}

.wizard-visual-pane {
  display: block;
  height: 100%;
}

@media (max-width: 992px) {
  .dedicated-wizard {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }
}

@media (max-width: 768px) {
  .wizard-card {
    min-height: auto;
    padding: var(--space-5);
  }

  .viewer3d-canvas-container,
  .viewer2d-container {
    min-height: 280px;
  }
}
