/* Document Checklist Tool — scoped to .checklist-page; matches Visawizer theme */

.checklist-page {
  --cl-ink: #071032;
  --cl-muted: #64748b;
  --cl-accent: var(--theme-color-3, #66003f);
  --cl-green: var(--theme-color, #85bf18);
  --cl-gold: #d7a642;
  --cl-border: rgba(15, 23, 42, 0.1);
  --cl-light: #f5f7fb;
  --cl-radius: 20px;
  --cl-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
  --cl-shadow-hover: 0 18px 45px rgba(9, 32, 79, 0.12);
  color: var(--cl-ink);
  background: #ffffff;
}

/* ── Hero ─────────────────────────────────────────────── */
.checklist-page .cl-hero {
  padding: clamp(70px, 8vw, 110px) 0;
  background-image:
    linear-gradient(rgba(7, 16, 25, 0.72), rgba(7, 16, 25, 0.72)),
    url('../imgs/study/study-visas/hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  text-align: center;
}

.checklist-page .cl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.82rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.checklist-page .cl-eyebrow::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--cl-gold);
}

.checklist-page .cl-hero h1 {
  color: #ffffff;
  font-size: clamp(2.35rem, 4.8vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 16px;
}

.checklist-page .cl-hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.72;
  font-size: 1.05rem;
}

/* ── Main content area ────────────────────────────────── */
.checklist-page .cl-main {
  padding: clamp(64px, 7vw, 98px) 0;
  background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 72%);
}

.checklist-page .cl-main .container {
  max-width: 1080px;
}

.checklist-page .cl-section-head {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.checklist-page .cl-section-label {
  display: block;
  width: 100%;
  padding: 14px 24px;
  margin-bottom: 22px;
  background: var(--cl-accent);
  color: #ffffff;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 10px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--cl-accent) 28%, transparent);
}

.checklist-page .cl-section-head h2 {
  color: var(--cl-ink);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin-bottom: 0;
}

.checklist-page .cl-section-head .b-line {
  margin: 18px auto 0;
}

/* ── Info callout ─────────────────────────────────────── */
.checklist-page .cl-info-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  margin-bottom: clamp(28px, 4vw, 40px);
  border-radius: var(--cl-radius);
  border: 1px solid color-mix(in srgb, var(--cl-accent) 18%, var(--cl-border));
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--cl-accent) 6%, #ffffff) 0%,
    #ffffff 100%
  );
  box-shadow: var(--cl-shadow);
}

.checklist-page .cl-info-box .cl-info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--cl-accent) 14%, #ffffff);
  color: var(--cl-accent);
  font-size: 1.1rem;
}

.checklist-page .cl-info-box strong {
  color: var(--cl-ink);
  display: block;
  margin-bottom: 4px;
}

.checklist-page .cl-info-box p {
  color: var(--cl-muted);
  margin: 0;
  line-height: 1.65;
  font-size: 0.95rem;
}

/* ── Visa type cards ──────────────────────────────────── */
.checklist-page .cl-visa-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.checklist-page .cl-visa-card {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius);
  padding: clamp(22px, 4vw, 32px);
  box-shadow: var(--cl-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.checklist-page .cl-visa-card-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

@media (min-width: 768px) {
  .checklist-page .cl-visa-card-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
  }
}

.checklist-page .cl-visa-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--cl-accent),
    color-mix(in srgb, var(--cl-accent) 65%, #1a0d14)
  );
}

.checklist-page .cl-visa-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cl-shadow-hover);
  border-color: color-mix(in srgb, var(--cl-accent) 22%, var(--cl-border));
  color: inherit;
}

.checklist-page .cl-visa-card-top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.checklist-page .cl-visa-card-copy {
  flex: 1;
  min-width: 0;
}

.checklist-page .cl-visa-code {
  flex-shrink: 0;
  min-width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--cl-accent) 12%, #ffffff);
  color: var(--cl-accent);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.checklist-page .cl-visa-card h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  color: var(--cl-ink);
  margin: 0 0 8px;
  line-height: 1.25;
}

.checklist-page .cl-visa-card p {
  color: var(--cl-muted);
  margin: 0;
  line-height: 1.65;
  font-size: 1rem;
}

.checklist-page .cl-visa-card .cl-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #ffffff;
  background: var(--cl-accent);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 22px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.checklist-page .cl-visa-card .cl-card-link i {
  transition: transform 0.2s ease;
}

.checklist-page .cl-visa-card:hover .cl-card-link {
  background: color-mix(in srgb, var(--cl-accent) 88%, #000);
  transform: translateX(4px);
}

.checklist-page .cl-visa-card:hover .cl-card-link i {
  transform: translateX(4px);
}

.checklist-page .cl-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border-radius: var(--cl-radius);
  border: 1px dashed color-mix(in srgb, var(--cl-accent) 30%, var(--cl-border));
  background: #ffffff;
  text-align: center;
  color: var(--cl-muted);
}

.checklist-page .cl-footnote {
  text-align: center;
  color: var(--cl-muted);
  font-size: 0.9rem;
  margin: clamp(32px, 4vw, 44px) 0 0;
  line-height: 1.65;
}

.checklist-page .cl-footnote a {
  color: var(--cl-accent);
  font-weight: 700;
  text-decoration: none;
}

.checklist-page .cl-footnote a:hover {
  text-decoration: underline;
}

/* ── Wizard & form panels ─────────────────────────────── */
.checklist-page .cl-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cl-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.checklist-page .cl-back-link:hover {
  color: var(--cl-accent);
}

.checklist-page .cl-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cl-accent) 10%, #ffffff);
  color: var(--cl-accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.checklist-page .cl-panel {
  background: #ffffff;
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius);
  box-shadow: var(--cl-shadow);
  padding: clamp(22px, 4vw, 30px);
  margin-bottom: 20px;
}

.checklist-page .cl-panel-title {
  font-size: 1.15rem;
  color: var(--cl-ink);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cl-border);
}

.checklist-page .cl-panel .form-label {
  color: var(--cl-ink);
  font-weight: 700;
}

.checklist-page .cl-panel .form-select,
.checklist-page .cl-panel .form-control {
  border-radius: 10px;
  border-color: var(--cl-border);
  min-height: 46px;
}

.checklist-page .cl-panel .form-select:focus,
.checklist-page .cl-panel .form-control:focus {
  border-color: color-mix(in srgb, var(--cl-accent) 40%, #cbd5e1);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cl-accent) 12%, transparent);
}

.checklist-page .cl-disclaimer {
  border-left: 4px solid var(--cl-gold);
  background: #fffbeb;
  border-radius: 0 var(--cl-radius) var(--cl-radius) 0;
  padding: 18px 22px;
  margin-bottom: 24px;
  color: #92400e;
  font-size: 0.92rem;
  line-height: 1.65;
}

.checklist-page .cl-disclaimer a {
  color: var(--cl-accent);
  font-weight: 700;
}

.checklist-page .cl-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.checklist-page .cl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 13px 26px;
  border-radius: 7px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}

.checklist-page .cl-btn-primary {
  background: var(--cl-accent);
  color: #ffffff;
  border-color: var(--cl-accent);
}

.checklist-page .cl-btn-primary:hover {
  background: color-mix(in srgb, var(--cl-accent) 88%, #000);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(102, 0, 63, 0.22);
}

.checklist-page .cl-btn-outline {
  background: transparent;
  color: var(--cl-ink);
  border-color: var(--cl-border);
}

.checklist-page .cl-btn-outline:hover {
  border-color: var(--cl-accent);
  color: var(--cl-accent);
}

/* ── Result page ──────────────────────────────────────── */
.checklist-page .cl-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.checklist-page .cl-stat {
  text-align: center;
  padding: 20px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--cl-border);
  box-shadow: var(--cl-shadow);
}

.checklist-page .cl-stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.checklist-page .cl-stat-label {
  font-size: 0.82rem;
  color: var(--cl-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.checklist-page .cl-stat--total .cl-stat-value { color: var(--cl-ink); }
.checklist-page .cl-stat--required .cl-stat-value { color: #dc2626; }
.checklist-page .cl-stat--conditional .cl-stat-value { color: #d97706; }

.checklist-page .cl-progress-wrap {
  margin-bottom: 24px;
}

.checklist-page .cl-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.checklist-page .cl-progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cl-green), color-mix(in srgb, var(--cl-green) 75%, #166534));
  transition: width 0.3s ease;
}

.checklist-page .cl-share-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--cl-border);
  background: #ffffff;
  margin-bottom: 24px;
}

.checklist-page .cl-category-title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cl-muted);
  margin: 28px 0 12px;
}

.checklist-page .cl-doc-card {
  background: #ffffff;
  border: 1px solid var(--cl-border);
  border-radius: 16px;
  box-shadow: var(--cl-shadow);
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: opacity 0.2s ease;
}

.checklist-page .cl-doc-card.checked-item {
  opacity: 0.72;
}

.checklist-page .cl-doc-card .badge-required {
  background: #fee2e2;
  color: #b91c1c;
}

.checklist-page .cl-doc-card .badge-conditional {
  background: #fef3c7;
  color: #b45309;
}

.checklist-page .cl-doc-card .badge-optional {
  background: #f1f5f9;
  color: #64748b;
}

.checklist-page .cl-doc-card .cl-guidance-toggle {
  color: var(--cl-accent);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
}

@media (max-width: 767px) {
  .checklist-page .cl-visa-card .cl-card-link {
    width: 100%;
    justify-content: center;
  }

  .checklist-page .cl-stats {
    grid-template-columns: 1fr;
  }

  .checklist-page .cl-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .checklist-page .cl-btn {
    width: 100%;
  }
}

@media print {
  .checklist-page .cl-hero,
  .header-section-1,
  .footer-section,
  .cl-actions,
  .cl-share-box {
    display: none !important;
  }
}
