/**
 * Hizmet Adımları — yalnızca bu bölüm (site geneline dokunmaz)
 * Telefon | Tablet 2×2 | Laptop/Desktop 4 sütun
 */
.cv2-ssteps {
  width: 100%;
  padding: clamp(32px, 5vw, 64px) 0;
  box-sizing: border-box;
  background: transparent;
}

.cv2-ssteps__inner {
  max-width: var(--CoreV2-container-width, 1280px);
  margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-left)) 0 max(16px, env(safe-area-inset-right));
  box-sizing: border-box;
}

.cv2-ssteps__header {
  margin-bottom: clamp(24px, 4vw, 48px);
}

.cv2-ssteps__header .genelbaslik-baslik {
  text-align: center;
}

.cv2-ssteps__header .genelbaslik-ana-baslik {
  margin: 0;
}

.cv2-ssteps__headline-inline {
  display: block;
  margin-top: 0.15em;
}

@media (min-width: 768px) {
  .cv2-ssteps__headline-inline {
    display: inline;
    margin-top: 0;
  }

  .cv2-ssteps__headline-inline::before {
    content: ' ';
  }
}

/* ── Grid: telefon 1 | tablet 2×2 | laptop+ 4 ── */
.cv2-ssteps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: stretch;
}

/* Tablet */
@media (min-width: 560px) and (max-width: 1023px) {
  .cv2-ssteps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* Laptop */
@media (min-width: 1024px) and (max-width: 1279px) {
  .cv2-ssteps__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .cv2-ssteps__card {
    padding: 20px;
    min-height: 220px;
  }
}

/* Desktop */
@media (min-width: 1280px) {
  .cv2-ssteps__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.cv2-ssteps__item {
  position: relative;
  display: flex;
  min-width: 0;
  height: 100%;
}

/* Kart — örnek step-card (sadece bu bölümde) */
.cv2-ssteps__card {
  width: 100%;
  border-radius: 2.5rem;
  padding: clamp(16px, 2.2vw, 28px);
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid rgb(231 231 231 / 36%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  box-sizing: border-box;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="dark"] .cv2-ssteps__card,
html.dark-mode .cv2-ssteps__card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
  border-color: rgba(51, 65, 85, 0.55);
}

@media (min-width: 1280px) {
  .cv2-ssteps__card {
    aspect-ratio: 1 / 1;
    max-height: 320px;
  }

  .cv2-ssteps__card:hover {
    transform: translateY(-3px);
    box-shadow: none;
  }
}

/* Tablet ve mobil - 2x2 grid */
@media (max-width: 1023px) {
  .cv2-ssteps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

.cv2-ssteps__card--cta {
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cv2-ssteps__card-grid-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 4px;
  padding: 16px;
  opacity: 0.1;
  pointer-events: none;
}

.cv2-ssteps__card-grid-bg span {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
}

html[data-theme="dark"] .cv2-ssteps__card-grid-bg span,
html.dark-mode .cv2-ssteps__card-grid-bg span {
  border-color: #475569;
}

.cv2-ssteps__tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #94a3b8;
  margin-bottom: 4px;
  padding: 4px 10px;
  border: 1.5px dashed rgba(var(--CoreV2-primary-rgb), 0.25);
  border-radius: 6px;
  background: rgba(var(--CoreV2-primary-rgb), 0.03);
}

.cv2-ssteps__title {
  margin: 0;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}

html[data-theme="dark"] .cv2-ssteps__title,
html.dark-mode .cv2-ssteps__title {
  color: #e2e8f0;
}

.cv2-ssteps__graphic {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0;
  min-height: 64px;
  border-radius: 1rem;
  background: radial-gradient(
    circle at center,
    rgba(var(--CoreV2-primary-rgb, 59, 130, 246), 0.08) 0%,
    transparent 70%
  );
}

.cv2-ssteps__mock-search {
  width: 7.5rem;
  height: 2.25rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: none;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 6px;
}

.cv2-ssteps__mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
}

.cv2-ssteps__mock-line {
  height: 5px;
  flex: 1;
  border-radius: 3px;
  background: #e2e8f0;
}

.cv2-ssteps__mock-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  width: 7rem;
}

.cv2-ssteps__mock-grid div {
  height: 2rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.cv2-ssteps__mock-grid div:nth-child(2) {
  background: rgba(var(--CoreV2-primary-rgb, 59, 130, 246), 0.12);
}

.cv2-ssteps__mock-user {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  border: 3px dashed rgba(var(--CoreV2-primary-rgb, 59, 130, 246), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv2-ssteps__mock-user-inner {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(var(--CoreV2-primary-rgb, 59, 130, 246), 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--CoreV2-primary, #3b82f6);
  font-size: 1.5rem;
}

.cv2-ssteps__desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #64748b;
}

html[data-theme="dark"] .cv2-ssteps__desc,
html.dark-mode .cv2-ssteps__desc {
  color: #94a3b8;
}

.cv2-ssteps__cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  padding: 11px 20px;
  border-radius: 12px;
  background: #0f172a;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
  transition: transform 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-theme="dark"] .cv2-ssteps__cta-pill,
html.dark-mode .cv2-ssteps__cta-pill {
  background: var(--CoreV2-primary, #3b82f6);
}

.cv2-ssteps__cta-pill:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.cv2-ssteps__arrow {
  display: none;
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

@media (min-width: 1280px) {
  .cv2-ssteps__arrow {
    display: flex;
  }

  .cv2-ssteps__item:last-child .cv2-ssteps__arrow {
    display: none;
  }
}

.cv2-ssteps__check-badge {
  position: absolute;
  top: 20%;
  right: 16%;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
  font-size: 0.9rem;
  box-shadow: none;
  z-index: 2;
}

.cv2-ssteps__cta-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 8px;
}

/* Mobil CTA kart tam uyum */
@media (max-width: 559px) {
  .cv2-ssteps__card--cta {
    padding: clamp(14px, 4vw, 20px);
  }

  .cv2-ssteps__cta-pill {
    font-size: 0.8rem;
    padding: 10px 14px;
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 560px) and (max-width: 1023px) {
  .cv2-ssteps__cta-pill {
    font-size: 0.85rem;
    padding: 10px 16px;
    max-width: 90%;
  }
}

/* Tema paneli önizleme */
.cv2-ssteps-preview {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  padding: 14px;
  border-radius: 12px;
  background: var(--cv-surface-2, var(--cv2-surface-page, #f8fafc));
  border: 1px solid var(--cv-border, #e2e8f0);
}

.cv2-ssteps-preview__title {
  margin: 0 0 10px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
}

.cv2-ssteps-preview__accent {
  font-weight: 700;
  color: var(--CoreV2-primary, #3b82f6);
}

.cv2-ssteps-preview__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cv2-ssteps-preview__card {
  border-radius: 14px;
  padding: 8px 10px;
  min-height: 72px;
  background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: none;
}

.cv2-ssteps-preview__tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.cv2-ssteps-preview__card-title {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
}

.cv2-ssteps-preview__card-desc {
  margin: 0;
  font-size: 9px;
  color: #64748b;
}

.cv2-ssteps-preview__pill {
  display: inline-block;
  margin-top: 4px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #0f172a;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
}

#CoreV2_settings_modal .hwm-ssteps-settings .hwm-ssteps-lang-grid.lang-input-group--visible {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 899px) {
  #CoreV2_settings_modal .hwm-ssteps-settings .hwm-ssteps-lang-grid.lang-input-group--visible {
    grid-template-columns: 1fr;
  }
}
