/* Kvisa subpage UIUX batch-1: structure-level refresh for selected inner pages */

:root {
  --kv-pro-bg: #f6f9fc;
  --kv-pro-surface: #ffffff;
  --kv-pro-border: #d6e2ef;
  --kv-pro-text: #102a43;
  --kv-pro-muted: #4a6278;
  --kv-pro-link: #0f6fae;
  --kv-pro-link-hover: #0d5d91;
  --kv-pro-shadow: 0 18px 42px rgba(14, 31, 53, 0.12);
  --kv-pro-warm-start: #ffd693;
  --kv-pro-warm-end: #ffbd73;
  --kv-pro-warm-text: #533106;
  --kv-pro-warm-border: #f1c27d;
}

body.kvisa-subpage {
  background:
    radial-gradient(circle at 8% -12%, rgba(59, 130, 246, 0.12) 0, transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(245, 158, 11, 0.11) 0, transparent 32%),
    linear-gradient(180deg, #fbfdff 0%, var(--kv-pro-bg) 100%) !important;
}

body.kvisa-subpage .pro-page-shell {
  max-width: 1120px !important;
  margin: 2.25rem auto 3rem !important;
  padding: clamp(1.1rem, 1.6vw, 1.9rem) !important;
  border: 1px solid var(--kv-pro-border) !important;
  border-radius: 26px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%) !important;
  box-shadow: var(--kv-pro-shadow) !important;
}

body.kvisa-subpage .pro-page-shell h1,
body.kvisa-subpage .pro-page-shell h2,
body.kvisa-subpage .pro-page-shell h3 {
  line-height: 1.24;
}

body.kvisa-subpage .pro-page-shell p,
body.kvisa-subpage .pro-page-shell li {
  color: var(--kv-pro-muted);
}

body.kvisa-subpage .pro-page-shell a {
  color: var(--kv-pro-link);
}

body.kvisa-subpage .pro-page-shell a:hover {
  color: var(--kv-pro-link-hover);
}

/* Shared compact nav for upgraded subpages */
body.kvisa-subpage nav {
  max-width: 1120px;
  margin: 0.95rem auto 0 !important;
  padding: 0.68rem 0.95rem !important;
  border-radius: 14px !important;
  border: 1px solid #d6e2ef !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: 0 8px 18px rgba(14, 31, 53, 0.08) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

body.kvisa-subpage nav .container {
  width: 100%;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

body.kvisa-subpage nav .logo {
  font-size: 1rem !important;
  line-height: 1.2;
  letter-spacing: 0.01em;
  font-weight: 800 !important;
  color: #374151 !important;
  text-decoration: none;
  white-space: nowrap;
}

body.kvisa-subpage nav .nav-links,
body.kvisa-subpage nav ul {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.88rem;
}

body.kvisa-subpage nav .nav-links li,
body.kvisa-subpage nav ul li {
  margin: 0 !important;
}

body.kvisa-subpage nav .nav-links a,
body.kvisa-subpage nav ul a {
  color: #4b5563 !important;
  font-size: 0.9rem !important;
  font-weight: 700;
  text-decoration: none;
}

body.kvisa-subpage nav .nav-links a:hover,
body.kvisa-subpage nav ul a:hover {
  color: #1f2937 !important;
}

/* Hard ban for deep-blue inline colors on upgraded pages */
body.kvisa-subpage [style*="#1e3a8a"],
body.kvisa-subpage [style*="#1d4ed8"],
body.kvisa-subpage [style*="#1e40af"],
body.kvisa-subpage [style*="#2563eb"] {
  color: #1f2937 !important;
}

body.kvisa-subpage [style*="background: #1d4ed8"],
body.kvisa-subpage [style*="background:#1d4ed8"],
body.kvisa-subpage [style*="background: #1e3a8a"],
body.kvisa-subpage [style*="background:#1e3a8a"] {
  background: #fff1df !important;
  color: #533106 !important;
}

body.kvisa-subpage .pro-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  border: 1px solid #c2dbff;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Shared warm CTA style used by this batch */
body.kvisa-subpage .pro-cta,
body.kvisa-subpage button.pro-cta,
body.kvisa-subpage a.pro-cta {
  background: linear-gradient(120deg, var(--kv-pro-warm-start) 0%, var(--kv-pro-warm-end) 100%) !important;
  color: var(--kv-pro-warm-text) !important;
  border: 1px solid var(--kv-pro-warm-border) !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.24) !important;
  font-weight: 800 !important;
}

/* ------------------------------------------------------------------ */
/* Page: /tools/visa-matcher/ */
/* ------------------------------------------------------------------ */

body.pro-visa-matcher main.pro-page-shell > div:first-of-type {
  background:
    radial-gradient(circle at 12% 0%, rgba(59, 130, 246, 0.12) 0, transparent 54%),
    linear-gradient(130deg, #e8f2ff 0%, #f0f7ff 48%, #fff1df 100%);
  border: 1px solid #d4e5ff;
  border-radius: 22px;
  padding: 1.2rem 1rem 1.35rem;
  margin-bottom: 1.7rem !important;
}

body.pro-visa-matcher main.pro-page-shell > div:first-of-type h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.6rem) !important;
}

body.pro-visa-matcher .progress-bar {
  height: 10px;
  border-radius: 999px;
  margin-bottom: 1.3rem;
}

body.pro-visa-matcher .progress-fill {
  background: linear-gradient(90deg, #3b82f6 0%, #38bdf8 55%, #f59e0b 100%);
}

body.pro-visa-matcher main.pro-page-shell > div[style*="max-width: 700px"] {
  max-width: 860px !important;
  margin: 0 auto !important;
}

body.pro-visa-matcher .form-step {
  border: 1px solid #d9e5f2;
  background: #ffffff;
  border-radius: 18px;
  padding: clamp(1rem, 1.5vw, 1.35rem);
}

body.pro-visa-matcher .form-step h2 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: #102a43 !important;
}

body.pro-visa-matcher .form-step h2 span[style*="background: #667eea"],
body.pro-visa-matcher .form-step h2 span[style*="background:#667eea"] {
  background: #3b82f6 !important;
  color: #ffffff !important;
}

body.pro-visa-matcher .option-card {
  border-radius: 14px;
  border-color: #d9e4f0;
  background: #ffffff;
}

body.pro-visa-matcher .option-card:hover {
  border-color: #7bb5ff;
  background: #f7fbff;
}

body.pro-visa-matcher .option-card.selected {
  border-color: #3b82f6 !important;
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.16);
  background: linear-gradient(145deg, #eef6ff 0%, #fbfdff 100%) !important;
}

body.pro-visa-matcher .option-card h3[style*="color: #667eea"],
body.pro-visa-matcher .option-card h3[style*="color:#667eea"] {
  color: #1d4ed8 !important;
}

body.pro-visa-matcher .btn-nav {
  border-radius: 999px;
  font-weight: 800;
  min-width: 132px;
}

body.pro-visa-matcher .btn-next {
  background: linear-gradient(120deg, var(--kv-pro-warm-start), var(--kv-pro-warm-end)) !important;
  color: var(--kv-pro-warm-text) !important;
  border: 1px solid var(--kv-pro-warm-border) !important;
}

body.pro-visa-matcher .btn-back {
  background: #fff7eb !important;
  color: #6b430f !important;
  border: 1px solid #f3cf9c !important;
}

body.pro-visa-matcher .visa-result {
  border-radius: 20px;
  border: 1px solid #cfe3ff;
  background: linear-gradient(150deg, #ecf5ff 0%, #f8fbff 45%, #fff5e8 100%);
}

/* ------------------------------------------------------------------ */
/* Page: /tools/checklist/ */
/* ------------------------------------------------------------------ */

body.pro-checklist .generator-container > h1:first-of-type,
body.pro-checklist .generator-container > p:first-of-type {
  text-align: center;
}

body.pro-checklist .generator-container > h1:first-of-type {
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  margin-bottom: 0.75rem;
}

body.pro-checklist .generator-container > p:first-of-type {
  max-width: 760px;
  margin: 0 auto 1.8rem auto;
  color: #4f6479;
}

body.pro-checklist .form-section {
  border-radius: 18px;
  border: 1px solid #d8e4f1;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(14, 31, 53, 0.08);
}

body.pro-checklist .form-section h3 {
  color: #1d4ed8;
}

body.pro-checklist .radio-option {
  border-radius: 13px;
  border-color: #dce7f3;
}

body.pro-checklist .radio-option:hover {
  border-color: #7bb5ff;
  background: #f7fbff;
}

body.pro-checklist .checklist-header {
  background: linear-gradient(125deg, #3b82f6 0%, #38bdf8 52%, #f59e0b 100%);
  border-radius: 20px;
}

body.pro-checklist .checklist-category {
  border-radius: 16px;
  border-color: #d8e4f1;
}

body.pro-checklist .progress-summary {
  border: 1px solid #d8e4f1;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

body.pro-checklist .progress-number {
  color: #1d4ed8;
}

body.pro-checklist .action-buttons .btn-primary {
  background: linear-gradient(120deg, var(--kv-pro-warm-start), var(--kv-pro-warm-end)) !important;
  color: var(--kv-pro-warm-text) !important;
  border: 1px solid var(--kv-pro-warm-border) !important;
}

body.pro-checklist .action-buttons .btn-secondary {
  background: #fff7eb !important;
  color: #6b430f !important;
  border: 1px solid #f3cf9c !important;
}

/* ------------------------------------------------------------------ */
/* Page: /k-visa-vs-h1b/ */
/* ------------------------------------------------------------------ */

body.pro-vs-page .pro-page-shell > .byline {
  border-bottom: 1px solid #d9e4f1 !important;
  padding-bottom: 0.85rem !important;
  margin-bottom: 1.6rem !important;
}

body.pro-vs-page .pro-page-shell > section,
body.pro-vs-page .pro-page-shell > header {
  border: 1px solid #d6e2ef;
  border-radius: 20px;
  padding: clamp(1rem, 1.5vw, 1.6rem) !important;
  margin: 2rem 0 !important;
  box-shadow: 0 12px 24px rgba(14, 31, 53, 0.07);
}

body.pro-vs-page .pro-page-shell > section[style*="linear-gradient(135deg, #667eea"],
body.pro-vs-page .pro-page-shell > section[style*="linear-gradient(135deg,#667eea"] {
  background: linear-gradient(125deg, #e7f1ff 0%, #f4f8ff 52%, #fff2e2 100%) !important;
  color: #102a43 !important;
}

body.pro-vs-page .pro-page-shell > section[style*="linear-gradient(135deg, #667eea"] h2,
body.pro-vs-page .pro-page-shell > section[style*="linear-gradient(135deg,#667eea"] h2,
body.pro-vs-page .pro-page-shell > section[style*="linear-gradient(135deg, #667eea"] p,
body.pro-vs-page .pro-page-shell > section[style*="linear-gradient(135deg,#667eea"] p {
  color: #102a43 !important;
}

body.pro-vs-page .pro-page-shell .card[style*="linear-gradient(135deg, #667eea"],
body.pro-vs-page .pro-page-shell .card[style*="linear-gradient(135deg,#667eea"] {
  background: linear-gradient(125deg, #fff6ea 0%, #fffdf9 100%) !important;
  color: #1f2937 !important;
  border: 1px solid #f3d7af !important;
  box-shadow: 0 8px 18px rgba(156, 95, 17, 0.08) !important;
}

body.pro-vs-page .pro-page-shell .card[style*="linear-gradient(135deg, #f093fb"] {
  background: linear-gradient(125deg, #fff8f0 0%, #fffdf9 100%) !important;
  color: #1f2937 !important;
  border: 1px solid #f2ddbe !important;
  box-shadow: 0 8px 18px rgba(156, 95, 17, 0.08) !important;
}

body.pro-vs-page .pro-page-shell .card h3,
body.pro-vs-page .pro-page-shell .card p,
body.pro-vs-page .pro-page-shell .card li,
body.pro-vs-page .pro-page-shell .card strong {
  color: #1f2937 !important;
}

body.pro-vs-page .pro-page-shell section table {
  border-radius: 14px;
  overflow: hidden;
}

body.pro-vs-page .pro-page-shell section table th {
  background: #eef4fb !important;
  color: #143d63 !important;
}

body.pro-vs-page .pro-page-shell section table td {
  background: #ffffff;
}

body.pro-vs-page #feedbackBtn,
body.pro-vs-page #feedback-btn {
  background: linear-gradient(120deg, var(--kv-pro-warm-start), var(--kv-pro-warm-end)) !important;
  color: var(--kv-pro-warm-text) !important;
  border: 1px solid var(--kv-pro-warm-border) !important;
}

/* ------------------------------------------------------------------ */
/* Page: /authors/immigration-editor/ */
/* ------------------------------------------------------------------ */

body.pro-author-profile .pro-page-shell > nav:first-of-type {
  margin-bottom: 1.3rem !important;
  padding: 0.65rem 0.95rem;
  border-radius: 12px;
  background: #f4f8fd;
  border: 1px solid #d8e4f1;
}

body.pro-author-profile .pro-page-shell > div:first-of-type {
  border: 1px solid #d4e5ff;
  border-radius: 22px;
  padding: 1.25rem 1rem 1.45rem;
  background:
    radial-gradient(circle at 15% 0%, rgba(59, 130, 246, 0.12) 0, transparent 52%),
    linear-gradient(130deg, #e8f2ff 0%, #f3f8ff 56%, #fff2e2 100%);
}

body.pro-author-profile .pro-page-shell > div:first-of-type > div:first-child {
  width: 92px !important;
  height: 92px !important;
  margin: 0 auto 0.9rem !important;
  border-radius: 22px !important;
  border: 1px solid #f0c996 !important;
  font-size: 2.15rem !important;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, #ffe8c4 0%, #ffd4a0 56%, #ffc180 100%) !important;
  color: #5a390b !important;
  box-shadow: 0 10px 22px rgba(145, 88, 23, 0.18) !important;
}

body.pro-author-profile .pro-page-shell > section {
  border: 1px solid #d8e4f1;
  border-radius: 18px;
  padding: 1.15rem 1.1rem;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(14, 31, 53, 0.07);
}

body.pro-author-profile .pro-page-shell > section h2 {
  margin-top: 0.2rem;
}

body.pro-author-profile .pro-page-shell > section a[style*="display: block; padding: 1.5rem"] {
  border-radius: 14px !important;
  border: 1px solid #d7e4f2 !important;
  box-shadow: 0 10px 20px rgba(14, 31, 53, 0.07) !important;
}

body.pro-author-profile .pro-page-shell > section a[style*="display: block; padding: 1.5rem"]:hover {
  transform: translateY(-2px);
  transition: transform 160ms ease-out;
}

body.pro-author-profile .pro-page-shell > section[style*="background: linear-gradient(135deg, #667eea"] {
  background: linear-gradient(130deg, #e8f2ff 0%, #f4f8ff 56%, #fff2df 100%) !important;
  color: #102a43 !important;
}

body.pro-author-profile .pro-page-shell > section[style*="background: linear-gradient(135deg, #667eea"] h2,
body.pro-author-profile .pro-page-shell > section[style*="background: linear-gradient(135deg, #667eea"] p {
  color: #102a43 !important;
}

body.pro-author-profile .pro-page-shell > section[style*="background: linear-gradient(135deg, #667eea"] a {
  background: linear-gradient(120deg, var(--kv-pro-warm-start), var(--kv-pro-warm-end)) !important;
  color: var(--kv-pro-warm-text) !important;
  border: 1px solid var(--kv-pro-warm-border) !important;
}

body.pro-author-profile .pro-page-shell > nav:first-of-type a[style*="color: #667eea"],
body.pro-author-profile .pro-page-shell > nav:first-of-type a[style*="color:#667eea"] {
  color: #7b4b11 !important;
}

body.pro-author-profile .pro-page-shell > div:first-of-type p[style*="color: #667eea"],
body.pro-author-profile .pro-page-shell > div:first-of-type p[style*="color:#667eea"] {
  color: #8b5e1a !important;
}

body.pro-author-profile .pro-page-shell h3[style*="color: #667eea"],
body.pro-author-profile .pro-page-shell h3[style*="color:#667eea"] {
  color: #8b5e1a !important;
}

body.pro-author-profile .pro-page-shell span[style*="border: 2px solid #667eea"],
body.pro-author-profile .pro-page-shell span[style*="border: 2px solid #667eea;"],
body.pro-author-profile .pro-page-shell span[style*="border:2px solid #667eea"] {
  background: #fffaf1 !important;
  border-color: #efc68f !important;
  color: #6e4410 !important;
}

body.pro-author-profile .pro-page-shell a h3[style*="color: #667eea"],
body.pro-author-profile .pro-page-shell a h3[style*="color:#667eea"] {
  color: #845116 !important;
}

body.pro-author-profile footer {
  background: #1f2937 !important;
  color: #d1d5db !important;
}

body.pro-author-profile footer a {
  color: #f9c272 !important;
}

/* ------------------------------------------------------------------ */
/* Responsiveness */
/* ------------------------------------------------------------------ */

@media (max-width: 900px) {
  body.kvisa-subpage .pro-page-shell {
    margin: 1rem 0.75rem 1.7rem !important;
    border-radius: 18px !important;
    padding: 0.95rem !important;
  }

  body.kvisa-subpage nav {
    margin: 0.65rem 0.75rem 0 !important;
    padding: 0.55rem 0.7rem !important;
    border-radius: 12px !important;
  }

  body.kvisa-subpage nav .logo {
    font-size: 0.9rem !important;
  }

  body.kvisa-subpage nav .nav-links a,
  body.kvisa-subpage nav ul a {
    font-size: 0.82rem !important;
  }

  body.pro-vs-page .pro-page-shell > section,
  body.pro-vs-page .pro-page-shell > header,
  body.pro-author-profile .pro-page-shell > section {
    border-radius: 14px;
    padding: 0.95rem !important;
  }

  body.pro-author-profile .pro-page-shell > div:first-of-type > div:first-child {
    width: 82px !important;
    height: 82px !important;
    border-radius: 18px !important;
    font-size: 1.85rem !important;
  }

  body.pro-visa-matcher .form-step {
    border-radius: 14px;
    padding: 0.9rem;
  }
}
