/* ================================
   ANTAH ENERGY COGNITION INDEX
   Master Stylesheet v2.0 (World-Class Palette)
   
   CORE PALETTE:
   - Primary: #26366B (Deep Navy)
   - Accent:  #FFD700 (Gold)
   - Text:    #222329 (Soft Black, use with opacity)
   - BG:      #F1F5F9 (Cool Off-White Blue)
   - Card BG: #FFFFFF (White)

   COMPLEMENTARY:
   - Secondary Accent: #64748B (Blue-Gray)
   - Warm BG:          #FFF4EA (Peach-Cream)
   - Deep BG:          #1B254B (Night Navy)
   - Muted Gold:       #FFC94D
   - Divider:          #E5E7EB (Soft Gray)
   - Focus:            #4F7DF3 (Focus Blue)
   - Error:            #C53030
   - Success:          #2E7D32
   ================================ */

/* ================================
   PART 1: ASSESSMENT FORM STYLES
   ================================ */

.antah-form,
.antah-dash,
body .antah-form,
body.page .antah-form {
  max-width: 820px !important;
  margin: 20px auto !important;
  padding: 0 !important;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
  color: #222329D9 !important; /* Soft Black */
  font-size: 18px !important;
  background: transparent !important; /* Form itself is transparent, page BG shows */
}

/* Default styling for all form sections */
.form-header,
.antah-introduction,
.context-selection,
.pillar-divider,
.form-actions,
#antah-result {
  padding: 20px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB; /* Divider Gray */
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* INSTRUCTIONS BOX - Clean & Noticeable */
.instructions-box {
  padding: 30px !important;
  background: #FFF9E6 !important; /* Soft cream yellow */
  border: 3px solid #FFD700 !important; /* Gold border */
  border-radius: 12px !important;
  margin-bottom: 30px !important;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15) !important;
}

/* H3 heading - Clean and clear */
.instructions-box h3,
body .antah-form .instructions-box h3,
body.page .antah-form .instructions-box h3 {
  color: #26366B !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  margin: 0 0 20px 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 3px solid #FFD700 !important;
  text-align: left !important;
}

/* Instruction paragraphs - bigger and easier to read */
.instructions-box p,
body .antah-form .instructions-box p,
body.page .antah-form .instructions-box p {
  font-size: 18px !important;
  line-height: 1.7 !important;
  color: #222329 !important;
  margin-bottom: 16px !important;
  font-weight: 500 !important;
}

/* First paragraph - subtle highlight */
.instructions-box p:first-of-type {
  background: rgba(255, 215, 0, 0.12) !important;
  padding: 14px 18px !important;
  border-radius: 8px !important;
  border-left: 4px solid #FFD700 !important;
  font-weight: 600 !important;
}

/* List styling - cleaner bullets */
.instructions-box ul,
body .antah-form .instructions-box ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 20px 0 !important;
}

.instructions-box ul li,
body .antah-form .instructions-box ul li {
  font-size: 19px !important;
  font-weight: 600 !important;
  color: #26366B !important;
  margin-bottom: 14px !important;
  padding: 14px 18px 14px 60px !important;
  background: #FFFFFF !important;
  border-radius: 10px !important;
  border: 2px solid #FFD700 !important;
  position: relative !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

/* Simple number emojis */
.instructions-box ul li:nth-child(1)::before {
  content: '0️⃣';
  position: absolute;
  left: 18px;
  font-size: 28px;
  top: 50%;
  transform: translateY(-50%);
}

.instructions-box ul li:nth-child(2)::before {
  content: '5️⃣';
  position: absolute;
  left: 18px;
  font-size: 28px;
  top: 50%;
  transform: translateY(-50%);
}

.instructions-box ul li:nth-child(3)::before {
  content: '🔟';
  position: absolute;
  left: 18px;
  font-size: 28px;
  top: 50%;
  transform: translateY(-50%);
}

/* Make italic text stand out subtly */
.instructions-box p em,
.instructions-box p i {
  font-style: italic !important;
  color: #26366B !important;
  font-weight: 600 !important;
}

/* Mobile: Instructions Box */
@media (max-width: 768px) {
  .instructions-box {
    padding: 24px 18px !important;
  }
  
  .instructions-box h3 {
    font-size: 24px !important;
  }
  
  .instructions-box p {
    font-size: 17px !important;
  }
  
  .instructions-box ul li {
    font-size: 17px !important;
    padding: 12px 16px 12px 54px !important;
  }
  
  .instructions-box ul li::before {
    font-size: 24px !important;
    left: 16px !important;
  }
}

/* ================================
   RESPONSIVE ENHANCEMENTS
   (Tablet + Mobile Only)
   ================================ */

/* ---------- TABLET (768px–1024px) ---------- */
@media (min-width: 768px) and (max-width: 1024px) {

  .antah-form,
  .antah-dash,
  body .antah-form,
  body.page .antah-form {
    max-width: 90% !important;      /* Slightly wider feel on tablet */
    margin: 20px auto !important;
    padding: 0 16px !important;     /* Gentle side breathing room */
    font-size: 17px !important;     /* Just a touch smaller than desktop */
    line-height: 1.6 !important;
  }

  .form-header,
  .antah-introduction,
  .context-selection,
  .instructions-box,
  .pillar-divider,
  .form-actions,
  #antah-result {
    padding: 18px !important;       /* Slightly tighter than desktop */
    margin-bottom: 20px !important;
    border-radius: 12px;            /* Keep the premium feel */
  }

  /* Typography refinements for tablet */
  .antah-form h1,
  .antah-dash h1 {
    font-size: 1.9rem !important;
    line-height: 1.3 !important;
  }

  .antah-form h2,
  .antah-dash h2 {
    font-size: 1.6rem !important;
    line-height: 1.35 !important;
  }

  .antah-form h3,
  .antah-dash h3 {
    font-size: 1.3rem !important;
    line-height: 1.4 !important;
  }

  .antah-form p,
  .antah-form li {
    line-height: 1.6 !important;
  }

  /* Actions area – balanced on tablet */
  .form-actions {
    display: flex;
    flex-direction: row;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
  }

  .form-actions button,
  .form-actions .button,
  .form-actions input[type="submit"] {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

/* ---------- MOBILE (≤ 767px) ---------- */
@media (max-width: 767px) {

  .antah-form,
  .antah-dash,
  body .antah-form,
  body.page .antah-form {
    max-width: 100% !important;
    margin: 12px auto !important;
    padding: 0 12px !important;     /* Safe side padding */
    font-size: 16px !important;     /* More readable on small screens */
    line-height: 1.7 !important;
  }

  .form-header,
  .antah-introduction,
  .context-selection,
  .instructions-box,
  .pillar-divider,
  .form-actions,
  #antah-result {
    padding: 16px !important;       /* Tighter but still premium */
    margin-bottom: 16px !important;
    border-radius: 10px;
  }

  /* Headings tuned for mobile – strong but not overwhelming */
  .antah-form h1,
  .antah-dash h1 {
    font-size: 1.6rem !important;   /* ~25–26px depending on base */
    line-height: 1.3 !important;
  }

  .antah-form h2,
  .antah-dash h2 {
    font-size: 1.4rem !important;
    line-height: 1.35 !important;
  }

  .antah-form h3,
  .antah-dash h3 {
    font-size: 1.2rem !important;
    line-height: 1.4 !important;
  }

  .antah-form p,
  .antah-form li {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
  }

  /* Make blocks feel clean and not crowded */
  .pillar-divider h2,
  .pillar-divider h3 {
    margin-top: 0;
    margin-bottom: 8px;
  }

  .instructions-box p:last-child,
  .antah-introduction p:last-child {
    margin-bottom: 0;
  }

  /* Buttons & action area – thumb-friendly */
  .form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    text-align: center;
  }

  .form-actions button,
  .form-actions .button,
  .form-actions input[type="submit"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }
}

/* ================================
   ENHANCED HEADER STYLING
   ================================ */

.form-header {
  background: linear-gradient(135deg, #26366B 0%, #1B254B 100%) !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 50px 40px !important;
  margin-bottom: 32px !important;
  box-shadow: 0 8px 24px rgba(38, 54, 107, 0.15) !important;
  text-align: center !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Decorative accent line */
.form-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, #FFD700 0%, #FFC94D 100%);
  border-radius: 0 0 4px 4px;
}

/* Main heading - FORCE white color with maximum specificity */
.form-header h2,
body .antah-form .form-header h2,
body.page .antah-form .form-header h2,
.antah-form .form-header h2 {
  color: #FFFFFF !important;
  font-size: 42px !important;
  font-weight: 800 !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  letter-spacing: -0.5px !important;
  line-height: 1.2 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  /* Remove any Astra theme overrides */
  background: none !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

/* Subtitle */
.form-header .form-subtitle {
  font-size: 16px !important;
  color: rgba(255, 255, 255, 0.95) !important;
  margin-bottom: 0 !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
  background: rgba(255, 215, 0, 0.15) !important;
  padding: 12px 24px !important;
  border-radius: 24px !important;
  display: inline-block !important;
  border: 1px solid rgba(255, 215, 0, 0.3) !important;
}

/* Separator bars in subtitle */
.form-header .form-subtitle::before,
.form-header .form-subtitle::after {
  content: '|';
  color: #FFD700;
  margin: 0 10px;
  font-weight: 300;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .form-header {
    padding: 40px 24px !important;
  }
  
  .form-header h2 {
    font-size: 32px !important;
  }
  
  .form-header .form-subtitle {
    font-size: 14px !important;
    padding: 10px 20px !important;
  }
}

@media (max-width: 480px) {
  .form-header h2 {
    font-size: 28px !important;
  }
  
  .form-header .form-subtitle {
    font-size: 13px !important;
    line-height: 1.4 !important;
  }
}

.pillar-divider {
  background: #F1F5F9; /* Cool BG */
  border-color: #E5E7EB;
  margin: 32px 0 16px 0;
}

.pillar-divider h3 {
  color: #26366B; /* Primary */
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.antah-item {
  margin: 16px 0;
  padding: 20px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB; /* Divider Gray */
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.antah-item:hover {
  background: #FFFFFF;
  border-color: #FFD700; /* Accent */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.antah-item label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: #26366B; /* Primary */
  line-height: 1.5;
  font-size: 1.4rem;
}

.context-selection label {
  font-weight: 600;
  color: #26366B; /* Primary */
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.antah-select,
body .antah-form .antah-select,
body.page .antah-form select.antah-select {
  width: 100% !important;
  padding: 12px 16px !important;
  border: 1px solid #E5E7EB !important; /* Divider Gray */
  border-radius: 8px !important;
  background: #FFFFFF !important;
  font-size: 18px !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%2364748B' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E") !important;
  background-position: right 16px center !important;
  background-repeat: no-repeat !important;
  background-size: 1em !important;
}

.antah-select:focus,
body .antah-form .antah-select:focus {
  border-color: #4F7DF3 !important; /* Focus Blue */
  box-shadow: 0 0 0 3px rgba(79, 125, 243, 0.2) !important;
  outline: none !important;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.antah-slider,
body .antah-form input[type="range"].antah-slider {
  flex-grow: 1 !important;
  width: auto !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  height: 8px !important;
  background: #E5E7EB !important; /* Divider Gray */
  border-radius: 4px !important;
  outline: none !important;
}

.antah-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #26366b; /* Accent */
  border: 2px solid #26366b !important;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background 0.2s, box-shadow 0.2s;
}

.antah-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFD700; /* Accent */
  border: 2px solid #FFFFFF;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background 0.2s, box-shadow 0.2s;
}

.antah-slider:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.3);
}

.antah-slider:focus::-moz-range-thumb {
  box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.3);
}


.antah-val {
  display: inline-block;
  min-width: 36px;
  padding: 4px 8px;
  background: #F1F5F9;
  border-radius: 6px;
  font-weight: 700;
  color: #26366B; /* Primary */
  font-size: 16px;
  text-align: center;
}

.antah-submit-btn,
#antah-submit,
button#antah-submit,
body .antah-form button#antah-submit {
  background: #FFD700 !important; /* Accent */
  color: #26366B !important; /* Primary */
  border: none !important;
  padding: 16px 32px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

.antah-submit-btn:hover,
#antah-submit:hover {
  background: #FFC94D !important; /* Muted Gold */
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4) !important;
}

.antah-submit-btn:disabled,
#antah-submit:disabled {
  background: #E5E7EB !important;
  color: #64748B !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.antah-summary {
  background: #FFF4EA; /* Warm BG */
  border: 1px solid #FFD700; /* Accent */
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(34, 35, 41, 0.05);
  margin-top: 30px;
}

.antah-summary p {
  color: #222329D9;
}

.antah-summary strong {
  color: #26366B;
}

/* ============================================
   RESPONSIVE ENHANCEMENTS – HEADER & CONTROLS
   ============================================ */

/* ---------- TABLET (768px–1024px) ---------- */
@media (min-width: 768px) and (max-width: 1024px) {

  .form-header {
    padding: 40px 32px !important;
    margin-bottom: 28px !important;
    border-radius: 16px !important;
  }

  .form-header::before {
    width: 100px;
    height: 4px;
  }

  .form-header h2,
  body .antah-form .form-header h2,
  body.page .antah-form .form-header h2,
  .antah-form .form-header h2 {
    font-size: 36px !important;
    line-height: 1.25 !important;
    margin-bottom: 14px !important;
  }

  .form-header h2::after {
    font-size: 18px;
  }

  .form-header .form-subtitle {
    font-size: 15px !important;
    padding: 10px 22px !important;
    line-height: 1.5 !important;
  }

  .pillar-divider {
    margin: 28px 0 14px 0;
  }

  .pillar-divider h3 {
    font-size: 19px;
  }

  .antah-item {
    margin: 14px 0;
    padding: 18px;
  }

  .antah-item label {
    font-size: 1.25rem;
    line-height: 1.5;
    margin-bottom: 10px;
  }

  .context-selection label {
    font-size: 18px;
  }

  .antah-select,
  body .antah-form .antah-select,
  body.page .antah-form select.antah-select {
    font-size: 16px !important;
    padding: 12px 14px !important;
  }

  .slider-container {
    gap: 12px;
  }

  .antah-val {
    font-size: 15px;
    min-width: 34px;
  }

  .antah-submit-btn,
  #antah-submit,
  button#antah-submit,
  body .antah-form button#antah-submit {
    padding: 14px 28px !important;
    font-size: 17px !important;
  }

  .antah-summary {
    padding: 20px;
    margin-top: 24px;
  }
}

/* ---------- MOBILE (≤ 767px) ---------- */
@media (max-width: 767px) {

  .form-header {
    padding: 32px 20px !important;
    margin-bottom: 24px !important;
    border-radius: 14px !important;
  }

  .form-header::before {
    width: 80px;
    height: 3px;
  }

  .form-header h2,
  body .antah-form .form-header h2,
  body.page .antah-form .form-header h2,
  .antah-form .form-header h2 {
    font-size: 30px !important;
    line-height: 1.25 !important;
    margin-bottom: 12px !important;
  }

  .form-header h2::after {
    font-size: 16px;
  }

  .form-header .form-subtitle {
    font-size: 14px !important;
    padding: 10px 18px !important;
    line-height: 1.5 !important;
    display: inline-block !important;
    max-width: 100%;
    text-align: center;
    white-space: normal;
  }

  .pillar-divider {
    margin: 24px 0 12px 0;
  }

  .pillar-divider h3 {
    font-size: 18px;
  }

  .antah-item {
    margin: 12px 0;
    padding: 16px;
  }

  .antah-item label {
    font-size: 1.1rem;
    line-height: 1.55;
    margin-bottom: 10px;
  }

  .context-selection label {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .antah-select,
  body .antah-form .antah-select,
  body.page .antah-form select.antah-select {
    font-size: 16px !important;
    padding: 10px 14px !important;
    background-position: right 12px center !important;
  }

  .slider-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .antah-val {
    align-self: flex-start;
    margin-top: 2px;
    font-size: 15px;
  }

  .antah-submit-btn,
  #antah-submit,
  button#antah-submit,
  body .antah-form button#antah-submit {
    padding: 14px 20px !important;
    font-size: 16px !important;
    border-radius: 10px !important;
  }

  .antah-summary {
    padding: 18px;
    margin-top: 20px;
  }
}

/* ---------- EXTRA SMALL MOBILE (≤ 480px) ---------- */
@media (max-width: 480px) {

  .form-header {
    padding: 28px 16px !important;
  }

  .form-header h2,
  body .antah-form .form-header h2,
  body.page .antah-form .form-header h2,
  .antah-form .form-header h2 {
    font-size: 26px !important;
  }

  .form-header .form-subtitle {
    font-size: 13px !important;
    padding: 8px 14px !important;
  }

  .antah-item {
    padding: 14px;
  }

  .antah-item label {
    font-size: 1rem;
  }

  .antah-summary {
    padding: 16px;
  }
}

/* ================================
   SECTION HEADINGS - Force consistent styling
   Override ALL theme and page builder styles
   ================================ */

/* All H2 headings in form area */
body .antah-form h2,
body.page .antah-form h2,
.antah-form h2,
body .antah-introduction h2,
body.page .antah-introduction h2,
.antah-introduction h2 {
  color: #26366B !important;
  font-size: 28px !important;
  font-weight: 600 !important; /* Changed from 700 to 600 for lighter look */
  line-height: 1.3 !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  letter-spacing: -0.3px !important;
  font-family: inherit !important;
}

/* All H3 headings in form area */
body .antah-form h3,
body.page .antah-form h3,
.antah-form h3,
body .antah-introduction h3,
body.page .antah-introduction h3,
.antah-introduction h3 {
  color: #26366B !important;
  font-size: 22px !important;
  font-weight: 600 !important; /* Consistent with H2 */
  line-height: 1.4 !important;
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  letter-spacing: -0.2px !important;
  font-family: inherit !important;
}

/* Paragraph text - make lighter and more readable */
.antah-form p,
.antah-introduction p,
body .antah-form p,
body .antah-introduction p {
  color: #4A5568 !important; /* Softer gray instead of pure black */
  font-size: 16px !important;
  font-weight: 400 !important; /* Normal weight, not bold */
  line-height: 1.6 !important;
  margin-bottom: 12px !important;
  font-family: inherit !important;
}

/* Strong/bold text within paragraphs */
.antah-form p strong,
.antah-introduction p strong,
body .antah-form p strong,
body .antah-introduction p strong {
  font-weight: 600 !important; /* Semi-bold instead of extra bold */
  color: #2D3748 !important;
}

/* ============================================
   RESPONSIVE TYPOGRAPHY – HEADINGS & PARAGRAPHS
   ============================================ */

/* ---------- TABLET (768px–1024px) ---------- */
@media (min-width: 768px) and (max-width: 1024px) {

  /* H2 – slightly smaller, same hierarchy */
  body .antah-form h2,
  body.page .antah-form h2,
  .antah-form h2,
  body .antah-introduction h2,
  body.page .antah-introduction h2,
  .antah-introduction h2 {
    font-size: 24px !important;
    line-height: 1.35 !important;
    margin-bottom: 14px !important;
  }

  /* H3 – scale proportionally */
  body .antah-form h3,
  body.page .antah-form h3,
  .antah-form h3,
  body .antah-introduction h3,
  body.page .antah-introduction h3,
  .antah-introduction h3 {
    font-size: 20px !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
  }

  /* Body text – slightly lighter density */
  .antah-form p,
  .antah-introduction p,
  body .antah-form p,
  body .antah-introduction p {
    font-size: 15px !important;
    line-height: 1.7 !important;
    margin-bottom: 10px !important;
  }
}

/* ---------- MOBILE (≤ 767px) ---------- */
@media (max-width: 767px) {

  /* H2 – strong but not overpowering on mobile */
  body .antah-form h2,
  body.page .antah-form h2,
  .antah-form h2,
  body .antah-introduction h2,
  body.page .antah-introduction h2,
  .antah-introduction h2 {
    font-size: 22px !important;
    line-height: 1.35 !important;
    margin-bottom: 12px !important;
  }

  /* H3 – clear subheading hierarchy */
  body .antah-form h3,
  body.page .antah-form h3,
  .antah-form h3,
  body .antah-introduction h3,
  body.page .antah-introduction h3,
  .antah-introduction h3 {
    font-size: 18px !important;
    line-height: 1.4 !important;
    margin-bottom: 8px !important;
  }

  /* Paragraphs – very readable on small screens */
  .antah-form p,
  .antah-introduction p,
  body .antah-form p,
  body .antah-introduction p {
    font-size: 14px !important;
    line-height: 1.8 !important;
    margin-bottom: 10px !important;
  }
}

/* ---------- EXTRA SMALL MOBILE (≤ 480px) ---------- */
@media (max-width: 480px) {

  body .antah-form h2,
  body.page .antah-form h2,
  .antah-form h2,
  body .antah-introduction h2,
  body.page .antah-introduction h2,
  .antah-introduction h2 {
    font-size: 20px !important;
  }

  body .antah-form h3,
  body.page .antah-form h3,
  .antah-form h3,
  body .antah-introduction h3,
  body.page .antah-introduction h3,
  .antah-introduction h3 {
    font-size: 17px !important;
  }

  .antah-form p,
  .antah-introduction p,
  body .antah-form p,
  body .antah-introduction p {
    font-size: 14px !important;
  }
}

/* ================================
   ASSESSMENT PROGRESS BAR (Responsive Fix)
   ================================ */

/* 1. DESKTOP & LAPTOP SETTINGS (> 1024px) */
:root {
  /* Control height for Laptops/Desktops here */
  --antah-header-offset: 103px; 
}

#antah-progress-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: var(--antah-header-offset);
  z-index: 99;
  
  /* Styling */
  background: #26366B; 
  padding: 12px 20px;
  border: none;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 20px rgba(38, 54, 107, 0.25);
  margin-bottom: 24px;
  transition: top 0.3s ease;
}

/* WP Admin Bar Fix for Desktop */
body.admin-bar #antah-progress-sticky {
  top: calc(32px + var(--antah-header-offset));
}

.antah-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 100%;
}

.antah-progress-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  white-space: nowrap;
  opacity: 0.9;
}

.antah-progress-track {
  flex-grow: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

#antah-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FFD700 0%, #FFC94D 100%);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

#antah-progress-text {
  font-size: 15px;
  font-weight: 700;
  color: #FFD700;
  min-width: 45px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.antah-item.answered {
  border-left: 4px solid #26366B;
  background: #FAFCFF;
}


/* ================================
   2. TABLET OPTIMIZATION (769px - 1024px)
   ================================ */

@media screen and (min-width: 769px) and (max-width: 1024px) {
  :root {
    /* CHANGE THIS value to fix the overlap on TABLETS */
    --antah-header-offset: 143px; 
  }
  
  /* Often tablets have the larger Admin Bar (46px) like mobile */
  body.admin-bar #antah-progress-sticky {
    top: calc(46px + var(--antah-header-offset));
  }
}


/* ================================
   3. MOBILE OPTIMIZATION (< 768px)
   ================================ */

@media screen and (max-width: 768px) {
  :root {
    /* Control height for Mobile Phones here */
    --antah-header-offset: -47px;
  }
  
  /* Mobile Admin Bar Fix */
  body.admin-bar #antah-progress-sticky {
    top: calc(46px + var(--antah-header-offset));
  }

  /* Compact Mobile Styling */
  #antah-progress-sticky { 
    padding: 10px 16px;
    border-radius: 0;
    margin: 0 -12px 20px -12px;
    width: calc(100% + 24px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  .antah-progress-label { display: none; } 
  .antah-progress-track { height: 8px; }
  #antah-progress-text { font-size: 14px; color: #FFFFFF; }
}