/* ============================================
   VISA FINDER QUIZ STYLES
   Mobile-first, using CSS variables
   ============================================ */

.visa-finder-container {
  max-width: 32rem;
  margin: 0 auto;
}

/* Loading state */
.vf-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.vf-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--color-gray-200);
  border-top-color: var(--color-primary-600);
  border-radius: 50%;
  animation: vf-spin 0.8s linear infinite;
}

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

/* ============================================
   LANDING VIEW
   ============================================ */

.vf-landing {
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid var(--color-primary-100);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .vf-landing {
    padding: 2.5rem;
    border-radius: 2rem;
  }
}

.vf-icon-container {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1rem;
  background: var(--color-primary-900);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 14px rgba(12, 41, 170, 0.25);
}

@media (min-width: 640px) {
  .vf-icon-container {
    width: 5rem;
    height: 5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
  }
}

.vf-icon {
  font-size: 1.75rem;
}

@media (min-width: 640px) {
  .vf-icon {
    font-size: 2rem;
  }
}

.vf-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.025em;
}

@media (min-width: 640px) {
  .vf-title {
    font-size: 1.875rem;
    margin-bottom: 1rem;
  }
}

.vf-subtitle {
  font-size: 1rem;
  color: var(--color-gray-500);
  line-height: 1.6;
  margin: 0 0 2rem 0;
  max-width: 280px;
}

@media (min-width: 640px) {
  .vf-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
  }
}

/* ============================================
   PRIMARY BUTTON
   ============================================ */

.vf-btn-primary {
  width: 100%;
  background: var(--color-primary-900);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(12, 41, 170, 0.35);
}

.vf-btn-primary:hover {
  background: var(--color-primary-950);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12, 41, 170, 0.45);
}

.vf-btn-primary:active {
  transform: scale(0.98);
}

/* ============================================
   QUIZ VIEW
   ============================================ */

.vf-quiz {
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid var(--color-gray-200);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.vf-progress-container {
  height: 6px;
  width: 100%;
  background: var(--color-gray-100);
}

.vf-progress-bar {
  height: 100%;
  background: var(--color-primary-900);
  transition: width 0.3s ease;
}

.vf-quiz-content {
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .vf-quiz-content {
    padding: 2rem;
  }
}

.vf-back-btn {
  background: none;
  border: none;
  color: var(--color-gray-400);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1rem;
  transition: color 0.2s ease;
}

.vf-back-btn:hover {
  color: var(--color-primary-600);
}

.vf-question {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gray-800);
  margin: 0 0 1.5rem 0;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .vf-question {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
}

.vf-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vf-option {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 1rem;
  background: #fff;
  border: 2px solid var(--color-gray-100);
  border-radius: 0.75rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.vf-option:hover {
  border-color: var(--color-primary-900);
  background: var(--color-primary-50);
}

.vf-option:active {
  transform: scale(0.98);
}

.vf-option-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
  flex-shrink: 0;
}

.vf-option-label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-gray-700);
}

@media (min-width: 640px) {
  .vf-option-label {
    font-size: 1rem;
  }
}

/* ============================================
   RESULT VIEW
   ============================================ */

.vf-result {
  background: #fff;
  border-radius: 1.5rem;
  border: 1px solid var(--color-primary-100);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 1.5rem;
  animation: vf-fade-in 0.3s ease;
}

@media (min-width: 640px) {
  .vf-result {
    padding: 2rem;
    border-radius: 2rem;
  }
}

@keyframes vf-fade-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.vf-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.vf-result-badge {
  display: inline-block;
  background: var(--color-success);
  background: #dcfce7;
  color: #15803d;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
}

.vf-restart-btn {
  background: none;
  border: none;
  color: var(--color-gray-400);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

.vf-restart-btn:hover {
  color: var(--color-primary-600);
}

.vf-result-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-gray-900);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

@media (min-width: 640px) {
  .vf-result-title {
    font-size: 1.875rem;
  }
}

.vf-result-tagline {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary-900);
  margin: 0 0 1.5rem 0;
}

@media (min-width: 640px) {
  .vf-result-tagline {
    font-size: 1rem;
  }
}

/* Info Cards */
.vf-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.vf-info-card {
  padding: 1rem;
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: 1rem;
}

.vf-info-card-full {
  grid-column: span 2;
}

.vf-info-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-400);
  margin-bottom: 0.25rem;
}

.vf-info-value {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-gray-800);
}

/* Work Status */
.vf-work-status {
  display: flex;
  align-items: center;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.vf-work-icon {
  font-size: 1rem;
  margin-right: 0.5rem;
}

.vf-work-allowed {
  color: #15803d;
}

.vf-work-forbidden {
  color: #dc2626;
}

/* Obligations */
.vf-obligations {
  margin-bottom: 1.5rem;
}

.vf-obligations-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-900);
  margin: 0 0 0.75rem 0;
}

.vf-obligations-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.vf-obligations-list li {
  display: flex;
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--color-gray-600);
  line-height: 1.4;
}

.vf-bullet {
  color: var(--color-primary-900);
  font-weight: 700;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

/* Note */
.vf-note {
  background: var(--color-primary-50);
  border: 1px solid var(--color-primary-100);
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-primary-900);
  line-height: 1.5;
}

.vf-note strong {
  font-weight: 700;
}

/* Source */
.vf-source {
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.vf-source-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-500);
  margin-bottom: 0.25rem;
}

.vf-source p {
  font-size: 0.75rem;
  color: var(--color-gray-600);
  margin: 0;
}

.vf-source-link {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-primary-900);
  text-decoration: underline;
  margin-top: 0.375rem;
  transition: color 0.2s ease;
}

.vf-source-link:hover {
  color: var(--color-primary-700);
}

/* CTA Button */
.vf-cta-btn {
  margin-bottom: 1rem;
}

/* Powered by */
.vf-powered {
  text-align: center;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-400);
  margin: 0;
}
