/* ==========================================================================
   onboarding/yeni_basvuru.css - Yeni Dernek Başvuru Portalı Tasarımı
   Vivid navy / amber palette matching sifre-ismoz reference & admin console
   ========================================================================== */

@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/googlesans/v71/4Ua_rENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iqcsih3SAyH6cAwhX9RFD48TE63OOYKtrwEIKli.ttf) format('truetype');
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/googlesans/v71/4Ua_rENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iqcsih3SAyH6cAwhX9RFD48TE63OOYKtrw2IKli.ttf) format('truetype');
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/googlesans/v71/4Ua_rENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iqcsih3SAyH6cAwhX9RFD48TE63OOYKtrzaJ6li.ttf) format('truetype');
}
@font-face {
  font-family: 'Google Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/googlesans/v71/4Ua_rENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iqcsih3SAyH6cAwhX9RFD48TE63OOYKtrzjJ6li.ttf) format('truetype');
}

:root {
  --font-family: 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Reference Palette (sifre-ismoz & admin console) */
  --navy-950: #020617;
  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white:     #ffffff;

  --amber-primary: #f59e0b;
  --amber-hover:   #d97706;
  --amber-light:   #fef3c7;
  --amber-dark:    #92400e;
  --amber-text:    #080f20;

  --emerald-600:   #059669;
  --emerald-500:   #10b981;
  --emerald-100:   #d1fae5;
  --emerald-soft:  #ecfdf5;

  --rose-600:      #e11d48;
  --rose-500:      #f43f5e;
  --rose-100:      #ffe4e6;
  --rose-soft:     #fff1f2;

  --shadow-card: 0 20px 45px -15px rgba(2, 6, 23, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.8);
  --shadow-button: 0 8px 20px -4px rgba(245, 158, 11, 0.35);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-family);
  background-color: var(--slate-100);
  color: var(--navy-900);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Top Header (Koyu Lacivert / Slate-950)
   ========================================================================== */
.page-header {
  background-color: var(--navy-950);
  border-bottom: 1px solid var(--navy-800);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 40;
}

.container {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.header-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--white);
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px rgba(245, 158, 11, 0.3);
  shrink-0: 0;
  flex-shrink: 0;
}

.brand-text-col {
  display: flex;
  flex-direction: column;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--white);
}

.brand-accent {
  color: var(--amber-primary);
}

.badge-status-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 12px;
  color: var(--slate-400);
  margin-top: 1px;
}

.header-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-subtle-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--slate-300);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.4);
  transition: all 0.15s ease;
}

.nav-subtle-link:hover {
  color: var(--white);
  border-color: var(--amber-primary);
  background: rgba(245, 158, 11, 0.1);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */
.main-content {
  flex: 1;
  padding: 36px 0 60px;
}

.form-container {
  display: flex;
  flex-direction: column;
}

/* Section Header */
.form-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-primary);
  margin-bottom: 8px;
}

.form-header h1 {
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.6px;
  line-height: 1.25;
  margin-bottom: 10px;
}

.form-header p {
  font-size: 16px;
  color: var(--slate-600);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ==========================================================================
   Registry Trust Box (Kasa Künyesi Tarzında Bilgi Şeridi)
   ========================================================================== */
.registry-trust-box {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  background: var(--navy-900);
  border: 1px solid var(--navy-800);
  border-radius: 18px;
  padding: 14px 20px;
  margin-bottom: 28px;
  box-shadow: 0 8px 24px -6px rgba(2, 6, 23, 0.15);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.trust-icon.verified {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.trust-icon.unique {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.trust-icon.book {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

.trust-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.2px;
}

.trust-item small {
  display: block;
  font-size: 11.5px;
  color: var(--slate-400);
  line-height: 1.35;
}

.trust-divider {
  width: 1px;
  height: 32px;
  background: var(--navy-800);
  margin: 0 10px;
}

/* ==========================================================================
   Stepper
   ========================================================================== */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--slate-500);
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  background: var(--slate-200);
  color: var(--slate-600);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.step-item.active .step-num {
  background: var(--amber-primary);
  color: var(--amber-text);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.25);
}

.step-item.active {
  color: var(--navy-900);
  font-weight: 700;
}

.step-item.completed .step-num {
  background: var(--emerald-500);
  color: var(--white);
}

.step-item.completed {
  color: var(--emerald-600);
}

.step-divider {
  width: 44px;
  height: 2px;
  background: var(--slate-300);
  border-radius: 1px;
}

/* ==========================================================================
   Form Card (Beyaz Kart, rounded-3xl)
   ========================================================================== */
.form-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 38px 42px;
  margin-bottom: 24px;
  transition: box-shadow 0.2s ease;
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

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

.panel-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--slate-200);
}

.panel-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-icon-badge {
  font-size: 24px;
  line-height: 1;
}

.panel-desc {
  font-size: 14.5px;
  color: var(--slate-600);
  margin-top: 5px;
  line-height: 1.45;
}

/* ==========================================================================
   Form Rows, Groups & Controls
   ========================================================================== */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.highlight-row {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 22px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
  margin-bottom: 20px;
}

label {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber-dark);
  background: var(--amber-light);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 1px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  min-height: 50px;
  padding: 11px 16px;
  border: 2px solid var(--slate-200);
  border-radius: 14px;
  background-color: var(--slate-50);
  color: var(--navy-900);
  font-family: var(--font-family);
  font-size: 15.5px;
  font-weight: 500;
  outline: none;
  transition: all 0.15s ease;
}

input:focus,
select:focus {
  border-color: var(--amber-primary);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

input::placeholder {
  color: var(--slate-400);
  font-weight: 400;
}

select:disabled {
  background-color: var(--slate-100);
  color: var(--slate-400);
  cursor: not-allowed;
}

.field-hint {
  font-size: 12.5px;
  color: var(--slate-500);
  margin-top: 6px;
  line-height: 1.4;
}

.field-hint code {
  background: var(--slate-200);
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--navy-900);
}

/* Slug Preview Group */
.slug-preview {
  display: flex;
  align-items: center;
  width: 100%;
}

.slug-preview input {
  flex: 1;
  min-width: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.slug-suffix {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 16px;
  background-color: var(--slate-100);
  border: 2px solid var(--slate-200);
  border-left: none;
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--amber-primary);
  user-select: none;
  white-space: nowrap;
}

/* ==========================================================================
   DERBİS Canlı Eşleşme Bildirim Paneli (#derbis-feedback)
   ========================================================================== */
.feedback-panel {
  margin-bottom: 22px;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.5;
  animation: fadeIn 0.2s ease-out;
}

/* ==========================================================================
   Belge Yükleme Dropzone & Turnstile
   ========================================================================== */
.file-dropzone {
  border: 2px dashed var(--slate-300);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  background: var(--slate-50);
  cursor: pointer;
  transition: all 0.15s ease;
}

.file-dropzone:hover {
  border-color: var(--amber-primary);
  background: var(--amber-light);
}

.dropzone-icon {
  margin-bottom: 10px;
}

.file-dropzone strong {
  display: block;
  font-size: 15px;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.file-dropzone p {
  font-size: 13px;
  color: var(--slate-500);
}

.turnstile-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 18px 0;
}

.turnstile-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.turnstile-shield {
  font-size: 22px;
}

.turnstile-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-900);
}

.turnstile-desc {
  font-size: 12px;
  color: var(--slate-500);
}

.turnstile-status-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald-600);
  background: var(--emerald-100);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.agreements-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 28px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--slate-600);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--amber-primary);
  flex-shrink: 0;
  cursor: pointer;
}

/* ==========================================================================
   Buttons & Step Actions
   ========================================================================== */
.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--slate-200);
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-size: 15.5px;
  font-weight: 700;
  border-radius: 14px;
  padding: 13px 26px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--amber-primary);
  color: var(--amber-text);
  font-weight: 800;
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background-color: var(--amber-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -4px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
  background-color: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--slate-300);
}

.btn-secondary:hover {
  background-color: var(--slate-200);
  color: var(--navy-900);
}

.btn-submit-glow {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: var(--white);
  box-shadow: 0 10px 24px -4px rgba(234, 88, 12, 0.45);
}

.btn-submit-glow:hover {
  background: linear-gradient(135deg, #fbbf24, #f97316);
  box-shadow: 0 14px 28px -4px rgba(234, 88, 12, 0.55);
}

/* ==========================================================================
   Success Card (Başarı & PENDING Ekranı)
   ========================================================================== */
.success-card {
  text-align: center;
  padding: 20px 0;
}

.success-icon-badge {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: var(--white);
  font-size: 34px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  box-shadow: 0 12px 24px -4px rgba(16, 185, 129, 0.4);
}

.success-card h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.success-desc {
  font-size: 15.5px;
  color: var(--slate-600);
  max-width: 580px;
  margin: 0 auto 26px;
  line-height: 1.5;
}

.reference-section {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  padding: 22px 24px;
  max-width: 480px;
  margin: 0 auto 28px;
}

.reference-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
  margin-bottom: 8px;
}

.reference-badge {
  font-family: var(--font-family);
  font-size: 26px;
  font-weight: 800;
  color: var(--amber-dark);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.pending-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--emerald-600);
  background: var(--emerald-soft);
  border: 1px solid var(--emerald-100);
  padding: 5px 12px;
  border-radius: 8px;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-500);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.success-info-panel {
  background: var(--navy-900);
  border: 1px solid var(--navy-800);
  border-radius: 16px;
  padding: 22px 24px;
  text-align: left;
  max-width: 540px;
  margin: 0 auto 30px;
  color: var(--slate-300);
}

.success-info-panel h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.success-info-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.45;
}

.success-info-panel li {
  position: relative;
  padding-left: 20px;
}

.success-info-panel li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--emerald-500);
  font-weight: 800;
}

.success-info-panel code {
  color: var(--amber-primary);
  background: rgba(245, 158, 11, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.portal-footer {
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: var(--slate-500);
}

/* ==========================================================================
   Mobile Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
  .registry-trust-box {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }
  .trust-divider {
    display: none;
  }
  .form-card {
    padding: 26px 20px;
    border-radius: 18px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .highlight-row {
    padding: 14px 14px;
  }
  .header-nav-actions .nav-subtle-link:first-child {
    display: none; /* Hide admin panel link on small mobile screens to keep header compact */
  }
  .step-label {
    display: none; /* Only show step number on small screens */
  }
  .step-divider {
    width: 28px;
  }
  .step-actions {
    flex-direction: column-reverse;
  }
  .btn {
    width: 100%;
  }
}
