:root {
  --blue: #1a5a96;
  --blue-dark: #154a7c;
  --blue-soft: #2f74b5;
  --blue-banner: linear-gradient(105deg, #1d6aa8 0%, #4ea0d9 55%, #7ec2ea 100%);
  --red: #c62828;
  --text: #222;
  --muted: #5a6570;
  --line: #d7dde3;
  --bg: #f4f6f8;
  --white: #fff;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px 48px;
  background: var(--white);
  min-height: 100vh;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03);
}

/* Top bar */
.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 14px;
}

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

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text strong {
  color: var(--blue);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  line-height: 1;
}

.logo-text small {
  max-width: 340px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.topbar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e9eef3;
  color: #555;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.socials a:hover {
  background: var(--blue);
  color: var(--white);
}

.langs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.langs-label {
  color: var(--blue);
  font-size: 1rem;
  margin-inline-end: 2px;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 0.78rem;
  cursor: pointer;
  color: var(--muted);
  text-decoration: none;
  line-height: 1;
}

.lang.is-active {
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(26, 90, 150, 0.12);
}

.flag-wrap {
  display: inline-flex;
  width: 22px;
  height: 15px;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.flag-wrap .flag-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.socials a i {
  font-size: 0.85rem;
  line-height: 1;
}

html[dir="rtl"] .topbar,
html[dir="rtl"] .topbar-right,
html[dir="rtl"] .langs,
html[dir="rtl"] .main-nav,
html[dir="rtl"] .form-actions,
html[dir="rtl"] .fee-box > div,
html[dir="rtl"] .id-card-top {
  direction: rtl;
}

html[dir="rtl"] .langs {
  justify-content: flex-start;
}

html[dir="rtl"] .btn-primary {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .logo-text small {
  text-align: right;
}

/* Main nav */
.main-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #eceff2;
  border-radius: 2px;
  margin-bottom: 18px;
  overflow: visible;
}

.nav-item {
  position: relative;
  padding: 12px 18px;
  font-size: 0.92rem;
  color: #333;
  white-space: nowrap;
}

.nav-item.is-active {
  color: var(--red);
  font-weight: 600;
}

.nav-item:hover {
  color: var(--blue);
}

.has-dropdown > button {
  background: none;
  border: 0;
  padding: 12px 18px;
  font-size: 0.92rem;
  color: #333;
  cursor: pointer;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 20;
}

.dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
}

.dropdown a:hover {
  background: #f3f7fb;
  color: var(--blue);
}

/* Hero */
.hero-banner {
  background: var(--blue-banner);
  border-radius: 8px;
  padding: 28px 32px 30px;
  color: var(--white);
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(255, 255, 255, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 80% at 0% 100%, rgba(10, 60, 110, 0.2), transparent 55%);
  pointer-events: none;
}

.hero-banner h1,
.hero-banner p {
  position: relative;
  margin: 0;
}

.hero-banner h1 {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 700;
  margin-bottom: 10px;
}

.hero-banner p {
  max-width: 72ch;
  font-size: 0.92rem;
  line-height: 1.55;
  opacity: 0.96;
}

/* Stepper */
.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin: 8px auto 34px;
  max-width: 760px;
  padding: 0 8px;
}

.step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-width: 36px;
}

.step-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #cfd6dd;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 0.15s ease, transform 0.15s ease;
}

.step-dot.is-active,
.step-dot.is-done {
  background: var(--blue);
}

.step-dot.is-locked {
  background: #d5dbe1;
  color: #fff;
  cursor: not-allowed;
  opacity: 0.7;
}

.step-dot:hover {
  transform: scale(1.05);
}

.step-dot.is-locked:hover {
  transform: none;
}

.step-caption {
  position: absolute;
  top: 42px;
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 600;
}

.step-line {
  flex: 1;
  height: 3px;
  background: #cfd6dd;
  margin-top: 15.5px;
  min-width: 28px;
}

.step-line.is-done {
  background: var(--blue-soft);
}

/* Form panel */
.form-panel {
  max-width: 920px;
  margin: 0 auto;
  padding-top: 18px;
}

.form-panel h2 {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 1.35rem;
}

.form-sub {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}

.field label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.req {
  color: var(--red);
}

.help {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
  flex-shrink: 0;
}

.field input,
.field select {
  width: 100%;
  height: 40px;
  border: 1px solid #c8d0d8;
  border-radius: 3px;
  padding: 0 12px;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 90, 150, 0.12);
}

.field input.is-invalid,
.field select.is-invalid,
.upload-control input.is-invalid {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

.field-error {
  margin: 6px 0 0;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
}

.alert-error {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #ef9a9a;
  background: #fff5f5;
  color: var(--red);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
}

.note {
  margin: 16px 0 0;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 600;
}

.id-card {
  margin-top: 22px;
  width: min(100%, 420px);
}

.id-card-face {
  border-radius: 12px;
  overflow: hidden;
  color: #1a2a3a;
  background: linear-gradient(160deg, #f4f7fb 0%, #e7eef6 55%, #d9e5f1 100%);
  border: 1px solid #c5d3e2;
  box-shadow: 0 8px 24px rgba(15, 63, 106, 0.12);
}

.id-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(90deg, #1a5a96, #2f74b5);
  color: #fff;
}

.id-flag {
  width: 42px;
  height: 28px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  background: #e30a17;
}

.id-flag .flag-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.id-card-heading {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.id-card-heading strong {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.id-card-heading span {
  font-size: 0.62rem;
  opacity: 0.9;
}

.id-card-badge {
  margin-left: auto;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.id-card-body {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  padding: 14px;
}

.id-photo {
  width: 78px;
  height: 98px;
  border-radius: 4px;
  overflow: hidden;
  background: #d9e2ec;
  border: 1px solid #b7c6d6;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.id-fields {
  display: grid;
  gap: 8px;
}

.id-field {
  display: grid;
  gap: 1px;
}

.id-label {
  font-size: 0.65rem;
  color: #5a6b7c;
  text-transform: none;
}

.id-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #12263a;
  letter-spacing: 0.02em;
  min-height: 1.2em;
}

.id-value.is-placeholder {
  color: #8a97a6;
  font-weight: 600;
}

.fee-box {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.fee-box > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.fee-total {
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  color: var(--blue);
  font-size: 1rem !important;
}

.fee-box small {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.82rem;
}

.fee-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.info-panel {
  margin-bottom: 20px;
  padding: 16px 18px;
  border-left: 4px solid var(--blue);
  background: #f3f8fc;
}

.info-panel h3 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 1rem;
}

.info-panel ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.info-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.upload-format-note {
  margin-top: -8px;
  margin-bottom: 18px;
}

.upload-list {
  display: grid;
  gap: 12px;
}

.upload-item {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
}

.upload-item.has-file {
  border-color: #9fc3e8;
  background: #f3f8fc;
}

.upload-item.has-error {
  border-color: #ef9a9a;
  background: #fff7f7;
}

.upload-meta label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #333;
}

.upload-hint,
.upload-current,
.upload-error {
  margin: 6px 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.upload-hint {
  color: var(--muted);
}

.upload-current {
  color: var(--blue);
  font-weight: 600;
}

.upload-error {
  color: var(--red);
  font-weight: 600;
}

.upload-control input[type="file"] {
  width: 100%;
  font-size: 0.86rem;
}

.status-box {
  margin-top: 18px;
  padding: 16px 18px;
  background: #f3f8fc;
  border-radius: var(--radius);
}

.status-badge {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.status-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.success-box {
  padding: 24px;
  border: 1px solid #b7d6a8;
  background: #f3faf0;
  border-radius: var(--radius);
}

.success-box h3 {
  margin: 0 0 8px;
  color: #2e7d32;
}

.success-box p {
  margin: 0;
  color: var(--muted);
}

.basvuru-no {
  margin-top: 12px !important;
  color: #1a5a96 !important;
  font-size: 1rem !important;
}

.pay-options {
  display: grid;
  gap: 10px;
}

.pay-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  cursor: pointer;
}

.pay-option.is-selected,
.pay-option:has(input:checked) {
  border-color: #9fc3e8;
  background: #f3f8fc;
}

.pay-option input {
  margin-top: 4px;
}

.pay-option-body {
  display: grid;
  gap: 2px;
}

.pay-option-body strong {
  font-size: 0.95rem;
}

.pay-option-body small {
  color: var(--muted);
  font-size: 0.82rem;
}

.bank-box {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid #9fc3e8;
  border-radius: var(--radius);
  background: #f3f8fc;
}

.bank-box h3 {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 1rem;
}

.bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #c5d6e6;
}

.bank-row:last-of-type {
  border-bottom: 0;
}

.bank-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bank-label {
  font-size: 0.75rem;
  color: var(--muted);
}

.bank-meta strong {
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  word-break: break-all;
}

.btn-copy {
  width: 38px;
  height: 38px;
  border: 1px solid #b7c9da;
  border-radius: 4px;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-copy:hover,
.btn-copy.is-copied {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.bank-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 22px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  margin-left: auto;
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-ghost {
  background: #eef1f4;
  color: #333;
}

.btn-ghost:hover {
  background: #e2e7ec;
}

@media (max-width: 820px) {
  .topbar {
    flex-direction: column;
  }

  .topbar-right {
    align-items: flex-start;
    width: 100%;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .upload-item {
    grid-template-columns: 1fr;
  }

  .stepper {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 28px;
  }

  .main-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .page {
    padding: 12px 12px 36px;
  }

  .hero-banner {
    padding: 20px 18px;
  }

  .logo-text small {
    display: none;
  }

  .step-dot {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }

  .step-line {
    margin-top: 12.5px;
    min-width: 16px;
  }
}
