@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ═══════════════════════════════════════════════════
   Design Tokens
═══════════════════════════════════════════════════ */
:root {
  --primary:          #1D4ED8;
  --primary-dark:     #1E40AF;
  --primary-gradient: linear-gradient(135deg, #1D4ED8 0%, #0EA5E9 100%);
  --primary-light:    #EFF6FF;
  --accent:           #0EA5E9;
  --success:          #10B981;
  --error:            #EF4444;
  --text:             #0F172A;
  --text-sub:         #64748B;
  --border:           #E2E8F0;
  --input-bg:         #F8FAFC;
  --card:             #FFFFFF;
  --radius-lg:        20px;
  --radius-md:        12px;
  --radius-sm:        8px;
  --shadow-card:      0 24px 64px rgba(0,0,0,.18), 0 4px 16px rgba(0,0,0,.08);
  --shadow-btn:       0 4px 16px rgba(29,78,216,.35);
  --transition:       .2s cubic-bezier(.4,0,.2,1);
}

/* ═══════════════════════════════════════════════════
   Reset
═══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ═══════════════════════════════════════════════════
   Body — deep navy gradient background
═══════════════════════════════════════════════════ */
body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  background: #0B1120;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(29,78,216,.28) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 80%, rgba(14,165,233,.18) 0%, transparent 60%),
    linear-gradient(160deg, #0B1120 0%, #0F2044 50%, #0B1120 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 16px 96px;
}

/* ═══════════════════════════════════════════════════
   Main wrapper
═══════════════════════════════════════════════════ */
main {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: visible !important;
}

/* ═══════════════════════════════════════════════════
   Logo
═══════════════════════════════════════════════════ */
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  height: auto;
}
.logo-icon { display: flex; align-items: center; }
.logo-icon img { height: 38px; filter: brightness(0) invert(1); opacity: .95; }
.logo-text { display: none; }

/* ═══════════════════════════════════════════════════
   Step Indicator — horizontal above card
═══════════════════════════════════════════════════ */
.step-type {
  position: relative;
  left: auto;
  bottom: auto;
  width: 100%;
  max-width: 460px;
  margin-bottom: 24px;
}
.step-type-inner {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
}
.step-type-single {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  text-align: center;
}
/* connector line between steps */
.step-type-single::after {
  content: '';
  position: absolute;
  top: 9px;
  left: calc(50% + 12px);
  width: calc(100% - 24px);
  height: 2px;
  background: rgba(255,255,255,.15);
  transition: background var(--transition);
}
.step-type-single.no-line::after { display: none; }
.step-type-single.active::after  { background: rgba(29,78,216,.6); }

.step-type-single .circle {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.18);
  margin: 0 auto 8px;
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}
.step-type-single.active .circle {
  background: var(--primary);
  border-color: #60A5FA;
  box-shadow: 0 0 0 5px rgba(29,78,216,.25);
}
.step-type-single .step-text {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.3);
  text-transform: uppercase;
  letter-spacing: .6px;
  line-height: 1.3;
  transition: color var(--transition);
}
.step-type-single.active .step-text { color: rgba(255,255,255,.8); }

/* ═══════════════════════════════════════════════════
   Main Card
═══════════════════════════════════════════════════ */
.main-content {
  width: 100%;
  margin: 0;
}
.content-inner {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
}
/* top gradient accent stripe */
.content-inner::before {
  content: '';
  display: block;
  height: 5px;
  background: var(--primary-gradient);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   Hide legacy layout elements
═══════════════════════════════════════════════════ */
.step-bar, .step-bar-inner, .step-bar-move,
.steps-icon, .side-area { display: none !important; }

/* ═══════════════════════════════════════════════════
   Inner Wrapper (padding)
═══════════════════════════════════════════════════ */
.wrapper {
  width: 100%;
  margin: 0;
  padding: 40px 44px 36px;
  height: auto;
  display: block;
}

/* ═══════════════════════════════════════════════════
   Form Headings
═══════════════════════════════════════════════════ */
.form-text { margin-bottom: 26px; }
.form-text .main-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 7px;
}
.form-text .main-text {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
}

.steps-inner { margin-top: 0; }

/* ═══════════════════════════════════════════════════
   Radio Cards (Step 1 large options)
═══════════════════════════════════════════════════ */
.radio-field {
  width: 100%;
  background: var(--input-bg);
  min-height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  padding: 0 18px;
  margin-bottom: 10px;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.radio-field:hover {
  border-color: #93C5FD;
  background: var(--primary-light);
}
.radio-field.checked {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(29,78,216,.08);
}
.radio-field input, .radio-select-single input {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  width: 20px; height: 20px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
}
.radio-field input:checked, .radio-select-single input:checked {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px #fff;
}
.radio-field label, .radio-select-single label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-left: 12px;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════
   Text & Select Fields
═══════════════════════════════════════════════════ */
.text-field, .select-field {
  width: 100%;
  min-height: 50px;
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.text-field input,
.text-field textarea,
.select-field select {
  background: var(--input-bg);
  width: 100%;
  height: 50px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  padding: 0 14px 0 42px;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: all var(--transition);
  position: absolute;
  left: 0; top: 0;
}
.text-field textarea {
  height: 100%;
  padding: 12px 14px;
  resize: vertical;
}
.text-field.p-custom input { padding-left: 14px; }
.text-field input:focus,
.text-field textarea:focus,
.select-field select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(29,78,216,.1);
}
.text-field i, .select-field i {
  font-size: 13px;
  color: #94A3B8;
  position: relative;
  z-index: 10;
  pointer-events: none;
  margin-left: 15px;
  transition: color var(--transition);
}
.text-field input:focus + i, .select-field select:focus + i { color: var(--primary); }
.select-field select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-left: 14px;
}
.select-field select + span::after {
  content: "\f0d7";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 12px;
  color: #94A3B8;
  position: absolute;
  top: 50%; right: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════
   Nationality radios
═══════════════════════════════════════════════════ */
.radio-field-2 { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.radio-single { display: flex; align-items: center; }
.radio-single input {
  -webkit-appearance: none; appearance: none;
  border: 2px solid var(--border); border-radius: 50%;
  background: #fff; width: 18px; height: 18px;
  cursor: pointer; position: relative; transition: all var(--transition);
}
.radio-single input:checked { border-color: var(--primary); }
.radio-single input:checked::before {
  content: ''; position: absolute;
  width: 8px; height: 8px; background: var(--primary);
  border-radius: 50%; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
}
.radio-single label { font-size: 14px; font-weight: 500; color: var(--text); margin-left: 8px; cursor: pointer; }
#step5 .radio-field-2 .radio-single { width: 50%; }

/* ═══════════════════════════════════════════════════
   Buttons
═══════════════════════════════════════════════════ */
.next-prev { margin-top: 26px; width: 100%; display: flex; height: 48px; gap: 10px; }
.next-prev .inner { display: flex; width: 100%; height: 100%; gap: 10px; background: transparent; border-radius: 0; }
.sinner { border-radius: var(--radius-md); height: 100%; }
#step1 .next-prev button { width: 100% !important; }
#step5 .next-prev { background: transparent; border-radius: 0; }
.next-prev button {
  font-size: 14px; font-weight: 600;
  border-radius: var(--radius-md); border: none;
  transition: all var(--transition);
}
.next-prev .prev {
  color: var(--text-sub); width: 28%; flex-shrink: 0;
  background: var(--input-bg); border: 2px solid var(--border) !important;
}
.next-prev .prev:hover { background: var(--border); color: var(--text); }
.next-prev .next, .next-prev .apply {
  flex: 1; background: var(--primary-gradient); color: #fff;
  height: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-btn);
}
.next-prev .next:hover, .next-prev .apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(29,78,216,.45);
}
.next-prev .skip {
  color: var(--primary); background: transparent;
  border: none; font-size: 13px; font-weight: 500; width: auto;
}
button.sorgula {
  width: 100% !important; height: 48px;
  background: var(--primary-gradient); color: #fff; border: none;
  border-radius: var(--radius-md); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-btn); transition: all var(--transition);
}
button.sorgula:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(29,78,216,.45); }

/* ═══════════════════════════════════════════════════
   Photo Upload
═══════════════════════════════════════════════════ */
.profile {
  border-radius: var(--radius-md); background: var(--input-bg);
  border: 2px dashed var(--border); width: 100%; min-height: 150px; height: 100%;
  position: relative; overflow: hidden; transition: border-color var(--transition);
}
.profile:hover { border-color: #93C5FD; }
.profile .profile-img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.profile label {
  background: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  position: absolute; top: 10px; right: 10px; display: grid; place-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.12); z-index: 1; border: none;
}
.profile label img { pointer-events: none; width: 15px; }
.profile label input[type=file] { display: none; }

/* ═══════════════════════════════════════════════════
   Misc helpers
═══════════════════════════════════════════════════ */
.field-heading { font-size: 14px; color: var(--text); font-weight: 600; margin-bottom: 10px; }
.bottom-line { border-bottom: 1px solid var(--border); margin-bottom: 12px; }
::-webkit-calendar-picker-indicator { display: none; }
.gender { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.highlight {
  border-top: 3px solid var(--primary) !important;
  border-bottom: 3px solid var(--primary) !important;
}

.radio-select {
  border-radius: var(--radius-sm); background: var(--input-bg);
  border: 2px solid var(--border); overflow: hidden; margin-top: 12px;
}
.radio-heading {
  font-size: 14px; color: var(--text); font-weight: 600;
  background: #F8FAFC; min-height: 44px; line-height: 44px;
  padding-left: 16px; border-bottom: 1px solid var(--border);
}
.radio-select-inner { padding: 12px; display: flex; flex-wrap: wrap; }
.radio-select-single { display: flex; width: 33.333%; align-items: center; margin-bottom: 10px; }
.radio-select-single label { font-size: 13px; font-weight: 500; }

.residence-single {
  width: 100%; height: 110px; position: relative; margin-top: 10px;
  text-align: center; display: grid; align-content: center; justify-content: center;
}
.residence-single input {
  -webkit-appearance: none; appearance: none;
  border-radius: var(--radius-sm); border: 2px solid var(--border);
  background: var(--input-bg); position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; cursor: pointer; transition: all var(--transition);
}
.residence-single img, .residence-single label { position: relative; z-index: 100; pointer-events: none; }
.residence-single label { font-size: 13px; color: var(--text); font-weight: 600; margin-top: 8px; }
.residence-single input:checked { border-color: var(--primary); background: var(--primary-light); }

/* ═══════════════════════════════════════════════════
   Validation
═══════════════════════════════════════════════════ */
.invalid { border: 2px solid var(--error) !important; background: #FFF5F5 !important; }

/* ═══════════════════════════════════════════════════
   Loading overlay
═══════════════════════════════════════════════════ */
#loading {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(11,17,32,.88); backdrop-filter: blur(6px);
  z-index: 99; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 18px;
}
#loading-image { position: static; width: 52px; height: 52px; }

#error { position: fixed; top: 16px; left: 16px; z-index: 20; }

/* ═══════════════════════════════════════════════════
   Footer
═══════════════════════════════════════════════════ */
footer {
  position: fixed; bottom: 0; left: 0; width: 100%;
  background: rgba(11,17,32,.92); backdrop-filter: blur(10px);
  text-align: center; padding: 13px 0;
  border-top: 1px solid rgba(255,255,255,.08); z-index: 10;
}
footer a {
  margin: 0 14px; color: rgba(255,255,255,.5);
  font-size: 12px; font-weight: 500; cursor: pointer;
  transition: color var(--transition);
}
footer a:hover { color: rgba(255,255,255,.85); }

/* ═══════════════════════════════════════════════════
   Popup
═══════════════════════════════════════════════════ */
.popup {
  display: none; position: fixed; top: 0; left: 0;
  width: 100%; height: 100%; background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px); justify-content: center; align-items: center;
  overflow: auto; z-index: 100;
}
.popup-content {
  background: var(--card); padding: 32px; width: 90%; max-width: 720px;
  max-height: 85vh; border-radius: var(--radius-lg);
  box-shadow: 0 28px 72px rgba(0,0,0,.35); position: relative; overflow-y: auto;
}
.popup-content h2 { margin-top: 0; font-size: 18px; color: var(--text); margin-bottom: 14px; }
.popup-content .close-btn {
  position: absolute; top: 16px; right: 20px;
  font-size: 22px; cursor: pointer; color: var(--text-sub); line-height: 1;
}

/* ═══════════════════════════════════════════════════
   Thank-you page
═══════════════════════════════════════════════════ */
.thankyou-page .logo { justify-content: center; margin-top: 60px; }
.thankyou-page article { text-align: center; margin-top: 70px; }
.thankyou-page article h1 { font-size: 52px; font-weight: 800; text-transform: uppercase; }
.thankyou-page article h1 span { display: block; font-size: 60px; font-weight: 900; color: var(--primary); }
.thankyou-page article span { font-size: 18px; color: var(--primary); font-weight: 500; }
.thankyou-page article p { font-size: 16px; color: var(--text-sub); margin: 0 auto; margin-top: 32px; width: 70%; }
.back-home { width: 200px; height: 50px; margin: 24px auto 0; }
.back-home a {
  background: var(--primary-gradient); border-radius: var(--radius-md); color: #fff;
  width: 100%; height: 100%; line-height: 50px; display: block;
  text-align: center; font-size: 15px; font-weight: 700; box-shadow: var(--shadow-btn);
}

/* file widget */
.file span { font-size: 13px; color: var(--text-sub); }
.file .file-inner {
  background: var(--primary-gradient); width: 140px; height: 44px;
  border-radius: var(--radius-md); margin-top: 12px; display: flex;
  align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-btn);
}
.file .file-inner span { font-size: 14px; color: #fff; font-weight: 600; }
.file .file-inner i { margin-left: 8px; }
.file label[for=file] input { display: none; }

/* footer yeni yapı */
footer {
  padding: 0 !important;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}
.footer-brand {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.35);
  letter-spacing: .3px;
  white-space: nowrap;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-links a {
  color: rgba(255,255,255,.45);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.footer-links a:hover { color: rgba(255,255,255,.9); }
.footer-wa { color: rgba(37,211,102,.6) !important; }
.footer-wa:hover { color: rgba(37,211,102,1) !important; }

/* ── Uyruk seçim kartları ────────────────────────── */
.uyruk-col { padding: 4px 5px; margin-bottom: 10px; }
.uyruk-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--input-bg);
  cursor: pointer;
  transition: all var(--transition);
  width: 100%;
  text-align: center;
  user-select: none;
}
.uyruk-card:hover {
  border-color: #93C5FD;
  background: var(--primary-light);
}
.uyruk-card.selected,
.uyruk-card input:checked ~ * { display: contents; }
.uyruk-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(29,78,216,.08);
}
.uyruk-card input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.uyruk-icon { font-size: 22px; line-height: 1; }
.uyruk-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
