/* Job Qualification Funnel - Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --primary-light: #e8f0fe;
  --bg: #ffffff;
  --surface: #f8faff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --success: #10b981;
  --shadow: 0 4px 14px rgba(26, 115, 232, 0.08);
  --shadow-hover: 0 8px 24px rgba(26, 115, 232, 0.18);
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px 20px;
}
.logo {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.logo span { color: var(--text); }
.step-badge {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
}

/* Ad slot */
.ad-slot {
  background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 10px, #e5edf7 10px, #e5edf7 20px);
  border: 1px dashed #c7d2e2;
  color: #64748b;
  font-size: 0.78rem;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  margin: 14px 0;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.ad-slot.banner { min-height: 90px; }

/* Card */
.card {
  background: var(--bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.question {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Options */
.options { display: grid; gap: 10px; }
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  width: 100%;
  transition: all 0.2s ease;
  color: var(--text);
}
.option:hover, .option:focus-visible {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  outline: none;
}
.option .bullet {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  transition: all 0.2s;
}
.option:hover .bullet { border-color: var(--primary); }
.option.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}
.option.selected .bullet {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: inset 0 0 0 4px var(--bg);
}

/* Progress */
.progress-wrap { margin: 22px 0 10px; }
.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.progress-bar {
  height: 10px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #4285f4);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(.4,0,.2,1);
  width: 0%;
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.96);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}
.loading-overlay.active { display: flex; animation: fadeIn 0.3s ease; }
.spinner {
  width: 56px; height: 56px;
  border: 5px solid var(--primary-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
  margin-top: 18px;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 1rem;
}
.loading-sub {
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Final page */
.final-card { text-align: center; padding: 40px 24px; }
.success-icon {
  width: 80px; height: 80px;
  background: var(--success);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.4rem;
  margin-bottom: 20px;
  animation: pop 0.5s cubic-bezier(.18,.89,.32,1.28);
}
@keyframes pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
.final-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.final-desc {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1rem;
}
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), #4285f4);
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 32px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(26, 115, 232, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(26, 115, 232, 0.45);
}

/* Mobile */
@media (max-width: 600px) {
  .container { padding: 12px; }
  .card { padding: 18px; border-radius: 14px; }
  .question { font-size: 1.15rem; }
  .option { padding: 14px; font-size: 0.95rem; }
  .final-title { font-size: 1.4rem; }
  .site-header { padding: 8px 4px 14px; }
}
