/**
 * İlan yayınlama — sihirbaz ve kategori seçici (eldengitsin marka)
 */

/* Form: net Arial (bulanık web font / gölge yok) */
.eg-site--submit .eg-auth-card--wizard,
.eg-site--submit .eg-form--wizard {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: geometricPrecision;
}

.eg-site--submit {
  background: var(--eg-surface-muted, #faf8f5);
  background-image: radial-gradient(ellipse 70% 50% at 100% 0%, rgba(26, 122, 109, 0.07), transparent),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(232, 104, 90, 0.06), transparent);
  padding: 28px 16px 56px;
}

.eg-site--submit .eg-auth-card--wizard {
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--eg-shadow-lg, 0 12px 40px rgba(30, 41, 59, 0.12));
  background: var(--eg-surface, #fff);
}

.eg-submit-head {
  padding: 22px 32px 24px;
  background: linear-gradient(135deg, #145c52 0%, #1a7a6d 55%, #2a9d8f 100%);
  color: #fff;
}

.eg-submit-head__top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}

.eg-submit-head__logo {
  flex-shrink: 0;
}

.eg-submit-head__logo .eg-logo {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  padding: 6px 10px 6px 4px;
  margin: -6px -10px -6px -4px;
  transition: background 0.2s, opacity 0.2s;
}

.eg-submit-head__logo .eg-logo:hover {
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

.eg-submit-head__logo .eg-logo__svg {
  display: block;
  height: 42px;
  width: auto;
  max-width: 220px;
}

.eg-submit-head__intro {
  min-width: 0;
  flex: 1;
}

.eg-submit-head h1 {
  margin: 0 0 6px;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.eg-submit-head__sub {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.92;
  line-height: 1.5;
}

.eg-submit-head__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.eg-submit-head__pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.eg-form--wizard {
  padding: 28px 32px 32px;
}

/* Adım göstergesi — okunaklı sekme yazıları */
.eg-form--wizard .eg-wizard__progress--numbered {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0 0 28px;
  padding: 18px 14px 16px;
  list-style: none;
  background: var(--eg-surface-muted, #f3f6f5);
  border: 2px solid var(--eg-border-accent, #d4ebe7);
  border-radius: 14px;
  counter-reset: wizard-step;
}

.eg-form--wizard .eg-wizard__progress--numbered li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #334155;
  padding: 0 6px;
  border: none;
  line-height: 1.35;
}

.eg-form--wizard .eg-wizard__progress--numbered li::before {
  content: counter(wizard-step);
  counter-increment: wizard-step;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #94a3b8;
  color: #475569;
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.eg-form--wizard .eg-wizard__progress--numbered li.is-active::before {
  background: var(--eg-brand, #1a7a6d);
  border-color: #0f4a42;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(26, 122, 109, 0.4);
}

.eg-form--wizard .eg-wizard__progress--numbered li.is-done::before {
  background: #16a34a;
  border-color: #15803d;
  color: #fff;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.35);
}

.eg-form--wizard .eg-wizard__progress--numbered li.is-active {
  color: #0f4a42;
}

.eg-form--wizard .eg-wizard__progress--numbered li.is-done {
  color: #166534;
}

.eg-form--wizard .eg-wizard__progress--numbered li span {
  display: block;
  max-width: 100%;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0;
  text-shadow: none;
}

.eg-form--wizard .eg-wizard__progress--numbered li.is-active span {
  color: #0f4a42;
  font-size: 14px;
}

.eg-form--wizard .eg-wizard__progress--numbered li.is-done span {
  color: #166534;
}

@media (max-width: 640px) {
  .eg-form--wizard .eg-wizard__progress--numbered {
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 14px 8px 12px;
  }

  .eg-form--wizard .eg-wizard__progress--numbered li span {
    display: block;
    font-size: 0.65rem;
    line-height: 1.2;
    font-weight: 800;
    color: #1e293b;
  }

  .eg-form--wizard .eg-wizard__progress--numbered li::before {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }

  .eg-form--wizard {
    padding: 20px 16px 24px;
  }

  .eg-submit-head {
    padding: 22px 18px 18px;
  }

  .eg-submit-head__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .eg-submit-head__logo .eg-logo__svg {
    height: 38px;
  }
}

/* Kategori seçici */
.eg-cat-picker {
  margin-bottom: 8px;
}

.eg-cat-picker__head {
  margin-bottom: 18px;
}

.eg-cat-picker__title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--eg-text, #1e293b);
  letter-spacing: -0.02em;
}

.eg-cat-picker__sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--eg-text-muted, #64748b);
  line-height: 1.45;
}

.eg-cat-picker__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .eg-cat-picker__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .eg-cat-picker__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.eg-cat-picker__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 8px 12px;
  border: 2px solid var(--eg-border, #e8e4dc);
  border-radius: 14px;
  background: var(--eg-surface, #fff);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  border-top: none;
}

.eg-cat-picker__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--eg-shadow, 0 2px 16px rgba(26, 122, 109, 0.08));
  border-color: var(--eg-brand-mid, #22897a);
}

.eg-cat-picker__card.is-selected {
  border-color: var(--eg-brand, #1a7a6d);
  background: linear-gradient(180deg, rgba(26, 122, 109, 0.06) 0%, #fff 100%);
  box-shadow: 0 0 0 3px rgba(26, 122, 109, 0.15);
}

.eg-cat-picker__card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(26, 122, 109, 0.1);
  background: color-mix(in srgb, var(--cat-color, #1a7a6d) 14%, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  transition: background 0.2s;
}

.eg-cat-picker__card.is-selected .eg-cat-picker__card-icon {
  background: var(--cat-color, var(--eg-brand, #1a7a6d));
}

.eg-cat-picker__card-icon .dashicons {
  color: var(--cat-color, var(--eg-brand, #1a7a6d));
  font-size: 26px;
  width: 26px;
  height: 26px;
}

.eg-cat-picker__card.is-selected .eg-cat-picker__card-icon .dashicons {
  color: #fff;
}

.eg-cat-picker__card-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--eg-text, #1e293b);
  text-align: center;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.eg-cat-picker__divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 18px;
  color: var(--eg-text-muted, #64748b);
  font-size: 0.8rem;
  font-weight: 600;
}

.eg-cat-picker__divider::before,
.eg-cat-picker__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--eg-border, #e8e4dc);
}

.eg-cat-picker__search label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.85rem;
  color: var(--eg-text, #1e293b);
}

.eg-cat-picker__search-wrap {
  position: relative;
}

.eg-cat-picker__search-wrap .dashicons-search {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--eg-brand, #1a7a6d);
  pointer-events: none;
  font-size: 20px;
  width: 20px;
  height: 20px;
}

.eg-cat-picker__search input {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 2px solid var(--eg-border, #e8e4dc);
  border-radius: 12px;
  box-sizing: border-box;
  font-size: 0.95rem;
  background: var(--eg-surface-warm, #f3efe8);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.eg-cat-picker__search input:focus {
  outline: none;
  border-color: var(--eg-brand, #1a7a6d);
  box-shadow: 0 0 0 4px rgba(26, 122, 109, 0.12);
  background: #fff;
}

/* Adım 1 — alt alanlar */
.eg-step-panel {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 14px;
  background: var(--eg-surface-muted, #faf8f5);
  border: 1px solid var(--eg-border-accent, #d4ebe7);
}

.eg-step-panel__title {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--eg-brand, #1a7a6d);
}

.eg-fieldset--compact {
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
}

.eg-fieldset--compact .eg-step-fields {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .eg-fieldset--compact .eg-step-fields {
    grid-template-columns: 1fr;
  }
}

.eg-site--submit .eg-field label {
  font-size: 0.85rem;
  color: var(--eg-text, #1e293b);
}

.eg-site--submit .eg-field input,
.eg-site--submit .eg-field select,
.eg-site--submit .eg-field textarea {
  border-radius: 10px;
  border: 2px solid var(--eg-border, #e8e4dc);
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.eg-site--submit .eg-field input:focus,
.eg-site--submit .eg-field select:focus,
.eg-site--submit .eg-field textarea:focus {
  border-color: var(--eg-brand, #1a7a6d);
  box-shadow: 0 0 0 3px rgba(26, 122, 109, 0.12);
}

.eg-req {
  color: var(--eg-accent, #e8685a);
}

/* Sihirbaz gövde */
.eg-wizard__step.is-active {
  animation: egStepIn 0.25s ease;
}

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

/* —— Adım 2–4: katmanlı paneller, belirgin derinlik —— */
.eg-wizard__step--panels {
  padding: 4px 0 8px;
}

.eg-wizard__step--panels .eg-fieldset--panel {
  position: relative;
  border: 2px solid var(--eg-border-accent, #c5e8e2);
  border-radius: 18px;
  background: linear-gradient(165deg, #ffffff 0%, #f8fcfb 48%, #f3f8f6 100%);
  padding: 36px 24px 20px;
  overflow: hidden;
  margin: 0 0 22px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 2px 4px rgba(20, 92, 82, 0.04),
    0 12px 32px rgba(26, 122, 109, 0.1),
    0 24px 48px rgba(30, 41, 59, 0.06);
  transform: perspective(1200px) rotateX(0.4deg);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.eg-wizard__step--panels .eg-fieldset--panel:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 8px rgba(20, 92, 82, 0.06),
    0 16px 40px rgba(26, 122, 109, 0.14),
    0 28px 56px rgba(30, 41, 59, 0.08);
}

.eg-wizard__step--panels .eg-fieldset--panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(90deg, #145c52 0%, #2a9d8f 50%, #e8685a 100%);
  opacity: 0.85;
}

.eg-wizard__step--panels .eg-fieldset--panel::after {
  content: "";
  display: table;
  clear: both;
}

.eg-wizard__step--panels .eg-fieldset--primary {
  border-color: #a8dbd3;
}

/* Renkli sekme rozeti — Arial, gölgesiz net yazı */
.eg-site--submit .eg-wizard__step--panels .eg-fieldset > legend {
  display: inline-block;
  float: left;
  width: auto;
  margin: -42px 0 18px 12px;
  padding: 10px 18px;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
  color: #fff !important;
  background: linear-gradient(135deg, #145c52 0%, #1a7a6d 100%);
  border-radius: 10px;
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.2),
    0 6px 16px rgba(26, 122, 109, 0.22);
  border: 1px solid rgba(0, 0, 0, 0.15);
  text-shadow: none;
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
  text-rendering: geometricPrecision;
  position: relative;
  z-index: 2;
}

.eg-wizard__step--panels .eg-fieldset--vehicle > legend,
.eg-wizard__step--panels #eg-emlak-fields > legend,
.eg-wizard__step--panels [id^="eg-"][id$="-fields"] > legend {
  font-family: Arial, Helvetica, sans-serif !important;
  color: #fff !important;
  background: linear-gradient(135deg, #5a4d7a 0%, #6b5b95 100%);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.22),
    0 6px 14px rgba(107, 91, 149, 0.3);
  text-shadow: none;
}

.eg-wizard__step--panels .eg-fieldset .eg-fieldset {
  margin-top: 20px;
  padding: 22px 20px 16px;
  border: 2px solid #e0ebe8;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 1px 3px rgba(30, 41, 59, 0.05),
    0 8px 20px rgba(26, 122, 109, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transform: none;
}

.eg-wizard__step--panels .eg-fieldset .eg-fieldset::before {
  display: none;
}

.eg-wizard__step--panels .eg-fieldset .eg-fieldset > legend {
  margin-top: -38px;
  font-size: 14px;
  padding: 9px 16px;
}

.eg-wizard__step--panels .eg-hint {
  display: block;
  margin: 0 0 16px;
  padding: 12px 14px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--eg-text-muted, #64748b);
  background: rgba(26, 122, 109, 0.06);
  border-left: 4px solid var(--eg-brand-mid, #22897a);
  border-radius: 0 10px 10px 0;
}

.eg-wizard__step--panels .eg-field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 18px;
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .eg-wizard__step--panels .eg-field-row {
    grid-template-columns: 1fr;
  }
}

.eg-wizard__step--panels .eg-field {
  margin-bottom: 0;
}

.eg-wizard__step--panels .eg-field label {
  display: block;
  margin-bottom: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #334155;
  text-shadow: none;
}

.eg-wizard__step--panels .eg-field input,
.eg-wizard__step--panels .eg-field select,
.eg-wizard__step--panels .eg-field textarea {
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  border: 2px solid #b8cfc9;
  border-radius: 11px;
  padding: 13px 15px;
  font-size: 15px;
  color: #1e293b;
  text-shadow: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 1) inset,
    0 2px 4px rgba(15, 23, 42, 0.07),
    0 5px 14px rgba(15, 23, 42, 0.09);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.eg-wizard__step--panels .eg-field input:hover,
.eg-wizard__step--panels .eg-field select:hover {
  border-color: #b8d9d2;
}

.eg-wizard__step--panels .eg-field input:focus,
.eg-wizard__step--panels .eg-field select:focus,
.eg-wizard__step--panels .eg-field textarea:focus {
  border-color: var(--eg-brand, #1a7a6d);
  outline: none;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 4px rgba(26, 122, 109, 0.12),
    0 6px 18px rgba(26, 122, 109, 0.12);
}

.eg-wizard__step--panels .wp-editor-wrap {
  border: 2px solid #dce8e5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(26, 122, 109, 0.08);
}

.eg-wizard__step--panels .wp-editor-container {
  border: none !important;
}

.eg-site--submit .eg-fieldset:not(.eg-fieldset--panel) {
  border-radius: 14px;
  border: 1px solid var(--eg-border, #e8e4dc);
  background: #fff;
  padding: 20px 22px 12px;
}

.eg-site--submit .eg-fieldset:not(.eg-fieldset--panel) legend {
  font-size: 1rem;
  color: var(--eg-brand, #1a7a6d);
}

/* Alt navigasyon */
.eg-wizard__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--eg-border, #e8e4dc);
}

.eg-wizard__nav-end {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
  align-items: center;
}

.eg-site--submit .eg-btn {
  border-radius: 10px;
  padding: 12px 22px;
  font-size: 0.9rem;
  min-height: 44px;
}

.eg-site--submit .eg-btn--primary {
  background: var(--eg-brand, #1a7a6d);
}

.eg-site--submit .eg-btn--primary:hover {
  background: var(--eg-brand-dark, #145c52);
}

.eg-site--submit .eg-btn--accent {
  background: linear-gradient(135deg, var(--eg-accent, #e8685a) 0%, #f08a6e 100%);
  box-shadow: 0 4px 14px rgba(232, 104, 90, 0.3);
}

.eg-site--submit .eg-btn--outline {
  border-radius: 10px;
  border-width: 2px;
}

.eg-wizard__submit {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: 0;
}

.eg-site--submit .eg-alert {
  margin: 0 32px 0;
  border-radius: 10px;
}

.eg-site--submit .eg-alert + .eg-form--wizard {
  padding-top: 20px;
}
