/* SWO Questionnaires - V2 Pixel-Perfect Styles */
/* Extracted from swo-mra-v2-website-test bucket */

:root {
    --bg: #0b1220;
    --glass: rgba(255,255,255,.92);
    --muted: #64748b;
    --primary: #b967ff;
    --secondary: #5be7ff;
    --example-bg: rgba(185,103,255,.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(180deg, #f6f8fc 0%, #eef2f9 100%);
    color: #0b1220;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

.wrap {
    max-width: 900px;
    margin: 32px auto;
    padding: 0 16px 48px;
}

.logo {
    display: block;
    margin: 0 auto 16px;
    max-width: 240px;
    height: auto;
}

h1 {
    font-size: 22px;
    margin-bottom: 6px;
    text-align: center;
}

/* Language Toggle - HIDDEN (language determined by URL) */
.lang-toggle {
    display: none;
}

.intro {
    color: rgba(15,23,42,.75);
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
    text-align: center;
}

/* Cards */
.card {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;
}

.card label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: rgba(15,23,42,.75);
    line-height: 1.35;
    margin-bottom: 8px;
}

.card input {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(15,23,42,.12);
    color: #0b1220;
    font-size: 14px;
    box-sizing: border-box;
}

.session-info {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 30px;
    border-left: 4px solid var(--secondary);
}

/* Categories */
.category-block {
    margin: 42px 0;
}

.category-header {
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(15,23,42,.12);
}

.category-title {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .3px;
    color: #0b1220;
}

.category-subtitle {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(15,23,42,.45);
}

.category-progress {
    margin-top: 10px;
}

.category-progress-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(15,23,42,.08);
    overflow: hidden;
}

.category-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(135deg, #5be7ff, #b967ff);
    transition: width .35s ease;
}

.category-progress-label {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(15,23,42,.55);
    text-align: right;
}

/* Questions */
fieldset {
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.85);
}

legend {
    font-weight: 900;
    color: #0b1220;
    padding: 0 10px;
    font-size: 18px;
    letter-spacing: .3px;
}

.question {
    margin-bottom: 22px;
}

.q-head {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.q-label {
    font-size: 14px;
    font-weight: 700;
    color: rgba(15,23,42,.75);
    line-height: 1.35;
}

.q-hint {
    margin-bottom: 12px;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(15,23,42,.55);
    font-style: italic;
}

/* Insight Button */
.insight-btn {
    font-size: 20px;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.12);
    background: rgba(255,255,255,.85);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.insight-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15,23,42,.10);
}

.insight-btn:active { 
    transform: translateY(0px); 
}

/* Insight Popover */
.insight-popover {
    position: absolute;
    z-index: 9999;
    width: min(420px, calc(100vw - 28px));
    background: #fff;
    border-radius: 22px;
    padding: 18px;
    border: 1px solid rgba(15,23,42,.12);
    box-shadow: 0 30px 80px rgba(0,0,0,.25);
    animation: popIn .16s ease-out;
}

@keyframes popIn {
    from { opacity: 0; transform: translateY(6px) scale(.98); }
    to   { opacity: 1; transform: translateY(0)  scale(1); }
}

.insight-title {
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .2px;
    color: #0b1220;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.insight-close {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px;
    border-radius: 10px;
}

.insight-close:hover { 
    background: rgba(15,23,42,.06); 
}

.insight-section {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(15,23,42,.04);
    border: 1px solid rgba(15,23,42,.06);
}

.insight-section h4 {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 800;
    color: #0b1220;
}

.insight-section ul {
    margin: 6px 0 0;
    padding-left: 18px;
    font-size: 13px;
    color: #334155;
}

.insight-example {
    margin-top: 12px;
    background: var(--example-bg);
    border-left: 4px solid var(--primary);
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    color: #0b1220;
}

/* Radio Buttons */
.question label:has(input[type="radio"]) {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: rgba(15,23,42,.75);
}

.question label input[type="radio"] {
    margin: 0;
    width: auto;
}

/* Text Areas and Inputs */
.question textarea,
.question input[type="text"] {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(15,23,42,.12);
    color: #0b1220;
    font-size: 14px;
    box-sizing: border-box;
    margin-top: 8px;
}

.question textarea {
    min-height: 90px;
    resize: vertical;
}

.question textarea:focus,
.question input[type="text"]:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(91,231,255,0.2);
}

/* Scale 0-5 */
.scale-1-5 {
    width: 100%;
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.scale-1-5 .cell {
    border-radius: 18px;
    min-height: 86px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 900;
    font-size: 22px;
    cursor: pointer;
    user-select: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.10), 0 10px 22px rgba(0,0,0,.18);
    transition: transform .08s ease, filter .15s ease, box-shadow .15s ease;
    position: relative;
    overflow: hidden;
}

.scale-1-5 .cell small {
    margin-top: 6px;
    font-size: 13px;
    font-weight: 800;
}

/* Scale Gradients */
.scale-1-5 .cell[data-v="0"] {
    background: linear-gradient(135deg, #f1f5f9, #e5e7eb);
    color: #475569;
}

.scale-1-5 .cell[data-v="1"] {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #0b1220;
}

.scale-1-5 .cell[data-v="2"] {
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0b1220;
}

.scale-1-5 .cell[data-v="3"] {
    background: linear-gradient(135deg, #cffafe, #a5f3fc);
    color: #0b1220;
}

.scale-1-5 .cell[data-v="4"] {
    background: linear-gradient(135deg, #bae6fd, #7dd3fc);
    color: #0b1220;
}

.scale-1-5 .cell[data-v="5"] {
    background: linear-gradient(135deg, #67e8f9, #22d3ee);
    color: #0b1220;
}

.scale-1-5 .cell::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg,
        rgba(91,231,255,.0),
        rgba(91,231,255,.45),
        rgba(185,103,255,.45),
        rgba(91,231,255,.0)
    );
    opacity: 0;
    transition: opacity .35s ease;
}

.scale-1-5 .cell:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15,23,42,.18);
}

.scale-1-5 .cell:hover::before {
    opacity: 1;
}

.scale-1-5 .cell:active {
    transform: translateY(1px);
}

.scale-1-5 .cell.active {
    transform: translateY(-4px) scale(1.06);
    background: linear-gradient(135deg, #5be7ff, #b967ff);
    color: #0b1220;
    box-shadow:
        0 0 0 2px rgba(255,255,255,.9),
        0 25px 55px rgba(15,23,42,.35),
        0 0 40px rgba(91,231,255,.45);
}

.scale-1-5 .cell.active::before {
    opacity: 1;
}

/* Actions */
.actions {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(10px);
}

.btn {
    border-radius: 14px;
    padding: 12px 24px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-secondary {
    background: rgba(255,255,255,0.8);
    color: #0b1220;
    border: 1px solid rgba(15,23,42,.12);
}

.btn-secondary:hover {
    background: rgba(255,255,255,1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

#submitBtn {
    margin: 0;
    display: block;
    position: relative;
    overflow: hidden;
    appearance: none;
    border-radius: 16px;
    padding: 16px 52px;
    font-weight: 900;
    letter-spacing: .4px;
    cursor: pointer;
    color: #0b1220;
    background: linear-gradient(135deg, #5be7ff 0%, #b967ff 100%);
    border: none;
    box-shadow:
        0 12px 30px rgba(91,231,255,.35),
        0 0 0 2px rgba(255,255,255,.9);
    transition:
        transform .15s ease,
        box-shadow .25s ease,
        filter .25s ease;
}

#submitBtn::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(120deg,
        transparent 20%,
        rgba(255,255,255,.6),
        transparent 80%
    );
    opacity: 0;
    transform: translateX(-60%);
    transition: opacity .3s ease, transform .6s ease;
}

#submitBtn:hover {
    transform: translateY(-4px) scale(1.03);
    filter: brightness(1.05);
    box-shadow:
        0 18px 42px rgba(91,231,255,.45),
        0 0 0 3px rgba(91,231,255,.55);
}

#submitBtn:hover::before {
    opacity: 1;
    transform: translateX(60%);
}

#submitBtn:active {
    transform: translateY(-1px) scale(1.01);
}

#submitBtn:disabled {
    opacity: .55;
    cursor: not-allowed;
    filter: grayscale(.3);
    box-shadow: 0 6px 14px rgba(0,0,0,.15);
}

.save-status {
    display: block;
    min-height: 22px;
    line-height: 22px;
    font-size: 13px;
    font-weight: 600;
    color: #66b8cc;
    text-align: center;
}

/* Info Note */
.info-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 620px;
    margin: 12px auto 6px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg,
        rgba(91,231,255,.12),
        rgba(185,103,255,.10)
    );
    border: 1px solid rgba(91,231,255,.35);
}

.info-icon {
    font-size: 16px;
    line-height: 1.4;
}

.info-text {
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
    color: rgba(15,23,42,.75);
}

/* Responsive */
@media (max-width: 520px) {
    .scale-1-5 {
        gap: 10px;
    }
    .scale-1-5 .cell {
        min-height: 78px;
        font-size: 20px;
        border-radius: 16px;
    }
    .wrap {
        padding: 0 12px 48px;
    }
}

/* Error States */
.question-error {
    outline: 2px solid rgba(255,255,255,.35);
    box-shadow: 0 0 0 6px rgba(255,0,80,.12);
}

.scale-1-5 .cell.disabled {
    filter: grayscale(0.6);
    cursor: not-allowed;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--secondary);
    color: #0b1220;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Loading */
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    text-align: center;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--secondary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

/* Messages */
.message {
    padding: 15px;
    border-radius: 14px;
    margin: 15px 0;
    animation: slideIn 0.3s ease-out;
}

.message.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.05));
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

.message.success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
    color: #16a34a;
    border-left: 4px solid #16a34a;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Completion Message */
.completion-message {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.05));
    border: 2px solid #16a34a;
    border-radius: 18px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.completion-message h2 {
    color: #16a34a;
    margin-bottom: 20px;
}

.completion-details {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 14px;
    margin: 20px 0;
}

.completion-details p {
    margin: 10px 0;
    font-size: 16px;
}

/* Optional Comment Fields */
.optional-comment-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(15,23,42,.12);
    animation: fadeInComment 0.3s ease-out;
}

@keyframes fadeInComment {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.optional-comment-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.optional-comment-label {
    font-size: 14px;
    color: rgba(15,23,42,.75);
    font-weight: 500;
    margin: 0;
}

.optional-comment-field {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 14px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.4;
    resize: vertical;
    min-height: 60px;
    background-color: #ffffff;
    transition: all 0.2s ease;
}

.optional-comment-field:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(91,231,255,0.2);
}

.optional-comment-field::placeholder {
    color: #999;
    font-style: italic;
}

/* Checkbox Groups */
.checkbox-group-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background-color: white;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.checkbox-item:hover {
    border-color: var(--secondary);
    box-shadow: 0 2px 4px rgba(91,231,255,0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    font-weight: 500;
    color: rgba(15,23,42,.75);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--secondary);
}

.checkbox-comment-field {
    margin-top: 10px;
    margin-left: 28px;
    padding: 10px;
    background-color: rgba(15,23,42,.04);
    border-radius: 14px;
    border-left: 3px solid var(--secondary);
    animation: fadeInComment 0.3s ease-out;
}

.checkbox-comment-field .comment-label {
    display: block;
    font-size: 0.9em;
    color: rgba(15,23,42,.75);
    margin-bottom: 5px;
    font-weight: 500;
}

.checkbox-comment-field .comment-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 14px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
}

.checkbox-comment-field .comment-textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(91,231,255,0.2);
}

/* Scale Examples in Insight */
.scale-examples-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.scale-example-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 12px;
    background-color: rgba(15,23,42,.04);
    border-radius: 14px;
    border-left: 3px solid var(--secondary);
    transition: all 0.2s ease;
}

.clickable-scale {
    cursor: pointer;
}

.clickable-scale:hover {
    background-color: rgba(91,231,255,.15);
    border-left-color: var(--primary);
    transform: translateX(2px);
}

.clickable-scale:active {
    background-color: rgba(91,231,255,.25);
    transform: translateX(0);
}

.scale-example-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background-color: var(--secondary);
    color: transparent;
    border-radius: 50%;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}

.scale-example-text {
    flex: 1;
    line-height: 1.5;
    color: rgba(15,23,42,.75);
    font-size: 14px;
}

/* Submitted State */
.questionnaire-submitted input,
.questionnaire-submitted textarea,
.questionnaire-submitted select {
    background-color: #f5f5f5 !important;
    color: #666 !important;
    cursor: not-allowed !important;
    border-color: rgba(15,23,42,.12) !important;
}

.questionnaire-submitted .scale-1-5 .cell {
    background-color: #f5f5f5 !important;
    color: #666 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    opacity: 0.6 !important;
}

.questionnaire-submitted .scale-1-5 .cell.active {
    background-color: #e0e0e0 !important;
    border-color: #ccc !important;
    opacity: 0.8 !important;
}

.questionnaire-submitted label {
    color: #666 !important;
    cursor: not-allowed !important;
}

.submitted-banner {
    background: linear-gradient(135deg, #16a34a, #10b981);
    color: white;
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
    animation: slideInFromTop 0.5s ease-out;
}

.submitted-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: center;
}

.submitted-icon {
    font-size: 24px;
    animation: bounce 1s ease-in-out;
}

.submitted-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}


/* ========================================
   CHATBOT STYLES - V2 PIXEL PERFECT
   ======================================== */

/* Chatbot Button - Floating */
.chatbot-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff 0%, #9d4edd 100%);
    color: white;
    border: 3px solid #00d4ff;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.4),
                0 4px 12px rgba(157, 78, 221, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

.chatbot-button:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 212, 255, 0.5),
                0 6px 16px rgba(157, 78, 221, 0.4);
    background: linear-gradient(135deg, #06b6d4 0%, #c084fc 100%);
    border-color: #06b6d4;
}

.chatbot-button:active {
    transform: scale(0.95);
}

.chatbot-button-active {
    background: linear-gradient(135deg, #0088ee 0%, #8b5cf6 100%);
    border-color: #00d4ff;
}

.chatbot-button svg {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
}

/* Badge for notifications */
.chatbot-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
}

/* Chatbot Window */
.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 420px;
    height: 75vh;
    max-height: calc(100vh - 140px);
    background: white;
    border-radius: 20px;
    border: 3px solid #00d4ff;
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.4),
                0 4px 12px rgba(157, 78, 221, 0.3);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    resize: none;
}

.chatbot-window-open {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Header */
.chatbot-header {
    background: linear-gradient(135deg, #00d4ff 0%, #a855f7 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.chatbot-avatar {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.chatbot-avatar svg {
    width: 24px;
    height: 24px;
}

.chatbot-header-text h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.chatbot-header-text p {
    margin: 2px 0 0 0;
    font-size: 13px;
    opacity: 0.85;
    font-weight: 400;
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.chatbot-close:active {
    transform: scale(0.95);
}

/* Question Context Section */
.chatbot-question-context {
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
    padding: 12px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.chatbot-context-header {
    margin-bottom: 10px;
}

.chatbot-context-label-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.chatbot-context-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.chatbot-question-id-input-inline {
    width: 70px;
    padding: 6px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    background: white;
    outline: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-family: inherit;
    text-align: center;
}

.chatbot-question-id-input-inline:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.chatbot-question-id-input-inline::placeholder {
    color: #9ca3af;
    text-transform: none;
    font-weight: 400;
}

.chatbot-context-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chatbot-context-suggestion {
    background: white;
    border: 1.5px solid #e0e0e0;
    color: #3b82f6;
    padding: 6px 12px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.chatbot-context-suggestion:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
    border-color: #8b5cf6;
    color: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.2);
}

.chatbot-context-suggestion:active {
    transform: translateY(0);
}

.chatbot-context-empty {
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
    padding: 4px 0;
}

/* Messages Container */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Message Bubbles */
.chatbot-message {
    display: flex;
    animation: messageSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-message-user {
    justify-content: flex-end;
}

.chatbot-message-assistant {
    justify-content: flex-start;
}

.chatbot-message-content {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 14.5px;
    line-height: 1.6;
    word-wrap: break-word;
    position: relative;
}

.chatbot-message-user .chatbot-message-content {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.25);
}

.chatbot-message-assistant .chatbot-message-content {
    background: white;
    color: #374151;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.chatbot-message-error .chatbot-message-content {
    background: #fff3f3;
    color: #cc0000;
    border: 1px solid rgba(204, 0, 0, 0.2);
}

/* Message formatting */
.chatbot-message-content strong {
    font-weight: 700;
}

.chatbot-message-content em {
    font-style: italic;
}

.chatbot-message-content code {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.chatbot-message-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.chatbot-message-content li {
    margin: 4px 0;
}

/* Quick Actions */
.chatbot-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.chatbot-quick-action {
    background: white;
    border: 1.5px solid #e0e0e0;
    color: #0066cc;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.chatbot-quick-action:hover {
    background: linear-gradient(135deg, #f0f7ff 0%, #faf5ff 100%);
    border-color: #8b5cf6;
    color: #7c3aed;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}

.chatbot-quick-action:active {
    transform: translateY(0);
}

.chatbot-quick-action:focus-visible {
    outline: 3px solid #0066cc;
    outline-offset: 2px;
}

/* Typing Indicator */
.chatbot-typing-indicator {
    display: flex;
    gap: 6px;
    padding: 4px 0;
}

.chatbot-typing-indicator span {
    width: 8px;
    height: 8px;
    background: #8b5cf6;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.chatbot-typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.chatbot-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.chatbot-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* Input Container */
.chatbot-input-container {
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
    border-top: 1px solid #e8e8e8;
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chatbot-input {
    flex: 1;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: all 0.2s ease;
    max-height: 120px;
    line-height: 1.5;
    background: white;
    color: #374151;
}

.chatbot-input:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.chatbot-input::placeholder {
    color: #999;
}

.chatbot-send {
    background: linear-gradient(135deg, #00d4ff 0%, #9d4edd 100%);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chatbot-send:hover {
    background: linear-gradient(135deg, #06b6d4 0%, #c084fc 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.chatbot-send:active {
    transform: scale(0.95);
}

.chatbot-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
.chatbot-footer {
    padding: 10px 20px;
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
    border-top: 1px solid #e8e8e8;
    text-align: center;
}

.chatbot-powered {
    font-size: 11px;
    color: #999;
    font-weight: 500;
}

/* Copy Button */
.chatbot-copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 6px 8px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-message-content:hover .chatbot-copy-btn {
    opacity: 1;
}

.chatbot-copy-btn:hover {
    background: white;
    border-color: #00d4ff;
    transform: scale(1.05);
}

.chatbot-copy-btn:active {
    transform: scale(0.95);
}

/* Resize Handle */
.chatbot-resize-handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    cursor: nwse-resize;
    z-index: 10;
}

.chatbot-resize-handle::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 14px;
    height: 14px;
    border-left: 3px solid rgba(255, 255, 255, 0.6);
    border-top: 3px solid rgba(255, 255, 255, 0.6);
}

.chatbot-resize-handle:hover::after {
    border-color: rgba(255, 255, 255, 0.9);
}

/* Proactive Suggestion Tooltip */
.chatbot-suggestion-tooltip {
    position: fixed;
    bottom: 90px;
    right: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px;
    max-width: 280px;
    z-index: 999;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.chatbot-suggestion-tooltip.chatbot-suggestion-visible {
    opacity: 1;
    transform: translateY(0);
}

.chatbot-suggestion-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-suggestion-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.chatbot-suggestion-text {
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
}

.chatbot-suggestion-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.chatbot-suggestion-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.chatbot-suggestion-tooltip:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

/* Chatbot Button Pulse Animation */
@keyframes chatbot-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(157, 78, 221, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(157, 78, 221, 0);
    }
}

.chatbot-button-pulse {
    animation: chatbot-pulse 2s infinite;
}

/* New Conversation Indicator */
.chatbot-new-conversation-indicator {
    text-align: center;
    padding: 8px 16px;
    margin: 12px 0;
    background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
    border-radius: 12px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Responsive Design */
@keyframes chatbot-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(157, 78, 221, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(157, 78, 221, 0);
    }
}

.chatbot-button-pulse {
    animation: chatbot-pulse 2s infinite;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .chatbot-window {
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh !important;
        right: 0 !important;
        bottom: 0 !important;
        border-radius: 0;
        border: none;
    }
    
    .chatbot-button {
        bottom: 16px;
        right: 16px;
        width: 56px;
        height: 56px;
    }
    
    .chatbot-button svg {
        width: 24px;
        height: 24px;
    }
    
    .chatbot-resize-handle {
        display: none;
    }
    
    .chatbot-header {
        border-radius: 0;
    }
    
    .chatbot-close {
        width: 44px;
        height: 44px;
    }
}

/* Accessibility */
.chatbot-button:focus-visible,
.chatbot-close:focus-visible,
.chatbot-send:focus-visible {
    outline: 3px solid #00d4ff;
    outline-offset: 2px;
}


/* ========================================
   OPTIONAL COMMENTS (Requirement 50)
   ======================================== */

.optional-comment-container {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.4s ease-out, opacity 0.4s ease-out, margin-top 0.4s ease-out;
}

.optional-comment-container.show {
  max-height: 250px;
  opacity: 1;
  margin-top: 16px;
}

.optional-comment-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #6c757d;
  margin-bottom: 8px;
}

.optional-comment-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.optional-comment-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ========================================
   ENHANCED FILE UPLOAD (Requirement 51)
   ======================================== */

.file-upload-wrapper {
  margin-top: 16px;
  padding: 24px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px dashed #dee2e6;
}

.file-upload-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.file-upload-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #212529;
}

.file-upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px;
  background: white;
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-dropzone:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.file-upload-input {
  display: none !important;
}

.file-upload-button {
  padding: 20px 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.file-upload-button:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.file-upload-status {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

.file-upload-formats {
  font-size: 12px;
  color: #adb5bd;
  margin: 0;
  text-align: center;
  max-width: 500px;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.file-item:hover {
  border-color: #667eea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.file-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-item-icon {
  font-size: 24px;
}

.file-item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.file-item-name {
  font-size: 14px;
  font-weight: 500;
  color: #212529;
}

.file-item-size {
  font-size: 12px;
  color: #6c757d;
}

.file-remove {
  padding: 8px 12px;
  background: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-remove:hover {
  background: #c82333;
  transform: scale(1.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .file-upload-wrapper {
    padding: 16px;
  }
  
  .file-upload-dropzone {
    padding: 24px 16px;
  }
  
  .file-upload-button {
    padding: 16px 32px;
    font-size: 14px;
  }
  
  .file-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .file-remove {
    width: 100%;
  }
  
  .optional-comment-textarea {
    min-height: 60px;
  }
}


/* ========================================
   NUEVOS ESTILOS - 2026-02-17
   ======================================== */

/* Highlight de error para preguntas faltantes */
.question-error-highlight {
    border: 2px solid #dc2626 !important;
    border-radius: 12px !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1) !important;
    animation: errorPulse 0.5s ease-in-out;
}

@keyframes errorPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Estilos mejorados para mensaje de guardado */
.save-status {
    display: block;
    min-height: 22px;
    line-height: 22px;
    font-size: 13px;
    font-weight: 600;
    color: #66b8cc;
    text-align: center;
    margin-bottom: 12px;
}

/* Estilos mejorados para preguntas de carga de archivos */
.file-upload-container {
    margin-top: 16px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    background: #f8f9fa;
    text-align: center;
    transition: all 0.3s ease;
}

.file-upload-container:hover {
    border-color: #d0d0d0;
    background: #f0f2f5;
}

.file-upload-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 400;
    color: #6c757d;
    margin-bottom: 12px;
}

.file-upload-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.file-upload-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.file-upload-input {
    display: none;
}

.file-name-display {
    display: block;
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 8px;
}

.file-help-text {
    display: block;
    font-size: 12px;
    color: #9ca3af;
    font-style: italic;
}

.file-list {
    margin-top: 16px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    margin-bottom: 8px;
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-item-icon {
    font-size: 20px;
}

.file-item-name {
    font-size: 14px;
    font-weight: 500;
    color: rgba(15, 23, 42, .75);
}

.file-item-size {
    font-size: 12px;
    color: #6c757d;
    margin-left: 8px;
}

.file-remove {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-remove:hover {
    background: #c3e6cb;
    border-color: #b1dfbb;
    transform: scale(1.05);
}

/* Estilos mejorados para preguntas tipo matriz */
.matrix-radio-container {
    margin-top: 16px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.matrix-radio-table {
    width: 100%;
    table-layout: fixed;
    min-width: 600px;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.matrix-radio-table thead {
    background: linear-gradient(135deg, #f0f9ff 0%, #faf5ff 100%);
}

/* Control de word-wrap para todas las celdas */
.matrix-radio-table th,
.matrix-radio-table td {
    word-wrap: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    padding: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

/* Primera columna: labels de filas (40% del ancho) */
.matrix-radio-table th:first-child,
.matrix-radio-table td:first-child {
    width: 40%;
    min-width: 150px;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
    color: rgba(15, 23, 42, .75);
}

/* Columnas de opciones: centradas */
.matrix-radio-table th:not(:first-child),
.matrix-radio-table td:not(:first-child) {
    text-align: center;
    width: auto;
}

/* Estilos específicos para headers de columnas */
.matrix-radio-table thead th:not(:first-child) {
    font-size: 14px;
    font-weight: 600;
    color: rgba(15, 23, 42, .75);
}

/* Estilos para celdas de datos (primera columna) */
.matrix-radio-table tbody td:first-child {
    background: rgba(255, 255, 255, 0.5);
}

/* Filas alternas */
.matrix-radio-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.02);
}

/* Hover en filas */
.matrix-radio-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.05);
}

/* Radio buttons */
.matrix-radio-table input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
    margin: 0 auto;
    display: block;
}

@media (max-width: 768px) {
    .matrix-radio-container {
        overflow-x: scroll;
    }
    
    .matrix-radio-table {
        min-width: 600px;
    }
    
    /* En móvil, reducir padding para ahorrar espacio */
    .matrix-radio-table th,
    .matrix-radio-table td {
        padding: 8px;
        font-size: 13px;
    }
}


/* ========================================
   CHECKBOX ARRAY STYLES - LEFT ALIGNED
   ======================================== */

/* Container for checkbox arrays (multiple_checkbox type) */
.checkbox-group-array {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

/* Individual checkbox item */
.checkbox-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background-color: white;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 14px;
    transition: all 0.2s ease;
}

.checkbox-item:hover {
    border-color: var(--secondary);
    box-shadow: 0 2px 4px rgba(91,231,255,0.1);
}

/* Checkbox label - LEFT ALIGNED with flexbox */
.checkbox-option-array {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: rgba(15,23,42,.75);
    font-size: 14px;
    line-height: 1.4;
}

.checkbox-option-array input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--secondary);
    flex-shrink: 0;
}

/* Checkbox comment field (for hasComment property) */
.checkbox-item .checkbox-comment-field {
    margin-top: 10px;
    margin-left: 28px;
    padding: 10px;
    background-color: rgba(15,23,42,.04);
    border-radius: 14px;
    border-left: 3px solid var(--secondary);
    animation: fadeInComment 0.3s ease-out;
}

.checkbox-item .checkbox-comment-field .comment-label {
    display: block;
    font-size: 13px;
    color: rgba(15,23,42,.75);
    margin-bottom: 5px;
    font-weight: 500;
}

.checkbox-item .checkbox-comment-field .comment-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 14px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    background-color: white;
}

.checkbox-item .checkbox-comment-field .comment-textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(91,231,255,0.2);
}
