/* ============================================================
   ÖN KAYIT MODAL — Tüm sayfalarda paylaşılan stiller
   ============================================================ */

/* ── OVERLAY (sayfa yüklenirken gizli, sadece .open ile görünür) ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(7,29,54,.72);
  backdrop-filter: blur(12px) saturate(1.4);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s cubic-bezier(.4,0,.2,1), visibility .35s;
  padding: 16px;
  will-change: opacity;
}
.modal-overlay.open {
  opacity: 1; visibility: visible; pointer-events: all;
}

/* ── BOX ── */
.modal-box {
  background: #fff;
  border-radius: 24px;
  padding: 0;
  width: 100%; max-width: 460px;
  position: relative; overflow: hidden;
  box-shadow: 0 32px 80px rgba(7,29,54,.38), 0 0 0 1px rgba(255,103,37,.12);
  transform: translateY(8px) scale(.98);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  will-change: transform;
  max-height: 94vh; overflow-y: auto;
}
.modal-overlay.open .modal-box { transform: translateY(0) scale(1); }

/* ── ÜST ŞERİT (statik gradient — compositor-friendly) ── */
.modal-top-stripe {
  height: 4px;
  background: linear-gradient(90deg, #0A2647 0%, #FF6725 40%, #ffb347 60%, #FF6725 80%, #0A2647 100%);
}

/* ── KAPAT ── */
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(10,38,71,.06); border: 1px solid rgba(10,38,71,.1);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #0A2647; font-size: 13px;
  transition: background .2s, transform .2s;
}
.modal-close:hover { background: rgba(255,103,37,.1); color: #FF6725; transform: rotate(90deg); }

/* ── SOL AKSAN ── */
.modal-side-accent {
  position: absolute; left: 0; top: 4px; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, #FF6725, transparent);
  opacity: .5;
}

/* ── HEADER ── */
.modal-header {
  text-align: center;
  padding: 32px 32px 0;
}
.modal-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(255,103,37,.08), rgba(255,103,37,.14));
  border: 1px solid rgba(255,103,37,.25);
  color: #FF6725; font-size: 10.5px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 50px; margin-bottom: 20px;
}
.modal-badge-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: #FF6725; display: inline-block;
}
.modal-icon-wrap {
  position: relative; width: 72px; height: 72px; margin: 0 auto 16px;
}
.modal-icon-ring {
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px dashed rgba(255,103,37,.3);
  animation: modal-ring-spin 12s linear infinite;
}
@keyframes modal-ring-spin { to { transform: rotate(360deg); } }
.modal-icon {
  width: 72px; height: 72px; border-radius: 20px;
  background: linear-gradient(135deg, #0A2647 0%, #1a4a7a 100%);
  display: flex; align-items: center; justify-content: center;
  color: #FF6725; font-size: 28px;
  box-shadow: 0 8px 24px rgba(10,38,71,.28), 0 0 0 4px rgba(255,103,37,.1);
}
.modal-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px; font-weight: 800; color: #0A2647;
  line-height: 1.2; margin-bottom: 8px;
}
.modal-title em { font-style: normal; color: #FF6725; }
.modal-sub { font-size: 13.5px; color: #6b7280; margin-bottom: 0; }

/* ── GÜVEN ROZETLERİ ── */
.modal-trust {
  display: flex; align-items: center; justify-content: center; gap: 0;
  margin: 20px 32px 0;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid rgba(10,38,71,.07);
  border-radius: 14px; padding: 12px 16px;
}
.modal-trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; color: #374151;
  flex: 1; justify-content: center;
}
.modal-trust-item i { color: #FF6725; font-size: 12px; }
.modal-trust-sep { width: 1px; height: 20px; background: rgba(10,38,71,.1); }

/* ── FORM ── */
.modal-box form { padding: 20px 32px 0; }
.modal-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.modal-form-group { margin-bottom: 10px; }
.modal-input-wrap {
  position: relative; display: flex; align-items: center;
}
.modal-input-ico {
  position: absolute; left: 14px; color: #9ca3af; font-size: 12px;
  pointer-events: none; z-index: 1;
}
.modal-input-wrap input,
.modal-input-wrap select {
  width: 100%; padding: 13px 14px 13px 40px;
  border: 1.5px solid rgba(10,38,71,.1);
  border-radius: 12px; font-size: 15px; color: #1e2535;
  font-family: 'DM Sans', sans-serif; outline: none;
  background: #f9fafb;
  transition: box-shadow .2s, background .2s;
  appearance: none; -webkit-appearance: none;
  min-height: 46px;
}
.modal-input-wrap input:focus,
.modal-input-wrap select:focus {
  border-color: #FF6725;
  box-shadow: 0 0 0 3px rgba(255,103,37,.12);
  background: #fff;
}
.modal-input-wrap input::placeholder { color: #9ca3af; }
.modal-select-wrap::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free'; font-weight: 900;
  position: absolute; right: 14px; color: #9ca3af; font-size: 10px;
  pointer-events: none;
}

/* Textarea variant — career modal mesaj alanı */
.modal-textarea-wrap textarea {
  width: 100%; padding: 13px 14px;
  border: 1.5px solid rgba(10,38,71,.1);
  border-radius: 12px; font-size: 15px; color: #1e2535;
  font-family: 'DM Sans', sans-serif; outline: none;
  background: #f9fafb; resize: vertical; min-height: 80px;
  transition: box-shadow .2s, background .2s;
}
.modal-textarea-wrap textarea:focus {
  border-color: #FF6725;
  box-shadow: 0 0 0 3px rgba(255,103,37,.12);
  background: #fff;
}
@media (max-width: 480px) {
  .modal-textarea-wrap textarea { font-size: 16px; }
}

/* ── GÖNDER BUTONU ── */
.modal-submit-btn {
  width: 100%; margin-top: 6px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px;
  background: linear-gradient(135deg, #FF6725 0%, #e85a1a 100%);
  color: #fff; border: none; border-radius: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 24px rgba(255,103,37,.38);
  transition: all .28s cubic-bezier(.4,0,.2,1);
  position: relative; overflow: hidden;
}
.modal-submit-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
  opacity: 0; transition: opacity .28s;
}
.modal-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255,103,37,.52); }
.modal-submit-btn:hover::before { opacity: 1; }
.modal-submit-btn:active { transform: translateY(0); }
.modal-submit-text { display: flex; align-items: center; gap: 9px; }
.modal-submit-arrow {
  width: 32px; height: 32px; border-radius: 9px;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
  transition: transform .22s;
}
.modal-submit-btn:hover .modal-submit-arrow { transform: translateX(3px); }

/* ── GİZLİLİK ── */
.modal-privacy {
  text-align: center; font-size: 11.5px; color: #9ca3af;
  padding: 14px 32px 24px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.modal-privacy i { color: #10b981; font-size: 10px; }

/* ── MOBİL ── */
@media (max-width: 480px) {
  .modal-overlay { padding: 12px; }
  .modal-box { border-radius: 20px; max-height: 92vh; }
  .modal-header { padding: 26px 20px 0; }
  .modal-icon-wrap { width: 64px; height: 64px; margin-bottom: 14px; }
  .modal-icon { width: 64px; height: 64px; font-size: 24px; border-radius: 18px; }
  .modal-badge { font-size: 10px; padding: 4px 12px; margin-bottom: 16px; letter-spacing: 1px; }
  .modal-title { font-size: 19px; line-height: 1.22; }
  .modal-sub { font-size: 13px; }
  .modal-trust { margin: 14px 16px 0; padding: 10px 12px; border-radius: 12px; }
  .modal-trust-item { font-size: 10.5px; gap: 5px; }
  .modal-trust-item i { font-size: 11px; }
  .modal-box form { padding: 16px 20px 0; }
  .modal-form-row { grid-template-columns: 1fr; gap: 0; }
  .modal-form-group { margin-bottom: 9px; }
  /* iOS zoom önleme: input font-size ≥ 16px */
  .modal-input-wrap input,
  .modal-input-wrap select { font-size: 16px; padding: 13px 14px 13px 38px; min-height: 48px; }
  .modal-submit-btn { font-size: 14px; padding: 14px 18px; }
  .modal-submit-arrow { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }
  .modal-privacy { padding: 12px 20px 20px; font-size: 11px; }
  .modal-close { top: 12px; right: 12px; width: 34px; height: 34px; }
}
@media (max-width: 380px) {
  .modal-header { padding: 22px 16px 0; }
  .modal-box form { padding: 14px 16px 0; }
  .modal-privacy { padding: 10px 16px 18px; }
  .modal-trust { margin: 12px 12px 0; }
  .modal-trust-sep { height: 16px; }
}
