/* ===== Tokens =====
   bg:        #0b1120  (night navy)
   surface:   #121a2e
   surface-2: #0f1626
   accent:    #d9a15b  (passport-stamp gold)
   accent-2:  #5fb8b3  (visa-ink teal)
   text:      #eef1f7
   muted:     #93a0ba
   border:    #223050
*/

* { box-sizing: border-box; }

:root {
  --bg: #0b1120;
  --surface: #121a2e;
  --surface-2: #0f1626;
  --accent: #d9a15b;
  --accent-2: #5fb8b3;
  --text: #eef1f7;
  --muted: #93a0ba;
  --border: #223050;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

/* subtle far horizon glow, evokes a night departure board / runway lights */
.skyline {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 700px 380px at 15% -5%, rgba(217,161,91,0.16), transparent 60%),
    radial-gradient(ellipse 600px 320px at 100% 10%, rgba(95,184,179,0.12), transparent 60%),
    var(--bg);
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 50px 18px 70px;
}

/* ===== Hero ===== */

.hero {
  text-align: center;
  margin-bottom: 34px;
}

.route-line {
  position: relative;
  height: 70px;
  max-width: 460px;
  margin: 0 auto 6px;
}

.route-line svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.route-line path {
  fill: none;
  stroke: var(--border);
  stroke-width: 2;
  stroke-dasharray: 6 8;
}

.route-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  top: 68px;
}
.route-dot.start { right: 4px; }
.route-dot.end { left: 4px; top: 14px; background: var(--accent); }

.plane {
  position: absolute;
  font-size: 20px;
  top: -6px;
  right: 0;
  transform: scaleX(-1) rotate(8deg);
  color: var(--accent);
  offset-path: path('M10,60 C150,10 250,70 320,30 C400,-10 480,50 590,20');
  offset-rotate: 0deg;
  animation: fly 7s ease-in-out infinite;
}

@keyframes fly {
  0%   { offset-distance: 0%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.eyebrow-alt {
  color: var(--accent-2);
  font-size: 13.5px;
  font-weight: 500;
  margin: 0 0 10px;
}

.hero h1 {
  font-family: 'Fraunces', 'Vazirmatn', serif;
  font-size: 44px;
  font-weight: 600;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.hero h1 span {
  color: var(--accent);
  font-style: italic;
}

.hero .sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  max-width: 480px;
  margin: 0 auto;
}

/* ===== Consultant cost banner ===== */
.consultant-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(90deg, rgba(217,161,91,0.14), rgba(95,184,179,0.08));
  border: 1px solid rgba(217,161,91,0.4);
  border-radius: 14px;
  padding: 14px 18px;
  max-width: 620px;
  margin: 0 auto 30px;
}

.consultant-banner-icon {
  font-size: 18px;
  line-height: 1.6;
}

.consultant-banner p {
  margin: 0;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.9;
}

/* ===== Ticket / form card ===== */

.ticket {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 32px 32px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
}

.ticket-notch {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
}
.ticket-notch.left { left: -13px; }
.ticket-notch.right { right: -13px; }

.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px dashed var(--border);
}

.tag {
  font-size: 12.5px;
  color: var(--accent-2);
  font-weight: 600;
}

.tag-id {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

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

.field.wide { grid-column: 1 / -1; }

@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr; }
  .ticket { padding: 26px 20px 28px; }
  .hero h1 { font-size: 34px; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.field input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-left: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-65%) rotate(-45deg);
  pointer-events: none;
}

.field select {
  width: 100%;
  appearance: none;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 36px 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

.field input:focus, .field select:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(95,184,179,0.15);
}

.field input::placeholder { color: #5b6784; }

button#submitBtn {
  width: 100%;
  margin-top: 26px;
  padding: 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent), #c98a3f);
  color: #201203;
  font-size: 15.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .15s, box-shadow .15s;
}

button#submitBtn svg { transform: scaleX(-1); }

button#submitBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(217,161,91,0.45);
}

button#submitBtn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.hidden { display: none !important; }

/* ===== Loading ===== */

.loading {
  text-align: center;
  padding: 70px 20px;
}

.loading-track {
  position: relative;
  width: 260px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 14px);
  margin: 0 auto 26px;
}

.loading-plane {
  position: absolute;
  top: -10px;
  right: 0;
  font-size: 20px;
  color: var(--accent);
  transform: scaleX(-1);
  animation: taxi 1.8s ease-in-out infinite;
}

@keyframes taxi {
  0%   { right: 0; }
  100% { right: calc(100% - 20px); }
}

.loading p {
  color: var(--muted);
  font-size: 14px;
}

/* ===== Result ===== */

.error {
  background: #2a1414;
  border: 1px solid #5c2626;
  color: #ff9d9d;
  padding: 16px;
  border-radius: 10px;
  text-align: center;
}

.result {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}
.result.show { opacity: 1; transform: translateY(0); }

.result-card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55);
}

.result-eyebrow {
  font-size: 12.5px;
  color: var(--accent-2);
  font-weight: 600;
  margin: 0 0 8px;
}

.result-title {
  font-family: 'Fraunces', 'Vazirmatn', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 12px;
}

.result-summary {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
  margin: 0 0 20px;
}

.stat-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13px;
  flex: 1;
  min-width: 160px;
}

.stat .stat-label {
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.stat .stat-value {
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}

.stat-wide {
  width: 100%;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* eligibility verdict box */
.verdict-box {
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0 20px;
  border: 1px solid var(--border);
}

.verdict-title {
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 6px;
}

.verdict-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

.verdict-good {
  background: rgba(95,184,179,0.08);
  border-color: rgba(95,184,179,0.35);
}
.verdict-good .verdict-title { color: var(--accent-2); }

.verdict-warn {
  background: rgba(217,161,91,0.08);
  border-color: rgba(217,161,91,0.35);
}
.verdict-warn .verdict-title { color: var(--accent); }

.verdict-bad {
  background: rgba(214,90,90,0.08);
  border-color: rgba(214,90,90,0.35);
}
.verdict-bad .verdict-title { color: #e08787; }

/* resource chips under each step */
.resource-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.resource-chip {
  font-size: 12px;
  color: var(--accent-2);
  background: rgba(95,184,179,0.08);
  border: 1px solid rgba(95,184,179,0.25);
  border-radius: 8px;
  padding: 4px 10px;
}

.disclaimer {
  background: rgba(217,161,91,0.08);
  border: 1px solid rgba(217,161,91,0.3);
  color: #e8c078;
  font-size: 12.5px;
  padding: 13px 15px;
  border-radius: 12px;
  margin: 4px 0 26px;
  line-height: 1.9;
}

.note-box {
  background: rgba(95,184,179,0.08);
  border: 1px solid rgba(95,184,179,0.3);
  color: #9fdcd8;
}

.section-heading {
  font-family: 'Fraunces', 'Vazirmatn', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}

.section-sub {
  color: var(--muted);
  font-size: 12.5px;
  margin: 0 0 22px;
}

/* passport-stamp roadmap */
.roadmap {
  position: relative;
  padding-right: 30px;
}

.roadmap::before {
  content: '';
  position: absolute;
  right: 13px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--border) 0 6px, transparent 6px 11px);
}

.stamp-step {
  position: relative;
  margin-bottom: 26px;
}

.stamp-step:last-child { margin-bottom: 0; }

.stamp-marker {
  position: absolute;
  right: -30px;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--surface-2);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.stamp-step h4 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 600;
}

.stamp-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

.stamp-step-teaser p {
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}

.teaser-note {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--accent-2, #d99a4e);
  font-weight: 600;
}

.result-raw {
  white-space: pre-wrap;
  line-height: 2;
  font-size: 14px;
  color: #ddd;
}

.reset-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 28px;
  padding: 14px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 12px;
  cursor: pointer;
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color .15s, color .15s;
}

.reset-btn:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

/* ---------- locked / VIP-gated content ---------- */
.locked-block {
  position: relative;
  margin-top: 4px;
}

.locked-content {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  max-height: 230px;
  overflow: hidden;
}

.locked-fade {
  height: 90px;
  margin-top: -90px;
  position: relative;
  background: linear-gradient(180deg, transparent, var(--surface-2) 85%);
}

.locked-cta {
  text-align: center;
  padding: 18px 20px 6px;
}

.locked-cta-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 8px;
}

.locked-cta p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
  margin: 0 0 14px;
  max-width: 380px;
  margin-inline: auto;
}

.vip-unlock-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--accent), #c98a3f);
  color: #201203 !important;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.vip-notice {
  color: #9fdcd8;
  background: rgba(95,184,179,0.08);
  border-color: rgba(95,184,179,0.3);
}

.vip-notice a {
  color: var(--accent-2);
  font-weight: 700;
}

/* profile improvement tips */
.tip-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tip-chip {
  font-size: 12px;
  color: var(--accent);
  background: rgba(217,161,91,0.1);
  border: 1px solid rgba(217,161,91,0.3);
  border-radius: 999px;
  padding: 5px 12px;
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tip-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.tip-item h5 {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
}

.tip-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

/* ---------- multi-path accordion ---------- */
.paths-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.path-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.path-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 18px;
  user-select: none;
}

.path-summary::-webkit-details-marker { display: none; }

.path-name {
  font-family: 'Fraunces', 'Vazirmatn', serif;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  min-width: 140px;
}

.rank-badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

.rank-badge.rank-top {
  color: #16110a;
  background: var(--accent);
  border-color: var(--accent);
}

.path-type-chip {
  font-size: 11.5px;
  color: var(--accent-2);
  background: rgba(95,184,179,0.1);
  border: 1px solid rgba(95,184,179,0.3);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

.path-toggle-icon {
  color: var(--muted);
  font-size: 13px;
  transition: transform .2s ease;
}

.path-block[open] .path-toggle-icon {
  transform: rotate(180deg);
}

.path-content {
  padding: 4px 18px 22px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}
