/*
 * style.css
 * EnopeX Saatlik Mahsuplaşma — KVKK form modalı, wizard adım efektleri ve
 * anasayfaya eklenen kurumsal UI stilleri.
 *
 * Not: SM Anasayfa.html zaten kendi inline stillerini taşır. Bu dosya yalnızca
 * yeni eklenen modal/form/wizard öğeleri için tamamlayıcı stiller içerir ve
 * mevcut görseli bozmayacak şekilde sınırlı seçici (scoped) tanımlanmıştır.
 */

/* ---------- Wizard adım kutuları (anasayfada zaten var olan .step öğeleri) ---------- */
.process-wrap .step {
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.process-wrap .step.is-done .num {
  background: #63cfc2;
  color: #062a2a;
}
.process-wrap .step.is-active {
  border-color: #63cfc2;
  background: linear-gradient(180deg, #ffffff, #effaf6);
  box-shadow: 0 18px 38px rgba(99, 207, 194, .18), 0 0 0 4px rgba(99, 207, 194, .15);
  transform: translateY(-2px);
}
.process-wrap .step.is-active .num {
  background: linear-gradient(135deg, #63cfc2, #8fd8a9);
  color: #062a2a;
  box-shadow: 0 8px 22px rgba(99, 207, 194, .35);
}
.process-wrap .step.is-active::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  pointer-events: none;
  border: 1px solid rgba(99, 207, 194, .35);
  animation: enopexPulse 1.8s ease-in-out infinite;
}
@keyframes enopexPulse {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}

/* ---------- KVKK Form Modal ---------- */
.enopex-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
  background: radial-gradient(circle at 18% 22%, rgba(99, 207, 194, .18), transparent 30%),
              radial-gradient(circle at 84% 18%, rgba(140, 205, 246, .14), transparent 30%),
              rgba(8, 21, 34, .55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.enopex-modal-backdrop.is-open {
  display: flex;
  animation: enopexFade .25s ease both;
}
@keyframes enopexFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.enopex-modal {
  width: min(880px, 100%);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  border: 1px solid #dfe8ef;
  border-radius: 28px;
  box-shadow: 0 40px 90px rgba(15, 23, 42, .25);
  overflow: hidden;
  animation: enopexRise .35s ease both;
}
@keyframes enopexRise {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.enopex-modal-head {
  position: relative;
  padding: 26px 30px 22px;
  background: linear-gradient(135deg, #163654 0%, #22496e 70%, #4b8f9b 100%);
  color: #ffffff;
}
.enopex-modal-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, #63cfc2, #8ccdf6, #7bd9a8);
}
.enopex-modal-head .tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
  color: #d8efe9; margin-bottom: 10px;
}
.enopex-modal-head .tag .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: #63cfc2; box-shadow: 0 0 0 6px rgba(99, 207, 194, .22);
}
.enopex-modal-head h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -.035em;
  line-height: 1.15;
}
.enopex-modal-head p {
  margin: 8px 0 0;
  color: #c6d5e5;
  font-size: 14px;
  line-height: 1.55;
  max-width: 660px;
}
.enopex-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 20px; line-height: 1;
  cursor: pointer;
  transition: .18s ease;
}
.enopex-modal-close:hover { background: rgba(255, 255, 255, .22); transform: scale(1.05); }

.enopex-modal-body {
  padding: 26px 30px 8px;
}
.enopex-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.enopex-field {
  display: flex; flex-direction: column;
}
.enopex-field.full { grid-column: 1 / -1; }
.enopex-field label {
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 7px;
  letter-spacing: .01em;
}
.enopex-field label .req { color: #dc2626; margin-left: 2px; }
.enopex-field input,
.enopex-field select,
.enopex-field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #dfe8ef;
  background: #fbfdff;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px;
  color: #102033;
  outline: none;
  font-family: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.enopex-field textarea { min-height: 88px; resize: vertical; }
.enopex-field input:focus,
.enopex-field select:focus,
.enopex-field textarea:focus {
  border-color: #63cfc2;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(99, 207, 194, .15);
}
.enopex-field.has-error input,
.enopex-field.has-error select,
.enopex-field.has-error textarea {
  border-color: #dc2626;
  background: #fff5f5;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, .08);
}
.enopex-field .err-msg {
  margin-top: 6px;
  font-size: 12px;
  color: #b91c1c;
  font-weight: 700;
  display: none;
}
.enopex-field.has-error .err-msg { display: block; }

.enopex-section-title {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0f2235;
  margin: 10px 0 2px;
  padding-top: 14px;
  border-top: 1px dashed #dfe8ef;
}
.enopex-section-title:first-child { padding-top: 0; border-top: 0; margin-top: 0; }

/* KVKK kutusu */
.enopex-kvkk {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #dfe8ef;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff, #eef6fb);
  margin-top: 12px;
}
.enopex-kvkk input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: #63cfc2;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}
.enopex-kvkk label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
  color: #1f2a3a;
  cursor: pointer;
}
.enopex-kvkk label a {
  color: #2f7da5;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.enopex-kvkk.has-error {
  border-color: #dc2626;
  background: #fff5f5;
}

.enopex-modal-foot {
  padding: 18px 30px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #ffffff;
  border-top: 1px solid #eef3f7;
}
.enopex-modal-foot .note {
  font-size: 12px;
  color: #64748b;
  max-width: 460px;
  line-height: 1.5;
}
.enopex-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
  font-family: inherit;
}
.enopex-btn.primary {
  background: linear-gradient(135deg, #63cfc2, #8fd8a9);
  color: #103044;
  box-shadow: 0 14px 30px rgba(99, 207, 194, .28);
}
.enopex-btn.primary:hover:not(:disabled) { transform: translateY(-1px); }
.enopex-btn.ghost {
  background: #ffffff;
  color: #102033;
  border: 1px solid #dfe8ef;
}
.enopex-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.enopex-status {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  display: none;
}
.enopex-status.is-success {
  display: block;
  background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0;
}
.enopex-status.is-error {
  display: block;
  background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca;
}
.enopex-status.is-info {
  display: block;
  background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe;
}

/* Body scroll kilidi */
body.enopex-modal-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .enopex-modal-head { padding: 22px 20px 18px; }
  .enopex-modal-head h2 { font-size: 22px; }
  .enopex-modal-body { padding: 20px 20px 4px; }
  .enopex-modal-foot { padding: 16px 20px 22px; }
  .enopex-form-grid { grid-template-columns: 1fr; }
}

/* ---------- Anasayfa: feature & step kartlarında kurumsal ikon kutuları ---------- */
.feature .feature-icon svg,
.step .step-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}
.step .step-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef8ff;
  color: #2f7da5;
  margin-top: 12px;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.process-wrap .step.is-active .step-icon {
  background: linear-gradient(135deg, #63cfc2, #8fd8a9);
  color: #062a2a;
  transform: scale(1.05);
}
.process-wrap .step.is-done .step-icon {
  background: #e6f9f1;
  color: #0f8a6b;
}
.feature .feature-icon { color: #2f7da5; }

/* ---------- Motor sayfası: kompakt 4 adımlı stepper ---------- */
.enopex-motor-stepper {
  background: linear-gradient(180deg, #ffffff, #f6fbff);
  border: 1px solid #dfe8ef;
  border-radius: 22px;
  padding: 18px 22px;
  margin-bottom: 14px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06);
  position: relative;
  overflow: hidden;
}
.enopex-motor-stepper::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, #63cfc2, #8ccdf6, #7bd9a8);
  opacity: .55;
}
.enopex-motor-stepper .ems-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}
.enopex-motor-stepper .ems-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: #eefbf7;
  border: 1px solid #cfeee1;
  color: #216554;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.enopex-motor-stepper .ems-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #63cfc2;
  box-shadow: 0 0 0 5px rgba(99, 207, 194, .18);
}
.enopex-motor-stepper .ems-title {
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -.02em;
  color: #0f2235;
  margin-top: 4px;
}
.enopex-motor-stepper .ems-sub {
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.5;
}
.enopex-motor-stepper .ems-list {
  display: grid;
  grid-template-columns: 1fr 12px 1fr 12px 1fr 12px 1fr;
  align-items: stretch;
  gap: 0;
}
.enopex-motor-stepper .ems-divider {
  align-self: center;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2eaf2, #d8e3ec);
  position: relative;
}
.enopex-motor-stepper .ems-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e2eaf2;
  border-radius: 16px;
  transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.enopex-motor-stepper .ems-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #2f7da5;
  background: #eef7ff;
  border: 1px solid #d9e9f4;
}
.enopex-motor-stepper .ems-icon svg {
  width: 21px;
  height: 21px;
}
.enopex-motor-stepper .ems-icon-check {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  color: #fff;
}
.enopex-motor-stepper .ems-step-num {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .12em;
  color: #6f7c91;
  text-transform: uppercase;
}
.enopex-motor-stepper .ems-step-title {
  font-size: 14px;
  font-weight: 900;
  color: #0f2235;
  letter-spacing: -.01em;
  margin-top: 1px;
}
.enopex-motor-stepper .ems-step-sub {
  font-size: 12px;
  color: #6f7c91;
  line-height: 1.45;
  margin-top: 2px;
}

/* Active / done varyantları */
.enopex-motor-stepper .ems-item.is-active {
  border-color: rgba(99, 207, 194, .55);
  background: linear-gradient(180deg, #ffffff, #effaf6);
  box-shadow: 0 16px 30px rgba(99, 207, 194, .18), 0 0 0 3px rgba(99, 207, 194, .14);
  transform: translateY(-1px);
}
.enopex-motor-stepper .ems-item.is-active .ems-icon {
  background: linear-gradient(135deg, #63cfc2, #8fd8a9);
  border-color: rgba(99, 207, 194, .55);
  color: #062a2a;
  box-shadow: 0 8px 22px rgba(99, 207, 194, .35);
}
.enopex-motor-stepper .ems-item.is-active .ems-step-num { color: #0f8a6b; }
.enopex-motor-stepper .ems-item.is-active::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  pointer-events: none;
  border: 1px solid rgba(99, 207, 194, .45);
  animation: enopexEmsPulse 1.8s ease-in-out infinite;
}
@keyframes enopexEmsPulse {
  0%, 100% { opacity: .25; }
  50%      { opacity: .9; }
}

.enopex-motor-stepper .ems-item.is-done .ems-icon {
  background: linear-gradient(135deg, #0f8a6b, #14a59b);
  border-color: rgba(20, 165, 155, .35);
  color: #ffffff;
}
.enopex-motor-stepper .ems-item.is-done .ems-icon-svg { display: none; }
.enopex-motor-stepper .ems-item.is-done .ems-icon-check { display: grid; }
.enopex-motor-stepper .ems-item.is-done .ems-step-num { color: #0f8a6b; }

.enopex-motor-stepper .ems-list > .ems-divider {
  background: linear-gradient(90deg, #d8e3ec, #d8e3ec);
}
.enopex-motor-stepper .ems-list > .ems-item.is-done + .ems-divider {
  background: linear-gradient(90deg, #63cfc2, #8ccdf6);
}

@media (max-width: 1080px) {
  .enopex-motor-stepper .ems-list {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .enopex-motor-stepper .ems-divider { display: none; }
}
@media (max-width: 640px) {
  .enopex-motor-stepper { padding: 16px; }
  .enopex-motor-stepper .ems-list { grid-template-columns: 1fr; }
}

/* ---------- Motor sayfası: emoji'siz sidebar ikonları ---------- */
.sidebar a.nav-item {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.sidebar .nav-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.7;
  color: #6b7690;
  transition: color .2s ease, transform .2s ease;
}
.sidebar .nav-item.active .nav-icon svg {
  color: #0f8a6b;
  transform: scale(1.05);
}
.sidebar .nav-item .nav-icon {
  display: grid;
  place-items: center;
  height: 26px;
}

/* ---------- Anasayfa: sade akış kutuları içindeki SVG ikonların hizası ---------- */
.process-wrap .step {
  position: relative;
  overflow: hidden;
}
.process-wrap .step .num {
  display: inline-grid;
  margin-bottom: 0;
}
.process-wrap .step .step-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  margin: 0;
}
.process-wrap .step h3 {
  margin-top: 14px;
  padding-right: 52px;
}
.process-wrap .step .step-icon svg {
  width: 22px;
  height: 22px;
}

