:root {
  --navy: #0b2447;
  --navy-deep: #071a33;
  --blue: #2c6aa0;
  --red: #c8102e;
  --gold: #9a722d;
  --text: #18263a;
  --muted: #64748b;
  --line: #dfe7f0;
  --surface: #f5f8fc;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { overflow-y: scroll; scrollbar-gutter: stable; }
body {
  margin: 0;
  color: var(--text);
  background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: #fff;
  background: linear-gradient(180deg, #0b2447, #0e2e59);
  box-shadow: 0 8px 28px rgba(7, 26, 51, .22);
}
.header-wrap {
  width: min(1240px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
}
.brand-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(7,26,51,.28);
}
.brand-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-copy { min-width: 0; }
.brand-copy strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: .05em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-copy small {
  display: block;
  margin-top: 2px;
  color: #91b1d6;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.language-switch { position: relative; flex: 0 0 auto; }
.language-switch summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  font-size: 12px;
  cursor: pointer;
}
.language-switch summary::-webkit-details-marker { display: none; }
.language-switch[open] summary { background: rgba(255,255,255,.18); }
.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  width: 190px;
  max-height: min(70vh, 420px);
  overflow: auto;
  padding: 6px;
  border: 1px solid #dce5ef;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(7,26,51,.28);
}
.language-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--navy);
  font-size: 12.5px;
}
.language-menu a:hover { background: #eef4fb; }
.language-menu a.active { color: #fff; background: var(--navy); font-weight: 700; }

.application-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(125deg, #0d2e59 0%, #0a2345 58%, #311a2b 100%);
}
.application-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 300px at 8% 0%, rgba(76,142,213,.28), transparent 65%),
    radial-gradient(520px 280px at 95% 86%, rgba(200,16,46,.18), transparent 64%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 36px;
}
.hero-kicker {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  color: #bcd2ea;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .15em;
}
.hero-inner h1 {
  max-width: 760px;
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
}
.hero-inner > p:not(.hero-kicker) {
  max-width: 780px;
  margin: 0;
  color: #c4d7eb;
  font-size: 14.5px;
  line-height: 1.75;
}
.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px !important;
  padding: 12px 16px;
  border: 1px solid #f0cf72;
  border-radius: 8px;
  color: #6d4500 !important;
  background: #fff7dd;
  box-shadow: 0 8px 22px rgba(7,26,51,.2);
  font-size: 14px !important;
  font-weight: 750;
  line-height: 1.45;
}
.hero-note::before {
  content: "✓";
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  border-radius: 50%;
  color: #fff;
  background: #0f766e;
  font-size: 12px;
  font-weight: 800;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 26px auto 70px;
}
.alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #991b1b;
  background: #fff1f2;
  font-size: 13.5px;
}
.application-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}
.panel {
  margin-bottom: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(11,36,71,.045);
}
.panel h2 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.3;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field { display: block; min-width: 0; }
.field.full, .full { grid-column: 1 / -1; }
.field > span, .field-label {
  display: block;
  margin-bottom: 5px;
  color: #374151;
  font-size: 12.5px;
  font-weight: 650;
}
.field input, .field textarea {
  width: 100%;
  padding: 10px 12px;
  color: var(--text);
  border: 1px solid #cfd8e3;
  border-radius: 7px;
  background: #fff;
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(44,106,160,.13);
}
.field textarea { min-height: 92px; resize: vertical; }
.field-hint {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}
.radio-row { display: flex; gap: 8px; flex-wrap: wrap; }
.radio-card {
  flex: 1 1 130px;
  padding: 10px 8px;
  border: 1px solid #d6dee8;
  border-radius: 7px;
  color: #4b5563;
  background: #fff;
  text-align: center;
  font-size: 12px;
  cursor: pointer;
}
.radio-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.radio-card.selected {
  border-color: var(--blue);
  color: #174a78;
  background: #eaf3fc;
  font-weight: 700;
}
.upload-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px;
  border: 1.5px dashed #b9c7d7;
  border-radius: 7px;
  color: #61748a;
  background: #fafcff;
  text-align: center;
  font-size: 12px;
  cursor: pointer;
}
.upload-zone:hover { border-color: var(--blue); background: #f6faff; }
.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.class-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.class-option {
  position: relative;
  min-height: 56px;
  padding: 9px 8px;
  border: 1px solid #dbe3ec;
  border-radius: 7px;
  color: #405168;
  background: #fff;
  font-size: 11px;
  line-height: 1.35;
  cursor: pointer;
}
.class-option input { position: absolute; opacity: 0; pointer-events: none; }
.class-option b {
  display: block;
  margin-bottom: 3px;
  color: var(--navy);
  font-size: 13px;
}
.class-option:hover { border-color: #aabed2; }
.class-option.selected {
  border-color: var(--blue);
  color: #174a78;
  background: #eaf3fc;
  box-shadow: inset 0 0 0 1px var(--blue);
}

.summary-panel { position: static; }
.price-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid #edf1f5;
  color: #4b5563;
  font-size: 13px;
}
.price-row strong { color: var(--navy); }
.price-total {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 0 4px;
  color: var(--navy);
  font-size: 20px;
  font-weight: 800;
}
.no-payment-inline {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #a7f3d0;
  border-radius: 7px;
  color: #047857;
  background: #ecfdf5;
  text-align: center;
  font-size: 12.5px;
  font-weight: 750;
}
.submit-btn {
  width: 100%;
  margin-top: 14px;
  padding: 13px 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 9px 22px rgba(200,16,46,.22);
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
}
.submit-btn:hover { background: #a90d26; }
.secure-note {
  margin: 10px 0 0;
  color: #7b8796;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.5;
}
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 9px;
  padding: 9px 0;
  border-bottom: 1px solid #eef2f6;
  color: #526277;
  font-size: 12.5px;
  line-height: 1.55;
}
.process-list li:last-child { border-bottom: 0; }
.process-list span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--navy);
  font-size: 10px;
  font-weight: 800;
}
.contact-box {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #e0e7ef;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 12px;
}
.contact-box a {
  display: block;
  margin-top: 6px;
  color: var(--blue);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.success-wrap {
  width: min(820px, calc(100% - 32px));
  margin: 40px auto 70px;
}
.success-card {
  padding: 34px 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(11,36,71,.08);
}
.success-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: #047857;
  background: #d1fae5;
  font-size: 30px;
  font-weight: 800;
}
.success-kicker {
  margin: 0;
  color: #0f766e;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}
.success-card h1 {
  margin: 7px 0 10px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 32px;
  text-align: center;
}
.success-lead {
  max-width: 620px;
  margin: 0 auto 22px;
  color: #536277;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
}
.success-steps {
  margin: 0 0 20px;
  padding: 16px 18px;
  border: 1px solid #bae6d4;
  border-radius: 9px;
  background: #f0fdf7;
}
.success-steps h2 { margin: 0 0 8px; color: #065f46; font-size: 14px; }
.success-steps ul { margin: 0; padding-inline-start: 18px; color: #356756; font-size: 12.5px; line-height: 1.7; }
.success-summary { margin-bottom: 22px; border: 1px solid #e2e8f0; border-radius: 9px; padding: 3px 16px; }
.success-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #edf1f5;
  font-size: 13px;
}
.success-row:last-child { border-bottom: 0; }
.success-row span { color: var(--muted); }
.success-row strong { color: var(--navy); text-align: right; overflow-wrap: anywhere; }
.success-actions { display: flex; justify-content: center; gap: 9px; flex-wrap: wrap; }
.success-actions a {
  padding: 11px 16px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}
.success-actions a.primary { color: #fff; background: var(--navy); }

.site-footer {
  padding: 30px 16px;
  color: #91a8c1;
  background: var(--navy-deep);
  text-align: center;
  font-size: 12px;
}
.site-footer strong { color: #fff; font-family: var(--serif); letter-spacing: .05em; }

@media (max-width: 1000px) {
  .application-layout { grid-template-columns: minmax(0, 1fr) 310px; }
  .class-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .application-layout { grid-template-columns: 1fr; }
  .summary-panel { position: static; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-wrap { width: min(100% - 22px, 1240px); min-height: 70px; gap: 10px; }
  .brand-logo { width: 42px; height: 42px; flex-basis: 42px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { display: none; }
  .language-switch summary { padding: 6px 8px; }
  .hero-inner, .page-shell, .success-wrap { width: min(100% - 22px, 1240px); }
  .hero-inner { padding: 30px 0; }
  .hero-inner h1 { font-size: 31px; }
  .panel { padding: 17px; }
  .class-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .success-card { padding: 27px 17px; }
  .success-card h1 { font-size: 26px; }
  .success-row { flex-direction: column; gap: 3px; }
  .success-row strong { text-align: left; }
  .success-actions { flex-direction: column; }
  .success-actions a { text-align: center; }
}
@media (max-width: 390px) {
  .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Content and legal pages */
.content-hero {
  color: #fff;
  background: linear-gradient(125deg, #0d2e59 0%, #0a2345 65%, #2c1c2b 100%);
}
.content-hero-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 38px;
}
.content-kicker {
  margin: 0 0 10px;
  color: #a9c6e5;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .16em;
}
.content-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 43px);
  line-height: 1.15;
}
.content-hero-lead {
  max-width: 850px;
  margin: 12px 0 0;
  color: #c2d7eb;
  font-size: 14px;
  line-height: 1.75;
}
.content-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 70px;
}
.content-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.content-toc {
  position: sticky;
  top: 92px;
  padding: 17px;
  border: 1px solid #dfe7f0;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(11,36,71,.05);
}
.content-toc h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 13px;
}
.content-toc a {
  display: block;
  padding: 7px 8px;
  border-radius: 6px;
  color: #53677d;
  font-size: 11.5px;
  line-height: 1.45;
}
.content-toc a:hover { color: var(--blue); background: #eef4fb; }
.content-main {
  padding: 24px;
  border: 1px solid #dfe7f0;
  border-radius: 10px;
  background: #fff;
}
.content-intro {
  margin: 0 0 21px;
  color: #4d6075;
  font-size: 14px;
  line-height: 1.8;
}
.content-section {
  padding: 19px 0;
  border-top: 1px solid #e9eef4;
}
.content-section:first-of-type { border-top: 0; padding-top: 0; }
.content-section h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 21px;
}
.content-section p {
  margin: 0;
  color: #53667b;
  font-size: 13.5px;
  line-height: 1.85;
}
.content-source {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #c8d9ea;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #f7fbff;
}
.content-source h2 { margin: 0 0 6px; color: var(--navy); font-size: 14px; }
.content-source p { margin: 0 0 10px; color: #556a80; font-size: 12.5px; line-height: 1.7; }
.content-source a {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 7px;
  color: #fff;
  background: var(--navy);
  font-size: 12px;
  font-weight: 700;
}
.content-source a:hover { background: #123961; }
.content-policy {
  margin-top: 20px;
  padding: 15px 16px;
  border: 1px solid #efd7a3;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fffbf0;
}
.content-policy h2 { margin: 0 0 6px; color: #6d4500; font-size: 14px; }
.content-policy p { margin: 0; color: #6d5b3d; font-size: 12.5px; line-height: 1.7; }
.content-back {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
}
html[dir="rtl"] .content-source { border-left: 1px solid #c8d9ea; border-right: 4px solid var(--gold); }
html[dir="rtl"] .content-policy { border-left: 1px solid #efd7a3; border-right: 4px solid var(--gold); }

@media (max-width: 800px) {
  .content-layout { grid-template-columns: 1fr; }
  .content-toc { position: static; }
  .content-toc a { display: inline-block; margin: 2px 4px 2px 0; }
  .content-main { padding: 18px; }
}
@media (max-width: 480px) {
  .content-hero-inner, .content-shell { width: min(100% - 22px, 1240px); }
  .content-hero-inner { padding: 30px 0; }
  .content-section h2 { font-size: 19px; }
  .content-section p { font-size: 13px; }
  .content-source a { width: 100%; justify-content: center; text-align: center; }
}
