/**
 * hasarteklif.com - Layer 3: Çok Adımlı Teklif Sihirbazı Stilleri
 */

.wizard-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 960px) {
  .wizard-layout {
    grid-template-columns: 1fr;
  }
}

/* Adım İlerleme Çubuğu (Step Progress Bar) */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}

.wizard-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 2rem;
  right: 2rem;
  height: 3px;
  background-color: var(--border-subtle);
  transform: translateY(-50%);
  z-index: 1;
}

.wizard-step-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-app);
  padding: 0 0.5rem;
  cursor: default;
}

.wizard-step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 2px solid var(--border-strong);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  transition: all var(--transition-normal);
}

.wizard-step-node.active .wizard-step-circle {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #FFFFFF;
  box-shadow: 0 0 0 4px var(--color-accent-light);
}

.wizard-step-node.completed .wizard-step-circle {
  background-color: var(--status-original);
  border-color: var(--status-original);
  color: #FFFFFF;
}

.wizard-step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-subtle);
  white-space: nowrap;
}

.wizard-step-node.active .wizard-step-label {
  color: var(--color-accent);
  font-weight: 700;
}

.wizard-step-node.completed .wizard-step-label {
  color: var(--text-main);
}

@media (max-width: 640px) {
  .wizard-step-label { display: none; }
  .wizard-progress::before { left: 1rem; right: 1rem; }
}

/* Sihirbaz Adım Kartı */
.wizard-card {
  padding: 2.5rem;
  border-radius: var(--radius-xl);
}

@media (max-width: 640px) {
  .wizard-card { padding: 1.5rem; }
}

.wizard-step-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

/* Fotoğraf Yükleme Dropzone */
.wizard-dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.5rem;
  text-align: center;
  background-color: var(--bg-surface-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 1.5rem;
}

.wizard-dropzone:hover, .wizard-dropzone.drag-over {
  border-color: var(--color-accent);
  background-color: var(--color-accent-light);
}

.dropzone-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem auto;
  box-shadow: var(--shadow-sm);
}

/* Fotoğraf Önizleme Galerisi */
.wizard-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (max-width: 640px) {
  .wizard-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wizard-photo-item {
  position: relative;
  height: 90px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.wizard-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wizard-photo-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s;
}

.wizard-photo-remove:hover {
  transform: scale(1.15);
}

/* Canlı Özet Yan Paneli (Sticky Summary) */
.wizard-summary-card {
  position: sticky;
  top: 100px;
  padding: 1.75rem;
  border-radius: var(--radius-xl);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.875rem;
}

.summary-row:last-child {
  border-bottom: none;
}

/* ==========================================================================
   MODERN SAAS OTP DOĞRULAMA KARTI
   ========================================================================== */
.otp-verification-card {
  margin-top: 1.5rem;
  padding: 2rem 1.5rem;
  background: var(--bg-surface-elevated);
  border: 1.5px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.25), 0 0 20px -4px rgba(37, 211, 102, 0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.otp-verification-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #25D366 0%, #10B981 50%, #06B6D4 100%);
}

.otp-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.25);
  color: #25D366;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.otp-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.otp-card-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* OTP 6 Haneli Giriş Kutuları (Modern Obsidian / Elevated Tile Standartları) */
.otp-input-group {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  margin: 1.5rem 0;
  direction: ltr;
}

.otp-digit {
  width: 52px;
  height: 64px;
  font-family: monospace, var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  border-radius: 14px;
  border: 2px solid var(--border-strong);
  background-color: var(--bg-surface);
  color: var(--text-main);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
  outline: none;
}

.otp-digit:hover {
  border-color: rgba(37, 211, 102, 0.5);
  background-color: var(--bg-surface-subtle);
}

.otp-digit:focus, .otp-digit.is-focused {
  border-color: #25D366 !important;
  background-color: var(--bg-surface-elevated) !important;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.22), 0 4px 18px rgba(37, 211, 102, 0.25) !important;
  transform: translateY(-2px);
}

.otp-digit.has-value {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background-color: var(--bg-surface-elevated);
}

.otp-timer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 0.75rem;
}

@media (max-width: 480px) {
  .otp-input-group {
    gap: 0.35rem;
  }
  .otp-digit {
    width: 42px;
    height: 54px;
    font-size: 1.4rem;
    border-radius: 10px;
  }
}

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