/* gap.css – AI Governance Gap Analysis (Updated to match AI Leadership Readiness Evaluator) */

/* CSS Variables matching AI Leadership theme with custom accent color */
:root {
  --bg: #ffffff;
  --panel: #f8fafc;
  --panel-2: #f1f5f9;
  --text: #1e293b;
  --muted: #64748b;
  --brand: #3b82f6;
  --brand-2: #2563eb;
  --accent: #47C1E5;  /* Custom cyan color: RGB 71, 193, 229 */
  --success: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --card: #ffffff;
  --hover: #f1f5f9;
  --border: #e2e8f0;
  --shadow: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --radius: 16px;
}

/* Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: #fff;
  background-image:
    linear-gradient(to right, rgba(0,0,0,0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.1) 1px, transparent 1px);
  background-size: 0.5in 0.5in;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Container for progress bar and main content */
.assessment-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: #f5f7fa;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* Progress Container */
.progress-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 16px 24px;
  margin: 0;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}

.dimension-badge {
  background: var(--brand);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.progress-bar {
  height: 8px;
  background: var(--panel-2);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 4px;
  transition: width 0.4s ease;
  width: 0%;
}

/* Main Content */
.main-content {
  margin: 0;
  padding: 0;
}

/* Screens */
.screen {
  display: none;
  animation: fadeIn 0.3s ease;
}

.screen.active {
  display: block;
}

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

/* Question Card */
.question-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
  overflow: hidden;
  transition: transform 0.3s ease;
  margin-top: 10px;
}

.card-content {
  padding: 48px 40px;
}

/* Welcome Screen */
.welcome-logo {
  width: 200px;
  height: auto;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.welcome-text {
  text-align: center;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

/* Email Capture Form Styles */
.email-form {
  margin-top: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.email-input-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.email-input-group label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.email-input-group input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.email-input-group input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.email-input-group input::placeholder {
  color: var(--muted);
}

.error-message {
  display: block;
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  min-height: 1.25rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.error-message.visible {
  opacity: 1;
}

/* Buttons */
.btn {
  appearance: none;
  border: 2px solid var(--brand);
  border-radius: 10px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow);
  background: var(--brand);
  color: white;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  background: var(--brand-2);
  border-color: var(--brand-2);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,.15);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  background: var(--panel);
  border-color: var(--border);
  color: var(--muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--panel);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--hover);
  border-color: var(--muted);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
  width: 100%;
}

.btn-primary {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  text-align: center;
}

/* Question Screen */
.dimension-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--panel);
}

.dimension-header i {
  font-size: 28px;
  color: var(--brand);
}

.dimension-header span {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.question-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 16px;
  text-align: left;
}

.promptline {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* Answer Options */
.answer-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.answer-btn {
  background: var(--panel);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

.answer-btn:hover {
  background: var(--hover);
  border-color: var(--brand);
  transform: translateX(4px);
}

.answer-btn.selected {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.answer-number {
  width: 36px;
  height: 36px;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

.answer-btn.selected .answer-number {
  background: white;
  border-color: white;
  color: var(--brand);
}

.answer-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.answer-btn.selected .answer-label {
  color: white;
}

/* Navigation Buttons */
.navigation-buttons {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

/* Footer panel */
.footer-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pill {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

/* Results Screen */
.results-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--success), var(--brand));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.results-icon i {
  font-size: 48px;
  color: white;
}

.results-summary {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(139, 92, 246, 0.05));
  border-radius: var(--radius);
  margin: 20px 0;
}

.results-summary h2 {
  color: var(--text);
  font-size: 28px;
  margin: 0 0 12px;
  font-weight: 700;
}

.results-summary p {
  color: var(--text);
  font-size: 16px;
  margin: 8px 0;
}

/* Muted text */
.muted {
  color: var(--muted);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .assessment-container {
    padding: 16px;
  }

  .progress-container {
    padding: 12px 16px;
  }

  .card-content {
    padding: 32px 24px;
  }

  .question-text {
    font-size: 18px;
  }

  .answer-btn {
    padding: 16px 20px;
  }

  .navigation-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .welcome-logo {
    width: 150px;
  }

  .footer-panel {
    flex-direction: column;
    gap: 12px;
  }

  .footer-panel .btn {
    margin-left: 0 !important;
  }
}

/* SVG Charts for Results */
.results-chart {
  margin: 20px 0;
}

/* Donut chart text */
.donut-text {
  fill: var(--text);
  font-size: 20px;
  font-weight: 800;
}

/* Bar chart styling */
.bar-label {
  fill: var(--text);
  font-size: 13px;
}

.bar-track {
  fill: var(--panel-2);
}

.bar-fill {
  fill: url(#gaBarGrad);
}

.bar-percent {
  fill: var(--muted);
  font-size: 13px;
}

/* Results card specific styling */
#qcard .card-content {
  padding: 24px;
}

/* Success message styling for email confirmation */
.success-message {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.success-message .check-icon {
  font-size: 48px;
  color: var(--success);
  margin-bottom: 12px;
}

.success-message h3 {
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.success-message p {
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

.success-message .email-display {
  color: var(--brand);
  font-weight: 700;
  font-size: 18px;
  margin-top: 8px;
}

/* Instructions box */
.instructions-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.instructions-box h4 {
  color: var(--text);
  font-size: 18px;
  margin-bottom: 12px;
}

.instructions-box ul {
  text-align: left;
  color: var(--muted);
  margin: 0;
  padding-left: 20px;
}

.instructions-box li {
  margin-bottom: 8px;
}
