.visa-page {
  background: linear-gradient(180deg, rgba(68, 176, 196, 0.1), rgba(255, 178, 60, 0.08) 38%, var(--bg) 100%);
}

.visa-main {
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  padding: 28px 0 54px;
}

.visa-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  align-items: center;
  gap: 28px;
  border-inline-start: 7px solid var(--gold);
  border-radius: 8px;
  background: var(--secondary);
  color: #fff;
  padding: clamp(22px, 4vw, 42px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visa-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #ffd895;
  font-size: 13px;
  font-weight: 900;
}

.visa-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.35;
}

.visa-hero p {
  max-width: 720px;
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
}

.visa-hero-icon {
  width: 110px;
  height: 110px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.visa-search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(280px, 1.25fr) auto;
  align-items: end;
  gap: 14px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: 0 12px 30px rgba(75, 30, 112, 0.09);
}

.visa-search-button { min-height: 48px; }

.visa-results-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 34px 0 16px;
  scroll-margin-top: 100px;
}

.visa-results-head h2 { margin: 0; color: var(--secondary); font-size: 24px; }
.visa-results-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }

.visa-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 190px;
  border: 1px dashed rgba(75, 30, 112, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--secondary);
}

.visa-loading[hidden], .visa-card-details[hidden] { display: none; }

.visa-loader {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(75, 30, 112, 0.18);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: visa-spin 800ms linear infinite;
}

@keyframes visa-spin { to { transform: rotate(360deg); } }

.visa-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.visa-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(75, 30, 112, 0.09);
  overflow: hidden;
}

.visa-card-cover {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 150px;
  background-color: var(--teal);
  background-position: center;
  background-size: cover;
  padding: 18px;
}

.visa-card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(30, 14, 45, 0.86), rgba(30, 14, 45, 0.05) 70%);
}

.visa-country-code {
  align-self: start;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.93);
  color: var(--secondary);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 950;
}

.visa-card-cover h3 { margin: 9px 0 0; color: #fff; font-size: 25px; line-height: 1.3; }
.visa-card-body { display: grid; gap: 14px; padding: 16px; }

.visa-card-title, .visa-card-actions, .visa-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.visa-card-title > div { display: grid; gap: 3px; }
.visa-card-title span, .visa-fact span, .visa-price span { color: var(--muted); font-size: 11px; font-weight: 800; }
.visa-card-title strong { color: var(--secondary); font-size: 16px; }

.visa-entry {
  border: 1px solid rgba(68, 176, 196, 0.34);
  border-radius: 6px;
  background: var(--soft-blue);
  color: #236b78 !important;
  padding: 5px 8px;
  white-space: nowrap;
}

.visa-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.visa-fact { display: grid; gap: 4px; min-width: 0; border-inline-start: 3px solid var(--gold); background: #fff9ef; padding: 8px; }
.visa-fact strong { color: var(--ink); font-size: 12px; line-height: 1.45; }

.visa-price { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 11px 0; }
.visa-price strong { color: var(--primary-dark); font-size: 20px; }

.visa-card-details { display: grid; gap: 12px; border-radius: 6px; background: var(--soft-purple); padding: 12px; }
.visa-card-details strong { color: var(--secondary); font-size: 13px; }
.visa-card-details ul, .visa-card-details p { margin: 7px 0 0; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.75; white-space: pre-line; }
.visa-card-details ul { padding-inline-start: 20px; }
.visa-card-actions > * { flex: 1; }
.visa-book-button { text-decoration: none; }
.visa-book-button svg { width: 18px; height: 18px; }

.commission-form { grid-template-columns: repeat(4, minmax(165px, 1fr)); }
.commission-form .primary-button { justify-self: start; }

@media (max-width: 1040px) {
  .visa-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visa-search-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visa-search-button { grid-column: 1 / -1; }
  .commission-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .commission-form .primary-button { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .top-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-nav a { padding-inline: 6px; font-size: 11px; }
  .visa-main { width: min(100% - 20px, 1180px); padding-top: 14px; }
  .visa-hero { grid-template-columns: 1fr; padding: 22px 18px; }
  .visa-hero-icon { display: none; }
  .visa-hero h1 { font-size: 28px; }
  .visa-search-panel, .visa-grid, .visa-facts, .commission-form { grid-template-columns: 1fr; }
  .visa-search-button { grid-column: auto; }
  .visa-results-head { align-items: stretch; flex-direction: column; }
  .visa-results-head .status-chip { justify-content: center; }
  .visa-loading { align-items: center; flex-direction: column; padding: 28px 18px; text-align: center; }
}

