/*
    Circle Java - Modern Light Survey Theme
    Comprehensive override for theme_apple.css
    Compatible with Awesome Bootstrap Checkbox system
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
    --cj: #6C63FF;
    --cj-hover: #5a52e0;
    --cj-light: rgba(108,99,255,0.06);
    --cj-light2: rgba(108,99,255,0.10);
    --cj-border-accent: rgba(108,99,255,0.30);
    --cj-bg: #f0f2f5;
    --cj-card: #ffffff;
    --cj-border: #e2e8f0;
    --cj-border-light: #f1f5f9;
    --cj-text: #1e293b;
    --cj-text2: #475569;
    --cj-text3: #64748b;
    --cj-text4: #94a3b8;
    --cj-radius: 16px;
    --cj-radius-sm: 10px;
    --cj-radius-xs: 6px;
    --cj-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    --cj-shadow-md: 0 4px 14px rgba(0,0,0,0.07);
    --cj-shadow-lg: 0 8px 28px rgba(0,0,0,0.10);
    --cj-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --cj-green: #22c55e;
    --cj-red: #ef4444;
    --cj-yellow: #f59e0b;
}

/* ============================================================
   BODY & BASE TYPOGRAPHY
   ============================================================ */
body.fruity_twentythree {
    font-family: var(--cj-font) !important;
    background-color: var(--cj-bg) !important;
    color: var(--cj-text) !important;
    font-size: 0.94rem !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    padding-top: 56px !important;
    padding-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

body.fruity_twentythree > article {
    flex: 1 !important;
}

/* Override all IBM Plex fonts */
body.fruity_twentythree,
body.fruity_twentythree *:not(.ri-more-fill):not(.ri-asterisk):not([class^="ri-"]):not([class*=" ri-"]) {
    font-family: var(--cj-font) !important;
}

body.fruity_twentythree .large-heading {
    font-family: var(--cj-font) !important;
    font-size: 1.65rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: var(--cj-text) !important;
}

body.fruity_twentythree .form-heading {
    font-family: var(--cj-font) !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
    color: var(--cj-text3) !important;
}

body.fruity_twentythree h1, body.fruity_twentythree .h1 {
    font-family: var(--cj-font) !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: var(--cj-text) !important;
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
}

body.fruity_twentythree h2, body.fruity_twentythree .h2 {
    font-family: var(--cj-font) !important;
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: var(--cj-text) !important;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
}

body.fruity_twentythree h3, body.fruity_twentythree .h3 {
    font-family: var(--cj-font) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--cj-text) !important;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
}

body.fruity_twentythree label {
    font-family: var(--cj-font) !important;
    font-weight: 400 !important;
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
    color: var(--cj-text) !important;
}

body.fruity_twentythree a {
    color: var(--cj) !important;
    text-decoration: none !important;
}
body.fruity_twentythree a:hover {
    color: var(--cj-hover) !important;
    text-decoration: none !important;
}

body.fruity_twentythree .text-muted {
    font-size: 0.85rem !important;
    color: var(--cj-text4) !important;
}

body.fruity_twentythree .text-info {
    color: var(--cj) !important;
}

/* ============================================================
   NAVBAR (fixed-top)
   ============================================================ */
body.fruity_twentythree #survey-nav.navbar.fixed-top {
    background: var(--cj-card) !important;
    border-bottom: 1px solid var(--cj-border) !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
    padding: 8px 0 !important;
    min-height: 48px !important;
    z-index: 1030 !important;
}

body.fruity_twentythree #navbar-toggler.navbar-toggler {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: var(--cj-bg) !important;
    border: 1px solid var(--cj-border) !important;
    color: var(--cj-text3) !important;
    font-size: 1.1rem !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    padding: 0 !important;
}

body.fruity_twentythree #navbar-toggler.navbar-toggler:hover {
    background: var(--cj-light) !important;
    color: var(--cj) !important;
    border-color: var(--cj-border-accent) !important;
}

body.fruity_twentythree #main-dropdown.dropdown-menu {
    border: 1px solid var(--cj-border) !important;
    border-radius: 12px !important;
    box-shadow: var(--cj-shadow-lg) !important;
    padding: 6px !important;
    background: var(--cj-card) !important;
    margin-top: 6px !important;
    min-width: 220px !important;
}

body.fruity_twentythree #main-dropdown .dropdown-header {
    color: var(--cj-text4) !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    padding: 10px 12px 4px !important;
}

body.fruity_twentythree #main-dropdown li a,
body.fruity_twentythree #main-dropdown .nav-link {
    border-radius: 8px !important;
    padding: 9px 12px !important;
    font-size: 0.88rem !important;
    color: var(--cj-text) !important;
    transition: all 0.15s !important;
    text-decoration: none !important;
    font-weight: 400 !important;
}

body.fruity_twentythree #main-dropdown li a:hover,
body.fruity_twentythree #main-dropdown .nav-link:hover {
    background: var(--cj-light) !important;
    color: var(--cj) !important;
}

/* Question Index dropdown */
body.fruity_twentythree #index-dropdown.dropdown-menu {
    border: 1px solid var(--cj-border) !important;
    border-radius: 12px !important;
    box-shadow: var(--cj-shadow-lg) !important;
    padding: 6px !important;
    background: var(--cj-card) !important;
}

body.fruity_twentythree #index-dropdown .dropdown-item {
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    transition: all 0.15s !important;
}

body.fruity_twentythree #index-dropdown .dropdown-item:hover {
    background: var(--cj-light) !important;
    color: var(--cj) !important;
}

body.fruity_twentythree .index-item-unanswer .dropdown-item {
    color: var(--cj-yellow) !important;
}

body.fruity_twentythree .index-item-error .dropdown-item {
    color: var(--cj-red) !important;
}

body.fruity_twentythree .index-item-current .dropdown-item {
    background: var(--cj-light) !important;
    color: var(--cj) !important;
    font-weight: 600 !important;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
body.fruity_twentythree .top-container {
    background: var(--cj-card) !important;
    border-bottom: 1px solid var(--cj-border) !important;
    padding: 14px 0 !important;
    margin-top: 0 !important;
}

body.fruity_twentythree .progress {
    height: 6px !important;
    background: #e8eaed !important;
    border-radius: 100px !important;
    overflow: hidden !important;
    box-shadow: none !important;
    font-size: 0 !important;
}

body.fruity_twentythree .progress .progress-bar {
    background: linear-gradient(90deg, var(--cj), #8b5cf6) !important;
    border-radius: 100px !important;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.fruity_twentythree .ls-progress-container {
    cursor: default !important;
}

/* ============================================================
   OUTER FRAME & LAYOUT
   ============================================================ */
body.fruity_twentythree #outerframeContainer.outerframe {
    padding-top: 24px !important;
    padding-bottom: 40px !important;
}

body.fruity_twentythree .space-col {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body.fruity_twentythree #main-col {
    margin-top: 0 !important;
}

body.fruity_twentythree #main-row {
    margin: 0 !important;
}

body.fruity_twentythree .col-centered {
    float: none !important;
    margin: 0 auto !important;
}

/* ============================================================
   WELCOME PAGE
   ============================================================ */
body.fruity_twentythree #welcome-container {
    text-align: center !important;
    padding: 52px 36px !important;
    background: var(--cj-card) !important;
    border: 1px solid var(--cj-border) !important;
    border-radius: var(--cj-radius) !important;
    box-shadow: var(--cj-shadow) !important;
    margin-bottom: 16px !important;
    max-width: 100% !important;
    animation: cjSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.fruity_twentythree #welcome-container .survey-name.large-heading {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: var(--cj-text) !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
    font-family: var(--cj-font) !important;
    letter-spacing: -0.02em !important;
}

body.fruity_twentythree #welcome-container .survey-description.form-heading,
body.fruity_twentythree #welcome-container .survey-welcome.form-heading {
    font-size: 0.95rem !important;
    color: var(--cj-text3) !important;
    line-height: 1.7 !important;
    max-width: 520px !important;
    margin: 0 auto 8px !important;
}

body.fruity_twentythree #welcome-container .number-of-questions {
    margin-top: 20px !important;
}

body.fruity_twentythree #welcome-container .question-count-text {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: var(--cj-light) !important;
    color: var(--cj) !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 7px 20px !important;
    border-radius: 100px !important;
    letter-spacing: 0.01em !important;
}

/* ============================================================
   QUESTION GROUPS
   ============================================================ */
body.fruity_twentythree .group-outer-container {
    margin-bottom: 16px !important;
    animation: cjSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

body.fruity_twentythree .group-container {
    background: var(--cj-card) !important;
    border: 1px solid var(--cj-border) !important;
    border-radius: var(--cj-radius) !important;
    box-shadow: var(--cj-shadow) !important;
    padding: 28px !important;
    width: 100% !important;
}

body.fruity_twentythree .group-title-container {
    padding: 0 0 4px 0 !important;
    background: transparent !important;
}

body.fruity_twentythree .group-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--cj-text) !important;
    margin: 0 0 4px 0 !important;
    padding: 0 !important;
    border: none !important;
    font-family: var(--cj-font) !important;
    letter-spacing: -0.01em !important;
}

body.fruity_twentythree .group-description {
    font-size: 0.88rem !important;
    color: var(--cj-text3) !important;
    margin-bottom: 16px !important;
    line-height: 1.65 !important;
}

/* ============================================================
   QUESTIONS
   ============================================================ */
body.fruity_twentythree .question-container {
    padding: 20px 0 !important;
    border-top: 1px solid var(--cj-border-light) !important;
    margin: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.fruity_twentythree .question-container:first-of-type {
    border-top: none !important;
    padding-top: 8px !important;
}

/* Mandatory asterisk */
body.fruity_twentythree .asterisk {
    color: var(--cj-red) !important;
    font-size: 0.7rem !important;
    vertical-align: super !important;
    margin-left: 2px !important;
}

/* Question text */
body.fruity_twentythree .question-text,
body.fruity_twentythree .ls-label-question {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--cj-text) !important;
    line-height: 1.55 !important;
    font-family: var(--cj-font) !important;
    margin-bottom: 4px !important;
}

body.fruity_twentythree .question-title-container label {
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    color: var(--cj-text) !important;
}

body.fruity_twentythree .question-number {
    color: var(--cj) !important;
    font-weight: 700 !important;
}

/* Question help text */
body.fruity_twentythree .ls-questionhelp {
    background: var(--cj-light) !important;
    border: none !important;
    border-left: 3px solid var(--cj) !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 10px 14px !important;
    font-size: 0.82rem !important;
    color: var(--cj-text3) !important;
    margin-top: 8px !important;
}

/* Validation info (e.g. "Please choose at most 3") */
body.fruity_twentythree .questionvalidcontainer {
    margin-top: 6px !important;
}

body.fruity_twentythree .questionvalidcontainer .text-info {
    font-size: 0.8rem !important;
    color: var(--cj-text4) !important;
    font-style: italic !important;
}

/* Error state on questions */
body.fruity_twentythree .question-container.has-error,
body.fruity_twentythree .question-container.input-error {
    background: rgba(239,68,68,0.02) !important;
    border-left: 3px solid var(--cj-red) !important;
    padding-left: 16px !important;
    border-radius: 0 !important;
}

/* Answer container */
body.fruity_twentythree .answer-container {
    margin-top: 12px !important;
}

/* ============================================================
   FORM INPUTS (Text, Textarea, Select, Date)
   ============================================================ */
body.fruity_twentythree .form-control {
    font-family: var(--cj-font) !important;
    font-size: 0.92rem !important;
    background: var(--cj-card) !important;
    border: 1.5px solid var(--cj-border) !important;
    border-radius: var(--cj-radius-sm) !important;
    padding: 10px 14px !important;
    color: var(--cj-text) !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
    box-shadow: none !important;
    line-height: 1.5 !important;
}

body.fruity_twentythree .form-control:focus {
    border-color: var(--cj) !important;
    box-shadow: 0 0 0 3px rgba(108,99,255,0.10) !important;
    background: var(--cj-card) !important;
    outline: none !important;
}

body.fruity_twentythree .form-control::placeholder {
    color: var(--cj-text4) !important;
    font-weight: 400 !important;
}

body.fruity_twentythree textarea.form-control {
    min-height: 100px !important;
    resize: vertical !important;
}

body.fruity_twentythree .form-select {
    font-family: var(--cj-font) !important;
    border: 1.5px solid var(--cj-border) !important;
    border-radius: var(--cj-radius-sm) !important;
    background-color: var(--cj-card) !important;
    padding: 10px 36px 10px 14px !important;
    font-size: 0.92rem !important;
    color: var(--cj-text) !important;
    cursor: pointer !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}

body.fruity_twentythree .form-select:focus {
    border-color: var(--cj) !important;
    box-shadow: 0 0 0 3px rgba(108,99,255,0.10) !important;
    outline: none !important;
}

/* Date picker */
body.fruity_twentythree .date-timepicker-group .form-control,
body.fruity_twentythree .date-control {
    border-radius: var(--cj-radius-sm) !important;
}

/* Tip / help block */
body.fruity_twentythree .tip,
body.fruity_twentythree .help-block {
    font-size: 0.78rem !important;
    color: var(--cj-text4) !important;
    margin-top: 4px !important;
}

/* Input group (prefix/suffix) */
body.fruity_twentythree .input-group,
body.fruity_twentythree .ls-input-group {
    border-radius: var(--cj-radius-sm) !important;
}

body.fruity_twentythree .ls-input-group-extra,
body.fruity_twentythree .prefix-text,
body.fruity_twentythree .suffix-text {
    background: #f8fafc !important;
    border-color: var(--cj-border) !important;
    color: var(--cj-text3) !important;
    font-size: 0.88rem !important;
}

/* Numeric inputs */
body.fruity_twentythree input.numeric {
    font-variant-numeric: tabular-nums !important;
}

/* ============================================================
   RADIO BUTTONS (Awesome Bootstrap Checkbox - color override)
   ============================================================ */
body.fruity_twentythree .radio-item,
body.fruity_twentythree .radio-text-item {
    padding-left: 20px !important;
    margin-bottom: 6px !important;
    transition: all 0.15s ease !important;
}

body.fruity_twentythree .radio-item label {
    display: inline-block !important;
    position: relative !important;
    padding-left: 10px !important;
    cursor: pointer !important;
    font-size: 0.92rem !important;
    font-weight: 400 !important;
    color: var(--cj-text2) !important;
    font-family: var(--cj-font) !important;
    line-height: 1.5 !important;
    min-height: 22px !important;
    padding-top: 1px !important;
    transition: color 0.15s ease !important;
}

body.fruity_twentythree .radio-item label:hover {
    color: var(--cj-text) !important;
}

/* Radio circle - unchecked */
body.fruity_twentythree .radio-item label::before {
    border: 2px solid #cbd5e1 !important;
    background-color: var(--cj-card) !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
}

/* Radio dot */
body.fruity_twentythree .radio-item label::after,
body.fruity_twentythree .radio-item input[type=radio] + label::after {
    background-color: var(--cj) !important;
    width: 10px !important;
    height: 10px !important;
    left: 3px !important;
    top: 3px !important;
}

/* Checked state */
body.fruity_twentythree .radio-item input[type=radio]:checked + label::before {
    border-color: var(--cj) !important;
    box-shadow: 0 0 0 3px rgba(108,99,255,0.10) !important;
}

body.fruity_twentythree .radio-item input[type=radio]:checked + label::after {
    background-color: var(--cj) !important;
}

body.fruity_twentythree .radio-item input[type=radio]:checked + label {
    color: var(--cj) !important;
    font-weight: 500 !important;
}

/* Hover */
body.fruity_twentythree .radio-item label:hover::before {
    border-color: var(--cj-border-accent) !important;
}

/* ============================================================
   CHECKBOXES (Awesome Bootstrap Checkbox - color override)
   ============================================================ */
body.fruity_twentythree li.checkbox-item,
body.fruity_twentythree li.radio-text-item,
body.fruity_twentythree li.checkbox-text-item {
    margin-bottom: 6px !important;
}

body.fruity_twentythree .checkbox-item label {
    cursor: pointer !important;
    font-size: 0.92rem !important;
    font-weight: 400 !important;
    color: var(--cj-text2) !important;
    font-family: var(--cj-font) !important;
    line-height: 1.5 !important;
    transition: color 0.15s ease !important;
}

body.fruity_twentythree .checkbox-item label:hover {
    color: var(--cj-text) !important;
}

/* Checkbox square - unchecked */
body.fruity_twentythree .checkbox-item label::before {
    border: 2px solid #cbd5e1 !important;
    background-color: var(--cj-card) !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 5px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
}

/* Checkbox check icon (remixicon) */
body.fruity_twentythree .checkbox-item input[type=checkbox]:checked + label::after,
body.fruity_twentythree .checkbox-item input[type=radio]:checked + label::after {
    color: var(--cj-card) !important;
    font-size: 18px !important;
}

/* Checked state */
body.fruity_twentythree .checkbox-item input[type=checkbox]:checked + label::before,
body.fruity_twentythree .checkbox-item input[type=radio]:checked + label::before {
    background-color: var(--cj) !important;
    border-color: var(--cj) !important;
    box-shadow: 0 0 0 3px rgba(108,99,255,0.10) !important;
}

body.fruity_twentythree .checkbox-item input[type=checkbox]:checked + label,
body.fruity_twentythree .checkbox-item input[type=radio]:checked + label {
    color: var(--cj) !important;
    font-weight: 500 !important;
}

/* Indeterminate state */
body.fruity_twentythree .checkbox-item input[type=checkbox]:indeterminate + label::after,
body.fruity_twentythree .checkbox-item input[type=radio]:indeterminate + label::after {
    background-color: var(--cj) !important;
}

/* Hover */
body.fruity_twentythree .checkbox-item label:hover::before {
    border-color: var(--cj-border-accent) !important;
}

/* Override the green answer-item label::after */
body.fruity_twentythree .answer-item label::after {
    background-color: var(--cj) !important;
}

/* ============================================================
   YES/NO BUTTON QUESTIONS
   ============================================================ */
body.fruity_twentythree .yesno-button.btn-group {
    gap: 8px !important;
    display: flex !important;
    flex-wrap: wrap !important;
}

body.fruity_twentythree .yesno-button .btn-check + .btn,
body.fruity_twentythree .yesno-button .ls-button-label {
    border-radius: var(--cj-radius-sm) !important;
    padding: 10px 24px !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    border: 1.5px solid var(--cj-border) !important;
    background: var(--cj-card) !important;
    color: var(--cj-text2) !important;
    transition: all 0.2s ease !important;
    box-shadow: var(--cj-shadow) !important;
    margin-bottom: 0 !important;
}

body.fruity_twentythree .yesno-button .btn-check + .btn:hover,
body.fruity_twentythree .yesno-button .ls-button-label:hover {
    border-color: var(--cj-border-accent) !important;
    background: var(--cj-light) !important;
    color: var(--cj) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--cj-shadow-md) !important;
}

body.fruity_twentythree .yesno-button .btn-check:checked + .btn,
body.fruity_twentythree .yesno-button .btn-check:checked + .ls-button-label {
    background: var(--cj) !important;
    border-color: var(--cj) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(108,99,255,0.25) !important;
}

body.fruity_twentythree .yesno-button .ls-icon {
    margin-right: 4px !important;
}

/* ============================================================
   5-POINT / LIKERT SCALE
   ============================================================ */
body.fruity_twentythree .list-group.list-group-horizontal .answer-item {
    border: none !important;
    padding: 0 !important;
    margin-right: 4px !important;
}

body.fruity_twentythree .list-group.list-group-horizontal .radio-item {
    margin-right: 1.5rem !important;
}

/* ============================================================
   ARRAY / MATRIX QUESTIONS
   ============================================================ */
body.fruity_twentythree .ls-table-wrapper {
    border-radius: var(--cj-radius) !important;
    overflow: hidden !important;
    border: 1px solid var(--cj-border) !important;
}

body.fruity_twentythree table.ls-answers,
body.fruity_twentythree table.table-array-radio {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
}

body.fruity_twentythree .ls-answers .ls-heading th,
body.fruity_twentythree .ls-answers thead th,
body.fruity_twentythree .ls-answers .ls-header th {
    background: #f8fafc !important;
    color: var(--cj-text3) !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-bottom: 2px solid var(--cj-border) !important;
    padding: 12px 10px !important;
    font-family: var(--cj-font) !important;
    vertical-align: bottom !important;
}

body.fruity_twentythree .ls-answers th {
    font-weight: 600 !important;
    font-family: var(--cj-font) !important;
    font-size: 0.85rem !important;
}

body.fruity_twentythree .ls-answers tbody td {
    padding: 12px 10px !important;
    border-bottom: 1px solid var(--cj-border-light) !important;
    font-size: 0.88rem !important;
    vertical-align: middle !important;
}

body.fruity_twentythree .ls-answers tbody tr:last-child td {
    border-bottom: none !important;
}

body.fruity_twentythree .ls-answers tbody tr:hover td {
    background: rgba(108,99,255,0.02) !important;
}

body.fruity_twentythree .ls-answers .answertext {
    font-size: 0.88rem !important;
    color: var(--cj-text) !important;
    text-align: left !important;
    font-weight: 400 !important;
}

/* Fix table borders */
body.fruity_twentythree tbody,
body.fruity_twentythree td,
body.fruity_twentythree tfoot,
body.fruity_twentythree th,
body.fruity_twentythree thead,
body.fruity_twentythree tr,
body.fruity_twentythree .table > :not(:first-child) {
    border-color: var(--cj-border-light) !important;
}

/* ============================================================
   RANKING QUESTIONS (Drag & Drop)
   ============================================================ */
body.fruity_twentythree .sortable-list.list-group {
    border: 1.5px dashed var(--cj-border) !important;
    border-radius: var(--cj-radius-sm) !important;
    padding: 8px !important;
    min-height: 50px !important;
    background: #fafbfc !important;
}

body.fruity_twentythree .sortable-item.list-group-item {
    border: 1px solid var(--cj-border) !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    margin-bottom: 6px !important;
    background: var(--cj-card) !important;
    cursor: grab !important;
    transition: all 0.15s ease !important;
    box-shadow: var(--cj-shadow) !important;
    font-size: 0.88rem !important;
}

body.fruity_twentythree .sortable-item.list-group-item:hover {
    border-color: var(--cj-border-accent) !important;
    box-shadow: var(--cj-shadow-md) !important;
    transform: translateY(-1px) !important;
}

body.fruity_twentythree .sortable-item .grabable {
    color: var(--cj-text4) !important;
    margin-right: 8px !important;
}

body.fruity_twentythree .sortable-subtitle,
body.fruity_twentythree .sortable-rank-subtitle {
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--cj-text4) !important;
    margin-bottom: 8px !important;
}

/* ============================================================
   FILE UPLOAD
   ============================================================ */
body.fruity_twentythree .upload.btn {
    border-radius: var(--cj-radius-sm) !important;
}

body.fruity_twentythree .file-upload-modal .modal-content {
    border-radius: var(--cj-radius) !important;
}

body.fruity_twentythree .uploader-frame {
    border: 2px dashed var(--cj-border) !important;
    border-radius: var(--cj-radius-sm) !important;
    background: #fafbfc !important;
    padding: 32px !important;
    text-align: center !important;
    transition: border-color 0.2s !important;
}

body.fruity_twentythree .uploader-frame:hover {
    border-color: var(--cj-border-accent) !important;
}

/* ============================================================
   BUTTONS — Full Override
   ============================================================ */
body.fruity_twentythree .btn {
    font-family: var(--cj-font) !important;
    font-weight: 600 !important;
    border-radius: var(--cj-radius-sm) !important;
    transition: all 0.2s ease !important;
    letter-spacing: 0.01em !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
}

/* PRIMARY — purple instead of green */
body.fruity_twentythree .btn-primary,
body.fruity_twentythree .btn.btn-primary {
    background-color: var(--cj) !important;
    border-color: var(--cj) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(108,99,255,0.20) !important;
}

body.fruity_twentythree .btn-primary:hover,
body.fruity_twentythree .btn-primary:focus,
body.fruity_twentythree .btn.btn-primary:hover,
body.fruity_twentythree .btn.btn-primary:focus,
body.fruity_twentythree .btn-check:focus + .btn-primary,
body.fruity_twentythree .btn-check:checked + .btn-primary,
body.fruity_twentythree .btn-check:active + .btn-primary,
body.fruity_twentythree .btn-primary:active,
body.fruity_twentythree .btn-primary.active,
body.fruity_twentythree .show > .btn-primary.dropdown-toggle {
    background-color: var(--cj-hover) !important;
    border-color: var(--cj-hover) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(108,99,255,0.28) !important;
    transform: translateY(-1px) !important;
}

body.fruity_twentythree .btn-primary:active,
body.fruity_twentythree .btn.btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 4px rgba(108,99,255,0.20) !important;
}

body.fruity_twentythree .btn-primary:disabled,
body.fruity_twentythree .btn-primary.disabled {
    background-color: #a5a0f5 !important;
    border-color: #a5a0f5 !important;
    color: #fff !important;
    opacity: 0.7 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* OUTLINE SECONDARY */
body.fruity_twentythree .btn-outline-secondary,
body.fruity_twentythree .btn.btn-outline-secondary {
    background-color: var(--cj-card) !important;
    border: 1.5px solid var(--cj-border) !important;
    color: var(--cj-text3) !important;
    box-shadow: var(--cj-shadow) !important;
}

body.fruity_twentythree .btn-outline-secondary:hover,
body.fruity_twentythree .btn.btn-outline-secondary:hover {
    border-color: var(--cj) !important;
    color: var(--cj) !important;
    background: var(--cj-light) !important;
    transform: translateY(-1px) !important;
    box-shadow: var(--cj-shadow-md) !important;
}

/* SECONDARY */
body.fruity_twentythree .btn-secondary,
body.fruity_twentythree .btn.btn-secondary {
    background-color: var(--cj-bg) !important;
    border-color: var(--cj-border) !important;
    color: var(--cj-text3) !important;
}

body.fruity_twentythree .btn-secondary:hover,
body.fruity_twentythree .btn.btn-secondary:hover {
    background-color: var(--cj-border) !important;
    color: var(--cj-text) !important;
    transform: translateY(-1px) !important;
}

/* LARGE BUTTON */
body.fruity_twentythree .btn-lg,
body.fruity_twentythree .btn.btn-lg,
body.fruity_twentythree .btn-group-lg > .btn {
    padding: 12px 32px !important;
    font-size: 0.95rem !important;
    border-radius: var(--cj-radius-sm) !important;
}

/* Next/Submit button with arrow */
body.fruity_twentythree .ls-move-next-btn,
body.fruity_twentythree .ls-move-submit-btn {
    min-width: 140px !important;
}

/* Previous button */
body.fruity_twentythree .ls-move-prev-btn {
    min-width: 120px !important;
}

/* ============================================================
   NAVIGATOR
   ============================================================ */
body.fruity_twentythree #navigator-container.navigator {
    padding-top: 20px !important;
    padding-bottom: 8px !important;
    border-top: 1px solid var(--cj-border-light) !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
}

body.fruity_twentythree .clearall-saveall-wrapper .btn {
    font-size: 0.85rem !important;
    padding: 8px 16px !important;
}

/* Soft mandate checkbox */
body.fruity_twentythree .mandsoftcheckboxlabel {
    font-size: 0.85rem !important;
    color: var(--cj-text3) !important;
    font-style: italic !important;
}

/* ============================================================
   SUBMIT / COMPLETION PAGE
   ============================================================ */
body.fruity_twentythree .submit-wrapper,
body.fruity_twentythree .completed-wrapper,
body.fruity_twentythree #submit-container,
body.fruity_twentythree #completed-container {
    text-align: center !important;
    background: var(--cj-card) !important;
    border: 1px solid var(--cj-border) !important;
    border-radius: var(--cj-radius) !important;
    box-shadow: var(--cj-shadow) !important;
    padding: 56px 36px !important;
    animation: cjSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.fruity_twentythree .submit-wrapper h2,
body.fruity_twentythree .completed-wrapper h2,
body.fruity_twentythree .submitwrappertextHeading {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--cj-text) !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}

body.fruity_twentythree .submit-wrapper p,
body.fruity_twentythree .completed-wrapper p,
body.fruity_twentythree .submitwrappertextContent {
    font-size: 1rem !important;
    color: var(--cj-text3) !important;
    line-height: 1.7 !important;
    max-width: 480px !important;
    margin: 0 auto 16px !important;
}

body.fruity_twentythree .submitwrapperdivaa,
body.fruity_twentythree .submitwrapperdivba {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 10px 20px !important;
    border-radius: var(--cj-radius-sm) !important;
    border: 1.5px solid var(--cj-border) !important;
    background: var(--cj-card) !important;
    color: var(--cj-text3) !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    margin: 4px !important;
}

body.fruity_twentythree .submitwrapperdivaa:hover,
body.fruity_twentythree .submitwrapperdivba:hover {
    border-color: var(--cj) !important;
    color: var(--cj) !important;
    background: var(--cj-light) !important;
}

/* ============================================================
   ALERTS & ERRORS
   ============================================================ */
body.fruity_twentythree .alert {
    border-radius: var(--cj-radius-sm) !important;
    font-size: 0.88rem !important;
    padding: 14px 18px !important;
    font-weight: 500 !important;
    border: none !important;
}

body.fruity_twentythree .alert.alert-success {
    background: rgba(34,197,94,0.08) !important;
    color: #16a34a !important;
    border-left: 3px solid var(--cj-green) !important;
}

body.fruity_twentythree .alert.alert-danger {
    background: rgba(239,68,68,0.06) !important;
    color: #dc2626 !important;
    border-left: 3px solid var(--cj-red) !important;
}

body.fruity_twentythree .alert.alert-warning {
    background: rgba(245,158,11,0.06) !important;
    color: #d97706 !important;
    border-left: 3px solid var(--cj-yellow) !important;
}

body.fruity_twentythree .alert.alert-info {
    background: var(--cj-light) !important;
    color: var(--cj) !important;
    border-left: 3px solid var(--cj) !important;
}

body.fruity_twentythree .alert .btn-close {
    font-size: 0.7rem !important;
    opacity: 0.5 !important;
}

/* Error HTML container */
body.fruity_twentythree .errorHtml {
    font-size: 0.85rem !important;
}

/* No-JS warning */
body.fruity_twentythree .warningjs {
    border-radius: var(--cj-radius-sm) !important;
    font-size: 0.85rem !important;
}

/* ============================================================
   PRIVACY & CONSENT
   ============================================================ */
body.fruity_twentythree .privacy {
    font-size: 0.85rem !important;
    color: var(--cj-text3) !important;
    margin-top: 12px !important;
}

body.fruity_twentythree .ls-privacy-block {
    background: #f8fafc !important;
    border: 1px solid var(--cj-border) !important;
    border-radius: var(--cj-radius-sm) !important;
    padding: 16px 20px !important;
}

body.fruity_twentythree .privacyhead {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.8px !important;
    color: var(--cj-text4) !important;
    margin-bottom: 6px !important;
}

body.fruity_twentythree .privacybody {
    font-size: 0.85rem !important;
    color: var(--cj-text3) !important;
    line-height: 1.6 !important;
}

/* ============================================================
   REGISTRATION / TOKEN FORMS
   ============================================================ */
body.fruity_twentythree .registerform {
    background: var(--cj-card) !important;
    border: 1px solid var(--cj-border) !important;
    border-radius: var(--cj-radius) !important;
    box-shadow: var(--cj-shadow) !important;
    padding: 32px !important;
}

body.fruity_twentythree .registerformcolrowlabel,
body.fruity_twentythree .registerformcolrowblabel {
    font-weight: 600 !important;
    font-size: 0.88rem !important;
    margin-bottom: 4px !important;
}

body.fruity_twentythree .registermandatoryinfo {
    font-size: 0.82rem !important;
    color: var(--cj-text4) !important;
    font-style: italic !important;
}

/* Captcha */
body.fruity_twentythree .captcha-container {
    border-radius: var(--cj-radius-sm) !important;
    overflow: hidden !important;
}

body.fruity_twentythree #reloadCaptcha {
    border-radius: var(--cj-radius-sm) !important;
}

/* ============================================================
   MODALS
   ============================================================ */
body.fruity_twentythree .modal-content {
    border-radius: var(--cj-radius) !important;
    border: 1px solid var(--cj-border) !important;
    box-shadow: var(--cj-shadow-lg) !important;
    overflow: hidden !important;
}

body.fruity_twentythree .modal-header {
    border-bottom: 1px solid var(--cj-border-light) !important;
    padding: 20px 24px !important;
    background: var(--cj-card) !important;
}

body.fruity_twentythree .modal-body {
    padding: 24px !important;
}

body.fruity_twentythree .modal-footer {
    border-top: 1px solid var(--cj-border-light) !important;
    padding: 16px 24px !important;
    background: #fafbfc !important;
}

body.fruity_twentythree .modal-title {
    font-family: var(--cj-font) !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
}

body.fruity_twentythree .modal-backdrop {
    background-color: rgba(15,23,42,0.4) !important;
}

/* ============================================================
   ASSESSMENT
   ============================================================ */
body.fruity_twentythree .assessmentscontainer {
    background: var(--cj-card) !important;
    border: 1px solid var(--cj-border) !important;
    border-radius: var(--cj-radius) !important;
    padding: 24px !important;
    margin-bottom: 16px !important;
}

/* ============================================================
   WELL
   ============================================================ */
body.fruity_twentythree .well {
    background: #f8fafc !important;
    border: 1px solid var(--cj-border) !important;
    border-radius: var(--cj-radius-sm) !important;
    box-shadow: none !important;
}

/* ============================================================
   LIST GROUP
   ============================================================ */
body.fruity_twentythree .list-group-item {
    border-color: var(--cj-border) !important;
    font-size: 0.92rem !important;
}

body.fruity_twentythree .list-group-item.active {
    background-color: var(--cj) !important;
    border-color: var(--cj) !important;
}

/* ============================================================
   SLIDER QUESTIONS
   ============================================================ */
body.fruity_twentythree input[type="range"] {
    accent-color: var(--cj) !important;
}

body.fruity_twentythree .btn-slider-reset {
    font-size: 0.78rem !important;
    color: var(--cj-text4) !important;
    border: 1px solid var(--cj-border) !important;
    border-radius: var(--cj-radius-xs) !important;
    background: var(--cj-card) !important;
    padding: 4px 10px !important;
}

body.fruity_twentythree .btn-slider-reset:hover {
    border-color: var(--cj) !important;
    color: var(--cj) !important;
}

/* ============================================================
   ERROR PAGE
   ============================================================ */
body.fruity_twentythree.error-page {
    padding-top: 0 !important;
    justify-content: center !important;
    align-items: center !important;
}

body.fruity_twentythree .error-title {
    font-family: var(--cj-font) !important;
    font-weight: 700 !important;
    color: var(--cj-text) !important;
    font-size: 1.4rem !important;
    margin-bottom: 12px !important;
}

body.fruity_twentythree .error-content {
    color: var(--cj-text3) !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

/* ============================================================
   FOOTER (Circle Java)
   ============================================================ */
body.fruity_twentythree .cj-footer {
    text-align: center !important;
    padding: 18px !important;
    border-top: 1px solid var(--cj-border) !important;
    background: var(--cj-card) !important;
    margin-top: auto !important;
}

.cj-footer-text {
    font-size: 0.75rem !important;
    color: var(--cj-text4) !important;
    font-weight: 500 !important;
}

.cj-footer-brand {
    font-weight: 700 !important;
    color: var(--cj) !important;
}

/* ============================================================
   SCROLLBAR (Webkit)
   ============================================================ */
body.fruity_twentythree ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

body.fruity_twentythree ::-webkit-scrollbar-track {
    background: transparent;
}

body.fruity_twentythree ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 100px;
}

body.fruity_twentythree ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ============================================================
   SELECTION HIGHLIGHT
   ============================================================ */
body.fruity_twentythree ::selection {
    background: rgba(108,99,255,0.15);
    color: var(--cj-text);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    body.fruity_twentythree {
        padding-top: 48px !important;
        font-size: 0.92rem !important;
    }

    body.fruity_twentythree .group-container {
        padding: 20px 16px !important;
        border-radius: 12px !important;
    }

    body.fruity_twentythree #welcome-container {
        padding: 36px 20px !important;
        border-radius: 12px !important;
    }

    body.fruity_twentythree #welcome-container .survey-name.large-heading {
        font-size: 1.35rem !important;
    }

    body.fruity_twentythree .btn-lg,
    body.fruity_twentythree .btn.btn-lg,
    body.fruity_twentythree .btn-group-lg > .btn {
        padding: 11px 24px !important;
        font-size: 0.9rem !important;
    }

    body.fruity_twentythree .submit-wrapper,
    body.fruity_twentythree .completed-wrapper {
        padding: 36px 20px !important;
    }

    body.fruity_twentythree .ls-table-wrapper {
        border-radius: 12px !important;
    }

    body.fruity_twentythree #outerframeContainer.outerframe {
        padding-top: 16px !important;
        padding-bottom: 24px !important;
    }

    body.fruity_twentythree .sortable-item.list-group-item {
        padding: 8px 12px !important;
    }
}

@media (max-width: 480px) {
    body.fruity_twentythree #welcome-container {
        padding: 28px 16px !important;
    }

    body.fruity_twentythree #welcome-container .survey-name.large-heading {
        font-size: 1.2rem !important;
    }

    body.fruity_twentythree .group-container {
        padding: 16px 14px !important;
        border-radius: 10px !important;
    }

    body.fruity_twentythree .btn-lg,
    body.fruity_twentythree .btn.btn-lg {
        padding: 10px 20px !important;
        font-size: 0.88rem !important;
        width: 100% !important;
    }

    body.fruity_twentythree #navigator-container .col-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: center !important;
        margin-bottom: 8px !important;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    body.fruity_twentythree {
        background: #fff !important;
        padding-top: 0 !important;
    }

    body.fruity_twentythree #survey-nav,
    body.fruity_twentythree .top-container,
    body.fruity_twentythree #navigator-container,
    body.fruity_twentythree .cj-footer {
        display: none !important;
    }

    body.fruity_twentythree .group-container {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        page-break-inside: avoid !important;
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes cjSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger group animations */
body.fruity_twentythree .group-outer-container:nth-child(1) { animation-delay: 0s !important; }
body.fruity_twentythree .group-outer-container:nth-child(2) { animation-delay: 0.06s !important; }
body.fruity_twentythree .group-outer-container:nth-child(3) { animation-delay: 0.12s !important; }
body.fruity_twentythree .group-outer-container:nth-child(4) { animation-delay: 0.18s !important; }
body.fruity_twentythree .group-outer-container:nth-child(5) { animation-delay: 0.24s !important; }

/* Focus-visible for accessibility */
body.fruity_twentythree *:focus-visible {
    outline: 2px solid var(--cj) !important;
    outline-offset: 2px !important;
    border-radius: 4px !important;
}

body.fruity_twentythree .btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(108,99,255,0.25) !important;
}
