/**
 * CBT Medya - 3 Aşamalı Akıllı Sepet ve Upsell Sihirbazı Stilleri (wizard.css)
 * Awwwards & Apple Kalitesinde Lüks Modal Mimarisi
 */

/* Modal Backdrop & Dialog */
.wizard-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.wizard-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.wizard-modal-dialog {
  max-width: 1040px;
  width: 100%;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.wizard-modal-backdrop.open .wizard-modal-dialog {
  transform: translateY(0) scale(1);
}

.wizard-modal-content {
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-card, #e2e8f0);
  border-radius: var(--radius-xl, 24px);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 90vh;
}

/* Modal Başlık */
.wizard-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border-subtle, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary, #f8fafc);
}
.wizard-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary, #2563eb);
  margin-bottom: 4px;
}
.wizard-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  margin: 0;
}
.wizard-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card, #ffffff);
  border: 1px solid var(--border-card, #e2e8f0);
  color: var(--text-muted, #64748b);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.wizard-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
  transform: rotate(90deg);
}

/* Stepper (Adım İlerleme Çubuğu) */
.wizard-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 36px;
  background: var(--bg-card, #ffffff);
  border-bottom: 1px solid var(--border-subtle, #f1f5f9);
}
.wizard-step-node {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0.45;
  transition: all 0.25s ease;
}
.wizard-step-node.active {
  opacity: 1;
}
.wizard-step-node.completed {
  opacity: 0.9;
}
.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-secondary, #f1f5f9);
  border: 2px solid var(--border-subtle, #e2e8f0);
  color: var(--text-muted, #64748b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.25s ease;
}
.wizard-step-node.active .step-num {
  background: var(--accent-primary, #2563eb);
  border-color: var(--accent-primary, #2563eb);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
.wizard-step-node.completed .step-num {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
}
.step-meta {
  display: flex;
  flex-direction: column;
}
.step-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 0.05em;
}
.step-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}
.step-connector {
  flex-grow: 1;
  height: 2px;
  background: var(--border-subtle, #e2e8f0);
  margin: 0 16px;
  transition: background 0.25s ease;
}
.step-connector.completed {
  background: #10b981;
}

/* Modal Gövdesi & Adım Panelleri */
.wizard-body {
  padding: 32px 36px;
  overflow-y: auto;
  flex-grow: 1;
}
.wizard-step-intro {
  margin-bottom: 24px;
}
.wizard-question-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary, #2563eb);
  margin-bottom: 6px;
}
.wizard-step-heading {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  margin-bottom: 8px;
  line-height: 1.3;
}
.wizard-step-subtext {
  font-size: 0.9rem;
  color: var(--text-secondary, #475569);
  line-height: 1.6;
  margin: 0;
}

/* ADIM 1: Domain Tercih Kartları (EVET / HAYIR) */
.domain-choice-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.domain-choice-card {
  position: relative;
  cursor: pointer;
  display: block;
}
.domain-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.domain-choice-box {
  border: 1px solid var(--border-card, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 20px 22px;
  background: var(--bg-card, #ffffff);
  transition: all 0.2s ease;
  height: 100%;
}
.domain-choice-box i {
  font-size: 1.5rem;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 12px;
  display: block;
  transition: color 0.2s ease;
}
.domain-choice-box .choice-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin-bottom: 4px;
}
.domain-choice-box .choice-desc {
  font-size: 0.8rem;
  color: var(--text-secondary, #64748b);
  line-height: 1.4;
}
.domain-choice-card input:checked + .domain-choice-box {
  border-color: var(--accent-primary, #2563eb);
  background: rgba(37, 99, 235, 0.04);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
}
.domain-choice-card input:checked + .domain-choice-box i {
  color: var(--accent-primary, #2563eb);
}

/* Domain Giriş Formu */
.wizard-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin-bottom: 8px;
}
.domain-field-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-primary, #ffffff);
  border: 1px solid var(--border-card, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.domain-field-wrap:focus-within {
  border-color: var(--accent-primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.field-prefix {
  padding: 12px 14px;
  background: var(--bg-secondary, #f8fafc);
  color: var(--text-muted, #94a3b8);
  font-family: monospace;
  font-size: 0.9rem;
  border-right: 1px solid var(--border-subtle, #e2e8f0);
}
.wizard-form-control {
  width: 100%;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--text-primary, #0f172a);
  background: transparent;
}
.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
  margin-top: 6px;
}

/* Zorunlu Onay Kutusu */
.domain-confirm-checkbox-box {
  margin-top: 20px;
  background: rgba(37, 99, 235, 0.03);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius-md, 12px);
  padding: 16px 20px;
}
.custom-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.custom-checkbox-wrap input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--accent-primary, #2563eb);
  cursor: pointer;
  flex-shrink: 0;
}
.checkbox-text {
  font-size: 0.85rem;
  color: var(--text-secondary, #334155);
  line-height: 1.5;
}

/* Yeni Domain Arama Kutusu */
.domain-search-input-wrap {
  display: flex;
  gap: 10px;
}
.domain-search-input {
  flex-grow: 1;
  padding: 13px 18px;
  border-radius: var(--radius-md, 12px);
  border: 1px solid var(--border-card, #e2e8f0);
  background: var(--bg-primary, #ffffff);
  color: var(--text-primary, #0f172a);
  font-size: 1rem;
  outline: none;
  transition: all 0.2s ease;
}
.domain-search-input:focus {
  border-color: var(--accent-primary, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.btn-domain-search {
  padding: 13px 24px;
  background: var(--accent-primary, #2563eb);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md, 12px);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-domain-search:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}
.domain-search-result {
  margin-top: 14px;
  padding: 16px 20px;
  border-radius: var(--radius-md, 12px);
  font-size: 0.9rem;
  line-height: 1.5;
}
.domain-search-result.available {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #065f46;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.domain-search-result.unavailable {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #991b1b;
}

/* Popüler TLD Pills */
.popular-tld-pills {
  margin-top: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.tld-pills-label {
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
  margin-right: 4px;
}
.tld-pill {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--bg-secondary, #f1f5f9);
  border: 1px solid var(--border-subtle, #e2e8f0);
  color: var(--text-secondary, #475569);
}

/* ADIM 2: Hosting Paketleri Grid */
.hosting-packages-wizard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.hosting-wizard-card {
  position: relative;
  cursor: pointer;
  display: block;
}
.hosting-wizard-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.hosting-wizard-box {
  border: 1px solid var(--border-card, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 24px 20px;
  background: var(--bg-card, #ffffff);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.hosting-badge-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent-primary, #2563eb);
}
.hosting-card-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin: 0 0 8px;
}
.hosting-card-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-primary, #2563eb);
  margin-bottom: 16px;
}
.hosting-card-price .currency {
  font-size: 1rem;
}
.hosting-card-price .period {
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
  font-weight: 600;
}
.hosting-specs-list {
  background: var(--bg-secondary, #f8fafc);
  border-radius: var(--radius-sm, 10px);
  padding: 10px 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.spec-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary, #334155);
}
.spec-row i {
  color: var(--accent-primary, #2563eb);
  font-size: 0.8rem;
  width: 14px;
}
.hosting-features-bullet {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}
.hosting-features-bullet li {
  font-size: 0.77rem;
  color: var(--text-secondary, #475569);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle, #f1f5f9);
}
.hosting-features-bullet li:last-child {
  border-bottom: none;
}
.hosting-features-bullet li i {
  color: #10b981;
  font-size: 0.75rem;
}
.btn-select-indicator {
  display: block;
  text-align: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm, 8px);
  background: var(--bg-secondary, #f1f5f9);
  color: var(--text-secondary, #475569);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.2s ease;
}
.hosting-wizard-card input:checked + .hosting-wizard-box {
  border-color: var(--accent-primary, #2563eb);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
  background: rgba(37, 99, 235, 0.02);
}
.hosting-wizard-card input:checked + .hosting-wizard-box .btn-select-indicator {
  background: var(--accent-primary, #2563eb);
  color: #ffffff;
}

/* ADIM 3: Sipariş Özeti ve Müşteri Formu */
.wizard-summary-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}
.summary-breakdown-card,
.summary-checkout-form-card {
  background: var(--bg-secondary, #f8fafc);
  border: 1px solid var(--border-card, #e2e8f0);
  border-radius: var(--radius-lg, 16px);
  padding: 24px;
}
.summary-card-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.summary-line-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
}
.summary-line-item .item-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-primary, #0f172a);
}
.summary-line-item .item-info .sub {
  font-size: 0.78rem;
  color: var(--text-muted, #64748b);
}
.summary-line-item .item-price {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary, #0f172a);
}
.summary-total-divider {
  height: 2px;
  background: var(--border-card, #e2e8f0);
  margin: 16px 0;
}
.summary-grand-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}
.summary-grand-total-row .grand-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-primary, #2563eb);
}
.security-guarantee-badge {
  margin-top: 18px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm, 8px);
  padding: 10px 14px;
  font-size: 0.78rem;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.wizard-form-group {
  margin-bottom: 14px;
}
.wizard-form-group .wizard-form-control {
  border: 1px solid var(--border-card, #e2e8f0);
  border-radius: var(--radius-md, 10px);
  background: var(--bg-card, #ffffff);
}
.wizard-alert-error {
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #b91c1c;
  border-radius: var(--radius-sm, 8px);
  font-size: 0.85rem;
  margin-bottom: 14px;
}
.btn-shopier-checkout {
  width: 100%;
  padding: 15px;
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md, 12px);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}
.btn-shopier-checkout:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* Wizard Alt Navigasyon Butonları */
.wizard-footer-nav {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.btn-wizard-next {
  padding: 13px 28px;
  background: var(--accent-primary, #2563eb);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md, 12px);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}
.btn-wizard-next:hover:not(:disabled) {
  background: #1d4ed8;
  transform: translateY(-1px);
}
.btn-wizard-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.btn-wizard-back {
  padding: 12px 20px;
  background: var(--bg-secondary, #f1f5f9);
  color: var(--text-secondary, #475569);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: var(--radius-md, 12px);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn-wizard-back:hover {
  background: var(--border-subtle, #e2e8f0);
}
.btn-wizard-skip {
  padding: 12px 18px;
  background: transparent;
  color: var(--text-muted, #64748b);
  border: none;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}
.btn-wizard-skip:hover {
  color: var(--text-primary, #0f172a);
}

/* Duyarlılık (Responsive - iPad, iPhone & Android) */
@media (max-width: 860px) {
  .wizard-modal-dialog { max-width: 95vw; }
  .hosting-packages-wizard-grid { grid-template-columns: 1fr; }
  .wizard-summary-grid { grid-template-columns: 1fr; }
  .domain-choice-selector { grid-template-columns: 1fr; }
  .wizard-stepper { padding: 14px 20px; }
  .step-meta { display: none; }
  .wizard-body { padding: 24px 20px; }
}

@media (max-width: 580px) {
  .wizard-modal-backdrop { padding: 10px; }
  .wizard-modal-dialog { max-width: 100vw; width: 100%; }
  .wizard-modal-content { border-radius: var(--radius-lg, 16px); max-height: 94vh; }
  .wizard-header { padding: 14px 16px; }
  .wizard-title { font-size: 1.1rem; }
  .wizard-brand-tag { font-size: 0.68rem; }
  
  .wizard-stepper { padding: 10px 14px; }
  .wizard-step-node .step-num { width: 34px; height: 34px; font-size: 0.85rem; }
  .step-connector { height: 2px; }

  .wizard-body {
    padding: 16px 14px;
    max-height: 66vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .wizard-step-heading { font-size: 1.05rem; }
  .wizard-step-subtext { font-size: 0.82rem; }
  
  .domain-choice-box { padding: 14px; }
  .domain-input-group { flex-direction: column; gap: 8px; }
  .btn-check-domain { width: 100%; border-radius: var(--radius-md, 10px) !important; padding: 12px; }

  .wizard-footer-nav {
    flex-direction: column-reverse;
    gap: 10px;
    margin-top: 20px;
  }
  .btn-wizard-next, .btn-wizard-back, .btn-wizard-skip {
    width: 100%;
    justify-content: center;
    padding: 13px;
  }
  
  input, select, textarea {
    font-size: 16px !important;
  }
}
