/******************
 * Clean Merged User Custom CSS
 * ----------------
 * This file overrides default LimeSurvey styles.
 ******************/
 
   
/* HIDE PROGRESS BAR ON LIMESURVEY WELCOME SCREEN */
body:has(input[value="_WELCOME_SCREEN_"]) .ls-progress-top,

body:has(input[value="_WELCOME_SCREEN_"]) .progress-container,
body:has(input[value="_WELCOME_SCREEN_"]) #progressBar,
body:has(input[value="_WELCOME_SCREEN_"]) .progressbar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}
/* HIDE PROGRESS BAR ON STATISTICS PAGE */
.public-stats .progress-container,
.public-stats .progressbar,
.public-stats .ls-progress-top,
.public-stats .top-container,
.public-stats #progressBar,
body:has(.public-stats) .progress-container,
body:has(.public-stats) .progressbar,
body:has(.public-stats) .ls-progress-top,
body:has(.public-stats) .top-container,
body:has(.public-stats) #progressBar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}


/* Hide NEXT button specifically on welcome page */
#limesurvey input#lastgroupname[value="_WELCOME_SCREEN_"] ~ #ls-button-submit,
body:has(input[value="_WELCOME_SCREEN_"]) #ls-button-submit,
body:has(input[value="_WELCOME_SCREEN_"]) .ls-button-submit,
body:has(input[value="_WELCOME_SCREEN_"]) input[type="submit"] {
    display: none !important;
    visibility: hidden !important;
}

.navbar, .ls-nav-bar, #navbar {
    display: none !important;
}



/* Hide other unwanted elements */
 /*#javatbd782641X13X201 {display: none !important;}*/
 li.noanswer-item {display: none !important;}
.clearall-saveall-wrapper { display: none !important; }
.privacy { display: none !important; }
.index-wrapper { display: none !important; }

 /* ===============*
  * Root Variables *
  * ===============*/
  :root {
      --bg: #ffffff; /* Light blue background */
      --card-bg: #ffffff;
      --text: #2d3748;
      --text-secondary: #718096;
      --muted: #a0aec0;
      --primary: #38b2ac; /* Teal-500 */
      --primary-light: #81e6d9; /* Teal-200 */
      --primary-dark: #2c7a7b; /* Teal-600 */
      --secondary: #4fd1c7; /* Teal-300 */
      --accent: #ed64a6; /* Pink-400 - for active states */
      --success: #48bb78;
      --warning: #ed8936;
      --border: #e2e8f0;
      --border-light: #f7fafc;
      --shadow: 0 10px 25px rgba(45, 55, 72, 0.08);
      --shadow-sm: 0 1px 3px rgba(45, 55, 72, 0.1);
      --shadow-md: 0 4px 12px rgba(45, 55, 72, 0.15);
      --border-radius: 12px;
      --border-radius-sm: 8px;
      
      
        /* ADD THESE MISSING SHAPE COLORS */
    --shape-blue: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 197, 253, 0.08));
    --shape-pink: linear-gradient(135deg, rgba(237, 100, 166, 0.12), rgba(251, 182, 206, 0.08));
    --shape-green: rgba(16, 185, 129, 0.08);
    --shape-yellow: #FFFF00;
    --card: #ffffff;
  }
 
 /* ============= *
  * Global Styles *
  * ============= */
  
  body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
      background: var(--bg);
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      line-height: 1.6;
      color: var(--text);
      font-size:14px;
  }

  
    /* Header */
  header {
      background:#ffffff;
      padding: 6px 40px;
      border-bottom: 1px solid #e0e0e0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: fixed;  /* Sticky header */
      top: 0;left: 0;width: 100%;
      z-index: 1000;
   }
   header .logo {
       font-weight: bold;
       font-size: 18px;
       color: var(--primary);
       
   }

.taslaf_logo{ max-height: 59px;
  
            
            }

   main {
       flex: 1;
       display: flex;
       flex-direction: column;
       align-items:center;
       padding: 20px;
       margin-top: 80px;
       width: 100%;
       box-sizing: border-box;  
   }
   

   
   
   .wrapper{
       position:relative;
       flex:1;
       isolation:isolate;
       width:100%;
   }
   
   
   .outerframe.container-fluid {
    display: flex;          
    flex-direction: column;  
    min-height: 100vh;       
    box-sizing: border-box;
    padding-top:0px; padding-bottom:0px;
    background:var(--bg);
    width:100%;
    margin-top:0px;
    
   }
   
   /* Ensure content fills available space 
   #limesurvey {
       flex: 1;
       display: flex;
       flex-direction: column;
       min-height: calc(100vh - 140px);
       background: var(--background-blue);
}
*/

/* ============================ *
 * PROGRESS BAR - BRAIVE STYLE. *
 * ============================ */

/* Progress Bar Container */
.progress-container {
    background:var(--card-bg);
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top:80px;
    margin-bottom: 0px;
    padding: 0 20px;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}

.progressbar {
    counter-reset: step;
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    position: relative;
    padding: 20px 0;
    margin: 0;
    list-style: none;
}

/* Progress Steps */
.progressbar li {
    list-style-type: none;
    flex: 1;
    text-align: center;
    position: relative;
    color: var(--muted);
    font-size: 13px;
    Font-weight:500;
    transition: all 0.3s;
    z-index: 3;
    cursor:pointer;
}

/* Step Connectors */
.progressbar li::after {
    content: '';
    position: absolute;
    top:15%;             
    left: calc(50% + 10px);
    width: calc(100% - 20px);
    height: 3px;
    background: var(--border);
    z-index: 1;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Remove the connector after the last step */
.progressbar li:last-child::after {
    content: none;
}

/* Step circles */
.progressbar li::before {
    content: counter(step);
    counter-increment: step;
    width: 36px;
    height: 36px;
    line-height: 32px; /* Slightly less for better text centering */
    border: 2px solid var(--border);
    display: block;
    text-align: center;
    margin: 0 auto 12px auto;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    
}


/* Active Step - Pink/Accent Color */
.progressbar li.active {
    color: var(--accent);
}

.progressbar li.active::before {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow:  0 0 0 4px rgba(237, 100, 166, 0.15);
    animation: pulse-glow 2s infinite;
}

/* Completed step styling - ONLY show checkmark when actually completed */
.progressbar li.completed {
    color: var(--primary);
}

.progressbar li.completed::before {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    content: "✓";
    font-size: 18px;
    font-weight: bold;
    line-height: 30px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

/* Only completed steps get blue connectors to the next step */
.progressbar li.completed::after {
    background: var(--primary);
    box-shadow: 0 1px 6px rgba(59, 130, 246, 0.25);
}


/* Step labels */
.step-label {
    display: block;
    font-size: 13px;
    margin-top: 10px;
    font-weight: 600;
    line-height: 1.3;
    max-width: 90px;
    margin-left: auto;
    margin-right: auto;
    word-wrap: break-word;
    hyphens: auto;
    transition: all 0.3s ease;
}

.progressbar li.active .step-label {
   color: var(--accent);
    font-weight: 700;
    transform: translateY(-1px);
}

.progressbar li.completed .step-label {
   color: var(--primary);
    font-weight: 700;
}

/* Enhanced hover effects */
.progressbar li {
    cursor: pointer;
    user-select: none;
}

.progressbar li:hover {
    transform: translateY(-1px);
}

/* Simple hover effects */
.progressbar li:hover::before {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.progressbar li.active:hover::before {
    transform: scale(1.2);
    box-shadow: 
        0 0 0 6px rgba(59, 130, 246, 0.2),
        0 6px 20px rgba(59, 130, 246, 0.4);
}

.progressbar li.completed:hover::before {
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}






/* ============================
 * ENHANCED QUESTIONS STYLING
 * ============================ */
 
#javatbd782641X12X205 {
    align-items: center;
    margin:08px;
}

#javatbd782641X12X205 .othertext-label-checkox-container {
    margin-right: 0px;
}

#javatbd782641X12X205 .text-item {
    margin: 0;
}

#javatbd782641X12X205 .form-control {
    display: inline-block;
    width: 200px;
    vertical-align: middle;
}

 
/* question text styling */
 .ls-label-question, 
 .question-text span{
    font-family: inherit !important;
    font-size: 18px !important;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 0px;
    padding-bottom: 5px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    position: relative;
}



/* Optional: if your survey platform injects non-breaking space paragraphs */
.question-text p {
  margin-bottom: 1px;
}

 .question-container, 
 [id^="question"] {
     background: var(--card-bg);
     border-radius: var(--border-radius);
     padding: 40px;
     margin: 20px auto;
     box-shadow: var(--shadow);
     border: 1px solid var(--border);
     max-width: 950px;
     position: relative;
     overflow: hidden;
     transition: all 0.3s ease;
}

.question-container:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    
}

/* Question Title */
.question-title-container {
    display: block;
    width: 100%;
    margin-bottom: 0px;
}


/* Question Counter 
.question-title-container::before {
    content: "Question " counter(question-counter) " of 10";
    counter-increment: question-counter;
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
*/




/* Enhanced Help/Hints - Teal Theme */
.question-help-container {
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    display: block;
    /*margin: 16px 0 32px 0 !important;*/
    width: 100%;
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    border: none;
    box-shadow: var(--shadow-sm);
    position: relative;
}




.ls-questionhelp {
    font-family: inherit !important;
    font-size: 14px;
    color: var(--primary-dark);
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

.asterisk { display: none; }



 
/* ============================
 * SIDE BY SIDE BUTTON STYLE RADIO BUTTONS
 * ============================ */
 
 /* Fix for "Other (Specify)" option alignment */

#javatbd782641X12X205 {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin: 0;
}


#javatbd782641X12X205 .form-control {
    width: 150px; /* adjust as needed */
    margin-left: 6px;
    display: inline-block;
}

 
 .btn-check:checked + .ls-button-label {
    box-shadow: none !important;
}

.radio-item,
.radio-text-item {
    margin: 0;
}

.answer-item {
    margin: 0; /* Remove individual margins for side-by-side layout */
}

/* Force side-by-side layout */
.ls-answers.answers-list {
    display: flex !important;
    flex-direction: row !important; /* Changed to row for side-by-side */
    gap: 12px !important; /* Space between buttons */
    width: 100%;
}

/* Remove Bootstrap button group styles that might interfere */
.btn-group-justified {
    display: flex !important;
    flex-direction: row !important; /* Row layout */
    gap: 12px !important;
    width: 100%;
}

.btn-group .btn {
    position: relative;
    flex: 1 !important; /* Equal width buttons */
}

/* Main label styling - Button Style */
.ls-button-label {
    display: flex;
    align-items: center;
    justify-content: center; /* Center content */
    padding: 18px 24px; /* Slightly larger padding for button feel */
    font-size: 15px;
    font-weight: 600; /* Bolder for button style */
    color: var(--text);
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    user-select: none;
    text-align: center;
    flex: 1; /* Equal width */
}

/* Hover state 
.ls-button-label:hover {
    border-color: var(--primary-light);
    background: var(--border-light);
    transform: translateY(-2px); /* Slightly more pronounced hover */
    /*box-shadow: var(--shadow);
}
*/

/* YES button hover (value="Y") */
.btn-check[value="Y"] + .ls-button-label:hover {
  border-color: #10b981;      /* Tailwind green-500 */
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  transform: translateY(-2px);
}

/* NO button hover (value="N") */
.btn-check[value="N"] + .ls-button-label:hover {
  border-color: #ef4444;      /* Tailwind red-500 */
  background: rgba(239, 68, 68, 0.08); /* soft red background */
  color: #dc2626;             /* darker red text */
  transform: translateY(-2px);
}

/* Focus state for accessibility */
.btn-check:focus + .ls-button-label {
    outline: 3px solid rgba(56, 178, 172, 0.2);
    outline-offset: 2px;
}

/* GREEN STYLING FOR YES (value="Y") */
.btn-check[value="Y"]:checked + .ls-button-label {
    /*background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0.08));*/
    border-color: #10b981;
    color: #059669;
    font-weight: 700;
   /* box-shadow: 0 1px 1px rgba(16, 185, 129, 0.25);*/
    transform: translateY(-1px);
}

/* RED STYLING FOR NO (value="N") */
.btn-check[value="N"]:checked + .ls-button-label {
    border-color: #ef4444;                 /* red-500 */
    color: #dc2626;                        /* red-600 text */
    font-weight: 700;
    background: rgba(239, 68, 68, 0.08);   /* soft red background */
    box-shadow: 0 0 0 2px rgba(237, 100, 166, 0.25);
    transform: translateY(-1px);
}


/* Hide custom radio indicators for button style */
.ls-button-label::before {
    display: none !important;
}

/* Show and style the FontAwesome icons for button style */
.ls-button-label .ls-icon {
    display: inline-block !important;
    margin-right: 20px;
    font-size: 16px;
    width: 16px;
    text-align: center;
    transition: all 0.2s ease;
    opacity: 0.7;
}

/* GREEN STYLING FOR YES (value="Y") */
.btn-check[value="Y"]:checked + .ls-button-label {
    border-color: #10b981;
    color: #059669;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.08);   /* ✅ added */
    box-shadow: 0 0 0 2px rgba(16,185,129,0.25); /* ✅ added */
    transform: translateY(-1px);
}


/* RED STYLING FOR NO (value="N") */

.btn-check[value="N"]:checked + .ls-button-label {
    border-color: #ef4444;                 /* red-500 */
    color: #dc2626;                        /* red-600 text */
    font-weight: 700;
    background: rgba(239, 68, 68, 0.08);   /* soft red background */
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.4); /* ✅ brighter red glow */
    transform: translateY(-1px);
}



/* Active state animation */
.btn-check:checked + .ls-button-label {
    animation: buttonSelect 0.3s ease-out;
}

@keyframes buttonSelect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02) translateY(-2px);
    }
    100% {
        transform: translateY(-1px);
    }
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .ls-button-label {
        padding: 16px 20px;
        font-size: 14px;
    }
    
    .ls-answers.answers-list,
    .btn-group-justified {
        gap: 8px !important;
    }
    
    .ls-button-label .ls-icon {
        font-size: 14px;
        margin-right: 8px;
    }
}

/* Ensure container doesn't override */
.answer-container {
    width: 100%;
}

/* Text Inputs - keeping your existing styles */
.text-item input[type="text"],
.text-item textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--card-bg);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.text-item input[type="text"]:focus,
.text-item textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.15);
}

/* ============================
 * RADIO BUTTONS - BRAIVE STYLE
 * ============================ 
.radio-item,
.radio-text-item {
    margin: 0;
}

.answer-item {
    margin: 8px 0;
}

.ls-button-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.ls-button-label:hover {
    border-color: var(--primary-light);
    background: var(--border-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Selected Radio Button - Pink accent 
input[type="radio"]:checked + .ls-button-label,
.ls-button-label.selected {
    background: linear-gradient(135deg, rgba(237, 100, 166, 0.1), rgba(237, 100, 166, 0.05));
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

/* Radio button indicator 
.ls-button-label::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-radius: 50%;
    margin-right: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

input[type="radio"]:checked + .ls-button-label::before,
.ls-button-label.selected::before {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: inset 0 0 0 3px white;
}

/* Text Inputs 
.text-item input[type="text"],
.text-item textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--border);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--card-bg);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.text-item input[type="text"]:focus,
.text-item textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.15);
}

*/

/* ==============
 * SURVEY GROUPS - CONSISTENT FONTS
 * ============== */
.group-title,
.group-title *,
h1.group-title,
h2.group-title,
h3.group-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    color: var(--text) !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 3px solid var(--primary) !important;
    line-height: 1.3 !important;
}

.group-description.space-col,
.group-description.space-col *,
.group-description.space-col span,
.group-description.space-col span *,
.group-description.space-col p,
.group-description.space-col p *,
.group-description,
.group-description * {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    color: var(--text-secondary) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
}

/* Remove group container cards 
[id^="group-"],
.group-container,
.group-outer-container {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 20px 0 !important;
    margin: 32px 0 !important;
    border-radius: 0 !important;
    transition: none !important;
}
*/




/* ==============
 * SURVEY GROUPS
 * ============== 
.group-title {
    font-family: inherit;
    color: var(--text);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary);
}

.group-description.space-col,
.group-description.space-col span span,
.group-description.space-col p span span {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 2rem;
}


[id^="group-"] {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    width: 100%;
    box-shadow: var(--shadow);
    padding: 40px;
    margin: 32px 0;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

[id^="group-"]:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}



    
/* Action Buttons 
   .actions {
      display: flex;
      justify-content: space-between;
      margin-top: 20px;
    }

    .actions button {
      padding: 10px 20px;
      border: none;
      border-radius: 6px;
      background: #0070f3;
      color: #fff;
      cursor: pointer;
      font-size: 14px;
    }

    .actions button[disabled] {
      background: #ccc;
      cursor: not-allowed;
    }


*/




/* ===================================
 * LIMESURVEY STATISTICS BOOTSTRAP OVERRIDE
 * ===================================
 * Replace your previous statistics CSS with this
 */

/* FORCE OVERRIDE BOOTSTRAP CARD STYLES */
.public-stats .card.card-body.bg-light {
    background: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow) !important;
    margin-bottom: 40px !important;
    padding: 30px !important;
    height:100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.public-stats .card.card-body.bg-light:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md) !important;
}

/* FORCE BOOTSTRAP TABLE OVERRIDES */
.public-stats .table.table-striped.ls-statisticssummary,
.public-stats .table.table-striped.statisticstable {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
    background: var(--card-bg) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* OVERRIDE BOOTSTRAP STRIPED ROWS */
.public-stats .table-striped > tbody > tr:nth-of-type(odd) > td,
.public-stats .table-striped > tbody > tr:nth-of-type(odd) > th {
    background-color: var(--border-light) !important;
}

.public-stats .table-striped > tbody > tr:nth-of-type(even) > td,
.public-stats .table-striped > tbody > tr:nth-of-type(even) > th {
    background-color: var(--card-bg) !important;
}

/* BOOTSTRAP HEADER OVERRIDES */
.public-stats .table thead th.text-center {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 15px !important;
    text-align: center !important;
    border: none !important;
    font-size: 1rem !important;
}

/* Question title headers (first two rows) */
.public-stats .statisticstable thead tr:first-child th {
    background: var(--primary) !important;
    color: white !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

.public-stats .statisticstable thead tr:nth-child(2) th {
    background: var(--primary-light) !important;
    color: var(--primary-dark) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    font-style: italic !important;
}

/* Column headers (third row) */
.public-stats .statisticstable thead tr:nth-child(3) th.text-start,
.public-stats .statisticstable thead tr:nth-child(3) th.text-end {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: white !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

/* BOOTSTRAP BODY CELL OVERRIDES */
.public-stats .table tbody td.text-start,
.public-stats .table tbody th.text-start {
    text-align: left !important;
    padding: 12px 15px !important;
    font-weight: 500 !important;
    color: var(--text) !important;
    border-bottom: 1px solid var(--border) !important;
    font-size: 0.95rem !important;
}

.public-stats .table tbody td.text-end,
.public-stats .table tbody th.text-end {
    text-align: right !important;
    padding: 12px 15px !important;
    font-weight: 500 !important;
    color: var(--text) !important;
    border-bottom: 1px solid var(--border) !important;
    font-size: 0.95rem !important;
}

/* SUMMARY TABLE SPECIAL STYLING */
.public-stats .ls-statisticssummary tbody th {
    background: var(--border-light) !important;
    font-weight: 600 !important;
    color: var(--text) !important;
}

.public-stats .ls-statisticssummary tbody td {
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    color: var(--primary) !important;
}

/* ANSWER-SPECIFIC STYLING */
/* Yes/Positive answers - Green */
.public-stats .statisticstable tbody tr:has(td.text-start:contains("Yes")) {
    border-left: 4px solid var(--success) !important;
    background: rgba(72, 187, 120, 0.03) !important;
}

.public-stats .statisticstable tbody tr:has(td.text-start:contains("Very Easy")) {
    border-left: 4px solid var(--success) !important;
    background: rgba(72, 187, 120, 0.03) !important;
}

/* No/Negative answers - Red */
.public-stats .statisticstable tbody tr:has(td.text-start:contains("No (N)")) {
    border-left: 4px solid #ef4444 !important;
    background: rgba(239, 68, 68, 0.03) !important;
}

.public-stats .statisticstable tbody tr:has(td.text-start:contains("Very Difficult")) {
    border-left: 4px solid #ef4444 !important;
    background: rgba(239, 68, 68, 0.03) !important;
}

/* No answer - Gray */
.public-stats .statisticstable tbody tr:has(td.text-start:contains("No answer")) {
    border-left: 4px solid var(--muted) !important;
    background: rgba(160, 174, 192, 0.05) !important;
}

.public-stats .statisticstable tbody tr:has(td.text-start:contains("Not completed")) {
    border-left: 4px solid var(--muted) !important;
    background: rgba(160, 174, 192, 0.05) !important;
}

/* HOVER EFFECTS */
.public-stats .table tbody tr:hover {
    background: rgba(56, 178, 172, 0.08) !important;
    transform: translateX(2px);
    transition: all 0.2s ease;
}

/* CHART STYLING */
.public-stats table tbody tr td[id^="statzone_"] {
    padding: 30px 20px !important;
    background: var(--border-light) !important;
    text-align: center !important;
    border: none !important;
}

.public-stats table tbody tr td[id^="statzone_"] img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: var(--border-radius-sm) !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid var(--border) !important;
}

/* RESPONSIVE FIXES */
@media (max-width: 768px) {
    .public-stats .card.card-body.bg-light {
        padding: 20px !important;
        margin-bottom: 25px !important;
    }
    
    .public-stats .table thead th,
    .public-stats .table tbody td,
    .public-stats .table tbody th {
        padding: 8px 10px !important;
        font-size: 0.9rem !important;
    }
    
    .public-stats .statisticstable thead tr:first-child th {
        font-size: 1.1rem !important;
    }
    
    .public-stats .ls-statisticssummary tbody td {
        font-size: 1rem !important;
    }
}

/* CLEAN UP SPACING */
.public-stats .public-stats__content > br {
    display: none !important;
}

.public-stats .mb-5 {
    margin-bottom: 2rem !important;
}

/* Additional specificity for stubborn Bootstrap overrides */
.public-stats .container .public-stats__content .card.card-body.bg-light.mb-5 {
    background: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow) !important;
}

/* ===========================
   Landing Page & Home Page
   =========================== */
   
.wrapper:has(.hero) ~ * #main-row,
body:has(.hero) #main-row {
    margin-left: -120px;
    margin-top:0px;
    margin-right:0;
    margin-bottom:0;
}


/* Welcome screen specific styling */
body:has(.hero) .outerframe.container-fluid {
    margin-left: 20px;
}




   /* Brand Logo */
   .brand{font-weight:800; letter-spacing:-0.02em; font-size:clamp(18px, 2.3vw, 28px);}
   nav {display: flex; gap: clamp(12px, 3vw, 32px); align-items:center;}
   nav a {
       text-decoration:none;
       color:var(--text);
       opacity:0.8;
       font-weight:600;
       font-size:15px;
   }
   /* Button */
   .btn{
       border:0; cursor:pointer; font-weight:700; font-size:15px;
       padding:12px 20px; border-radius:999px;
       
   }
   .btn-primary {background:var(--primary); color:white; box-shadow: 0 8px 24px rgba(59,130,246,0.35); margin-left:100px; margin-top:25px;}
   
   
   /* Hero */
   .hero {
       
       display: grid; grid-template-columns: 
       1.1fr 1fr; gap: clamp(24px, 5vw, 56px); 
       align-items: center; 
       max-width: 1200px; 
       /*padding: clamp(16px, 4vw, 40px); */
       margin-top:20px;
       margin-right:150px;
       
   }

   .hero h1{
       font-size: clamp(22px, 5vw, 44px);
       line-height:1.05;
       margin:0 0 15px;
       Font-weight:700;
       margin-top:150px;
       letter-spacing: -0.02em;
   }
   
   .hero p {
       margin:0 0 10px; max-width:65ch; color:var(--textSecondary); 
       font-size: clamp(18px, 1.6vw, 18px);
       
   }
   
      .hero-visual {
    width: 150%;      /* adjust size of the box */
    height: 90%;
    margin-right:0px;
    
    overflow: hidden;  /* hides any overflow outside the box */
    border-radius: 5px; /* optional: rounded corners */
    display: flex;
    justify-content: center;
    align-items: center;
        position: relative; /* enable z-index control */
    z-index: -1; /* sends this entire container backward */
   background: transparent; /*optional: background color */
}

.hero-visual img {
    width: 100%;
    height: 100%;
    margin-bottom:0px;
    object-fit: cover; /* makes image fill box while keeping aspect ratio */
}
   
   ul.bullet-points {
       list-style: disc;
       text-align: left;
       max-width: 600px;
       margin:0 0 13px;
       /*margin: 1rem 0 0 0; keeps it tucked under <p> */
       font-size: 1rem;
       padding-left: 1.5rem;
       align-self: flex-start; /* ensures it aligns left within the flex hero */
       
   }
   



   
   .spacer { height: 00px; color:#fff0000; }
   
   /* Background decorative shapes */
   .shape-blue {
       position: fixed;
       inset: -15% -25% 45% 55%;
       background: var(--shape-blue);
       clip-path: polygon(70% 0%, 100% 0%, 100% 100%, 25% 100%);
       z-index: -3;
       opacity: 0.6;
       
   }
   .shape-pink {
       position: absolute;
       right: 28%;
       top: 48%;
       width: 320px;
       height: 320px;
       background: var(--shape-pink);
       border-radius: 46% 54% 62% 38% / 40% 38% 62% 60%;
       z-index: -2;
       opacity: 0.7;
       
   }
   .shape-green {
       position: absolute;
       left: 12%;
       bottom: 18%;
       width: 220px;
       height: 220px;
       background: var(--shape-green);
       border-radius: 50%;
       opacity: 0.5;
       z-index: -2;
       
   }
.shape-yellow {
    position: absolute;
    right: 8%;
    bottom: 8%;
    width: 160px;
    height: 160px;
    background: var(--shape-yellow);
    border-radius: 38% 62% 40% 60% / 62% 38% 62% 38%;
    opacity: 0.7; /* Increased opacity */
    z-index: -2;
}
   /* Small floating outline shapes */
   .float { position: absolute; z-index: -1; opacity: 0.35; }
   .sq { width: 14px; height: 14px; border: 2px solid rgba(31,37,68,0.15); border-radius: 4px; }
   .circ { width: 14px; height: 14px; border: 2px solid rgba(31,37,68,0.15); border-radius: 50%; }
   .tri {
       width: 0; height: 0;
       border-left: 10px solid transparent;
       border-right: 10px solid transparent;
       border-bottom: 16px solid rgba(31,37,68,0.15);
       
   }
   
   /* Floating shapes */
   .shape {
       position: absolute;
       border-radius: 50%;
       opacity: 0.15;
       animation: float 18s infinite ease-in-out;
       z-index: 0;
       
   }
   .shape.small { width: 2vw; height: 2vw; background: #007bff; }
   .shape.medium { width: 4vw; height: 4vw; background: #ff5722; }
   .shape.large { width: 6vw; height: 6vw; background: #4caf50; }
   
   @keyframes float {
       0% { transform: translateY(0) translateX(0); }
       50% { transform: translateY(-25px) translateX(20px); }
       100% { transform: translateY(0) translateX(0); }
       
   }
   
   
   /* Shape placements with different delays */
   .shape1 { top: 10%; left: 15%; animation-delay: 0s; }
   .shape2 { top: 25%; right: 10%; animation-delay: 5s; }
   .shape3 { bottom: 20%; left: 20%; animation-delay: 10s; }
   .shape4 { bottom: 15%; right: 25%; animation-delay: 15s; }
   .shape5 { top: 50%; left: 50%; animation-delay: 7s; }
   .shape6 { top: 70%; right: 40%; animation-delay: 12s; }
   .shape7 { bottom: 40%; left: 60%; animation-delay: 18s; }


/* =======*
 * Footer *
 * =======*/

.footer {
    position:fixed;
    bottom:0; left:0; width:100%;
    background: #ffffff;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.9rem;
    color: var(--black);
    border-top: 1px solid #eee;
}
.footer span.blue {
    color: var(--primary);
    font-weight: bold;
}

/* ===========================
 * RESPONSIVE DESIGN
 * =========================== */
@media (max-width: 768px) {
    .outerframe.container-fluid {
        padding-top: 60px;
        padding-bottom: 80px;
    }
    
    header {
        padding: 15px 20px;
    }
    
    .question-container,
    [id^="question"] {
        padding: 24px 20px;
        margin: 16px;
    }
    
    .ls-label-question {
        font-size: 16px !important;
    }
    
    .progress-container {
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    .progressbar {
        padding: 20px 0;
    }
    
    .progressbar li::before {
        width: 28px;
        height: 28px;
        line-height: 24px;
        font-size: 11px;
    }
    
    .progressbar li::after {
        top: 13px;
        left: calc(50% + 18px);
        width: calc(100% - 36px);
    }
    
    .step-label {
        font-size: 11px;
        max-width: 60px;
    }
    
    .ls-button-label {
        font-size: 13px;
        padding: 14px 16px;
    }
}

/* ===========================
 * ANIMATIONS & MICRO-INTERACTIONS
 * =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-container,
[id^="question"] {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading state for forms */
.form-loading #ls-button-submit,
.form-loading input[type="submit"] {
    opacity: 0.7;
    transform: scale(0.98);
    pointer-events: none;
}

/* Focus styles for accessibility */
button:focus,
input:focus,
.ls-button-label:focus {
    outline: 3px solid rgba(56, 178, 172, 0.5);
    outline-offset: 2px;
}

/* Counter for questions */
body {
    counter-reset: question-counter;
}

/* Hide default radio buttons */
input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

