/* Birth Labs Blue, Orange & White Design System */
:root {
  /* Blues */
  --blue-navy: #0A2540;
  --blue-deep: #0D3B66;
  --blue-primary: #1D4ED8;
  --blue-vibrant: #2563EB;
  --blue-hover: #1E40AF;
  --blue-light: #EFF6FF;
  --blue-subtle: #DBEAFE;
  
  /* Oranges */
  --orange-primary: #FF6B00;
  --orange-deep: #E05D00;
  --orange-hover: #C85000;
  --orange-light: #FFF4EC;
  --orange-subtle: #FFE8D6;

  /* System Mappings for Compatibility */
  --teal: var(--blue-navy);
  --teal-deep: var(--blue-navy);
  --teal-light: var(--blue-primary);
  --teal-subtle: var(--blue-light);
  
  --mustard: var(--orange-primary);
  --mustard-deep: var(--orange-deep);
  --mustard-light: var(--orange-light);
  
  --brick: #DC2626;
  --brick-deep: #991B1B;
  --brick-light: #FEF2F2;

  /* Whites & Light Slate Neutrals */
  --white: #FFFFFF;
  --slate-bg: #F8FAFC;
  --cream: #F8FAFC;
  --cream-2: #F1F5F9;
  --cream-card: #FFFFFF;
  
  /* Typography & Ink */
  --ink: #0F172A;
  --ink-soft: #334155;
  --ink-muted: #64748B;
  
  /* Borders & Shadows */
  --border: rgba(15, 23, 42, 0.12);
  --border-focus: var(--blue-primary);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.10);
  --shadow-lg: 0 16px 40px rgba(10, 37, 64, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--slate-bg);
  color: var(--ink);
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: 'Francois One', sans-serif;
  font-weight: 400;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
  color: var(--blue-navy);
}

p {
  margin: 0 0 16px 0;
}

/* Container */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Sticky Top Bar */
.assessment-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(10, 37, 64, 0.05);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-navy);
}

.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--orange-primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.2);
}

/* Timer Display */
.timer-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-navy);
  color: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-family: 'Archivo', monospace;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.timer-icon {
  font-size: 16px;
}

.timer-pill.warning {
  background: var(--orange-deep);
  animation: pulseWarning 1.8s infinite;
}

.timer-pill.danger {
  background: var(--brick);
  animation: pulseDanger 1s infinite;
}

@keyframes pulseWarning {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes pulseDanger {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.violation-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--brick-light);
  color: var(--brick-deep);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Card Styling */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.hero-card {
  margin-top: 36px;
  border-left: 6px solid var(--orange-primary);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--blue-light) 100%);
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%231D4ED8' stroke-width='2.2' opacity='0.05'%3E%3Cpath d='M20 10 L50 35 L20 60' stroke-width='2.5'/%3E%3Cpath d='M15 65 L55 65 L55 105 Z' fill='%23FF6B00' fill-opacity='0.04' stroke-width='2'/%3E%3Cpath d='M35 110 L55 85' stroke-width='2.2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
}

.section-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--cream-2);
}

.section-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange-primary);
  display: inline-block;
  margin-bottom: 6px;
}

.section-points {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-primary);
  background: var(--blue-light);
  padding: 3px 12px;
  border-radius: 999px;
  margin-left: 10px;
  border: 1px solid var(--blue-subtle);
}

/* Question Items */
.question-block {
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px dashed var(--border);
}

.question-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.question-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
}

.question-number {
  color: var(--orange-primary);
  font-weight: 700;
  flex-shrink: 0;
}

.question-content {
  flex-grow: 1;
}

.question-stimulus {
  background: var(--slate-bg);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 14.5px;
  color: var(--ink-soft);
  white-space: pre-line;
  border: 1px solid var(--border);
}

/* Options (Radio selection) */
.options-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 18px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
  user-select: none;
}

.option-label:hover {
  border-color: var(--blue-primary);
  background: var(--blue-light);
}

.option-label input[type="radio"] {
  margin-top: 3px;
  accent-color: var(--orange-primary);
  width: 17px;
  height: 17px;
  cursor: pointer;
}

.option-label.selected {
  border-color: var(--blue-primary);
  background: var(--blue-light);
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.08);
}

/* Form inputs & Textareas */
.input-text, .input-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-text:focus, .input-textarea:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18);
}

.input-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.word-counter-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-muted);
}

.word-counter-wrap.limit-exceeded {
  color: var(--brick);
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: 'Archivo', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: var(--blue-navy);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--blue-primary);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  background: #94a3b8;
  cursor: not-allowed;
  transform: none;
}

.btn-mustard, .btn-orange {
  background: var(--orange-primary);
  color: #ffffff;
  font-weight: 700;
}

.btn-mustard:hover, .btn-orange:hover {
  background: var(--orange-deep);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-secondary, .btn-blue {
  background: var(--blue-primary);
  color: #ffffff;
}

.btn-secondary:hover, .btn-blue:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--blue-primary);
  color: var(--blue-primary);
}

.btn-outline:hover {
  background: var(--blue-primary);
  color: #ffffff;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.80);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-card {
  background: var(--white);
  max-width: 520px;
  width: 100%;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  text-align: center;
  animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: inline-block;
}

.modal-icon.warning-icon {
  color: var(--brick);
}

/* Block quote & information helper */
.info-callout {
  background: var(--blue-light);
  border-left: 4px solid var(--orange-primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 16px 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.info-callout strong {
  color: var(--blue-navy);
}

/* Footer note */
.site-footer {
  text-align: center;
  padding: 40px 0 60px 0;
  font-size: 13.5px;
  color: var(--ink-muted);
}
