/* ============================================
   Lazarus Test - Specific Styles
   ============================================ */

/* Survey Wrapper */
.survey-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 40px 20px;
}

/* Survey Card */
.survey-card {
    background: #FFFFFF;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Header */
.survey-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.survey-title {
    font-size: 2rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
}

.survey-subtitle {
    font-size: 1rem;
    color: #425466;
    margin-bottom: 20px;
}

/* Progress Bar */
.progress-container {
    position: relative;
    height: 8px;
    background: #E2E8F0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #17A24D, #2B66F7);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    right: 0;
    top: -24px;
    font-size: 0.85rem;
    color: #64748B;
    font-weight: 500;
}

/* Form */
.survey-form {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    scrollbar-width: thin;
    scrollbar-color: rgba(162, 89, 255, 0.3) transparent;
}

.survey-form::-webkit-scrollbar {
    width: 4px;
}

.survey-form::-webkit-scrollbar-track {
    background: transparent;
}

.survey-form::-webkit-scrollbar-thumb {
    background: rgba(162, 89, 255, 0.3);
    border-radius: 4px;
}

.survey-form::-webkit-scrollbar-thumb:hover {
    background: rgba(162, 89, 255, 0.5);
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* Intro Screen */
.intro-screen {
    text-align: center;
}

.intro-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 4px;
}

.intro-subtitle {
    font-size: 1rem;
    color: #64748B;
    margin-bottom: 32px;
}

.intro-section {
    text-align: left;
    margin-bottom: 28px;
    padding: 20px;
    background: #F8FAFC;
    border-radius: 16px;
}

.intro-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 12px;
}

.intro-text {
    font-size: 0.95rem;
    color: #425466;
    line-height: 1.6;
    margin-bottom: 12px;
}

.intro-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.intro-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #425466;
}

.intro-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10B981;
    font-weight: 700;
}

/* Intro Blocks */
.intro-blocks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.intro-block {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
}

.intro-block-letter {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2D6FFF, #8B5CF6);
    color: #FFFFFF;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 10px;
    flex-shrink: 0;
}

.intro-block-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.intro-block-info strong {
    font-size: 0.95rem;
    color: #0F172A;
}

.intro-block-info span {
    font-size: 0.85rem;
    color: #64748B;
}

/* Intro Scale */
.intro-scale {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.intro-scale-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.intro-scale-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2D6FFF, #8B5CF6);
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.intro-scale-label {
    font-size: 0.9rem;
    color: #425466;
}

/* Intro Disclaimer */
.intro-disclaimer {
    text-align: left;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #FEF3C7;
    border-radius: 12px;
    border-left: 4px solid #F59E0B;
}

.intro-disclaimer p {
    font-size: 0.9rem;
    color: #92400E;
    line-height: 1.6;
    margin-bottom: 8px;
}

.intro-disclaimer p:last-child {
    margin-bottom: 0;
}

/* Start Button */
.start-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #17A24D, #2B66F7);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(45, 111, 255, 0.4);
}

/* Block Header */
.block-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E2E8F0;
}

.block-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
}

.block-instruction {
    font-size: 0.95rem;
    color: #425466;
    line-height: 1.6;
}

/* Likert Scale Legend */
.likert-scale-legend {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: #F8FAFC;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: #64748B;
}

/* Question Groups */
.question-group {
    margin-bottom: 24px;
    padding: 16px;
    background: #FAFAFA;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.question-group:hover {
    background: #F1F5F9;
}

.question-group.answered {
    background: #F0FDF4;
    border: 1px solid #86EFAC;
}

.question-group.error {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
}

.question-label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: #0F172A;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Likert Scale Options */
.likert-options {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.likert-btn {
    width: 48px;
    height: 48px;
    border: 2px solid #CBD5E1;
    border-radius: 50%;
    background: #FFFFFF;
    color: #0F172A;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.likert-btn:hover {
    border-color: #2D6FFF;
    background: rgba(45, 111, 255, 0.05);
    transform: scale(1.1);
}

.likert-btn.selected {
    background: linear-gradient(135deg, #2D6FFF, #8B5CF6);
    border-color: transparent;
    color: #FFFFFF;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(45, 111, 255, 0.3);
}

/* Buttons */
.next-btn,
.submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: #0F172A;
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
}

.next-btn:hover,
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
}

.next-btn:disabled,
.submit-btn:disabled {
    background: #94A3B8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.back-btn {
    padding: 14px 24px;
    background: transparent;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    color: #0F172A;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back-btn:hover {
    border-color: #0F172A;
    background: rgba(15, 23, 42, 0.05);
}

.form-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.form-buttons .next-btn,
.form-buttons .submit-btn {
    flex: 1;
    margin-top: 0;
}

/* Results Screen */
.results-screen {
    padding: 20px 0;
}

.results-screen.hidden {
    display: none;
}

.results-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 24px;
    text-align: center;
}

/* Result Sections */
.result-section {
    background: #F8FAFC;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.result-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #E2E8F0;
}

.result-subsection {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E2E8F0;
}

.result-subsection:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.result-subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: #425466;
    margin-bottom: 12px;
}

/* Result Bars */
.result-bar-container {
    position: relative;
    height: 24px;
    background: #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.result-bar {
    height: 100%;
    border-radius: 12px;
    transition: width 0.8s ease;
    background: linear-gradient(135deg, #17A24D, #2B66F7);
}

.result-bar.threat {
    background: linear-gradient(135deg, #EF4444, #F97316);
}

.result-bar.challenge {
    background: linear-gradient(135deg, #10B981, #06B6D4);
}

.result-bar.ignore {
    background: linear-gradient(135deg, #F59E0B, #EAB308);
}

.result-bar.problem {
    background: linear-gradient(135deg, #3B82F6, #6366F1);
}

.result-bar.emotion {
    background: linear-gradient(135deg, #EC4899, #8B5CF6);
}

.result-bar.avoidance {
    background: linear-gradient(135deg, #F97316, #EF4444);
}

.result-percent {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    font-weight: 700;
    color: #0F172A;
}

.result-level {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.result-level.low {
    color: #10B981;
}

.result-level.medium {
    color: #F59E0B;
}

.result-level.high {
    color: #EF4444;
}

.result-interpretation {
    font-size: 0.95rem;
    color: #425466;
    line-height: 1.6;
    padding: 16px;
    background: #FFFFFF;
    border-radius: 12px;
    border-left: 4px solid #2D6FFF;
}

/* Disclaimer */
.disclaimer {
    margin-top: 24px;
    padding: 20px;
    background: #FEF3C7;
    border-radius: 12px;
    border-left: 4px solid #F59E0B;
}

.disclaimer p {
    font-size: 0.9rem;
    color: #92400E;
    line-height: 1.6;
    margin-bottom: 8px;
}

.disclaimer p:last-child {
    margin-bottom: 0;
}

/* Restart Button */
.restart-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #A259FF, #8B5CF6);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 24px;
}

.restart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(162, 89, 255, 0.4);
}

/* Telegram Promo */
.telegram-promo {
    margin-top: 24px;
    text-align: center;
}

.telegram-text {
    font-size: 0.95rem;
    color: #64748B;
    margin-bottom: 12px;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0088cc, #00a0dc);
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-family: 'Raleway', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.telegram-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4);
}

.telegram-icon {
    width: 20px;
    height: 20px;
}

/* Footer */
.survey-footer {
    padding: 16px 32px;
    border-top: 1px solid #E2E8F0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.footer-text {
    color: #64748B;
    font-size: 0.85rem;
    text-align: center;
}

/* Error State */
.error-message {
    color: #EF4444;
    font-size: 0.85rem;
    margin-top: 8px;
    text-align: center;
}

/* Responsive */
@media (max-width: 767px) {
    .survey-wrapper {
        padding: 16px;
        align-items: flex-start;
    }

    .survey-card {
        max-height: none;
        border-radius: 20px;
        box-shadow: none;
        border: 1px solid #E2E8F0;
    }

    .survey-header {
        padding: 24px 16px 20px;
    }

    .survey-title {
        font-size: 1.5rem;
    }

    .survey-subtitle {
        font-size: 0.95rem;
    }

    .survey-form {
        padding: 20px 16px;
    }

    .block-title {
        font-size: 1.25rem;
    }

    .likert-scale-legend {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .question-group {
        padding: 12px;
    }

    .question-label {
        font-size: 0.95rem;
    }

    .likert-options {
        gap: 6px;
    }

    .likert-btn {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }

    .survey-footer {
        padding: 12px 16px;
    }

    .form-buttons {
        flex-direction: column;
    }

    .result-section {
        padding: 16px;
    }

    .result-interpretation {
        padding: 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .survey-title {
        font-size: 1.25rem;
    }

    .likert-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .result-section-title {
        font-size: 1.1rem;
    }
}
