/* Teamcheck Assessment Styles */

/* Question Items */
.question-item {
    padding: 20px;
    margin: 20px 0;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background-color: var(--color-bg-light);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.question-item p strong {
    font-weight: normal;
    font-size: 0.75em;
}

.question-item.hidden {
    display: none;
}

.question-item.visible {
    display: block;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Rating Scale */
.rating-scale {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.rating-option {
    flex: 1;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    transition: border-color 0.2s, background-color 0.2s;
}

.rating-option:hover {
    border-color: var(--color-primary);
    background-color: var(--color-bg-light);
}

.rating-option input[type="radio"] {
    margin-right: 5px;
}

.rating-option input[type="radio"]:checked {
    accent-color: var(--color-primary);
}

/* Progress Container */
.progress-container {
    margin: 30px 0;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background-color: var(--color-border);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary);
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    color: var(--color-text);
}

/* Motivation Message */
.motivation-message {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: var(--color-primary);
    margin: 20px 0;
    padding: 15px;
    background-color: var(--color-bg-light);
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.motivation-message.show {
    opacity: 1;
}

.motivation-message.hidden {
    display: none;
}

/* Email Section - Uses design tokens from main.css */
#email-section {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
}

#email-section.hidden {
    display: none;
}

#email-section h3 {
    color: var(--color-secondary);
    margin-top: 0;
}

#email-section label {
    display: block;
    margin: var(--space-md) 0 var(--space-xs);
    font-weight: 600;
}

#email-section input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 1rem;
    background: var(--color-bg-white);
    color: var(--color-text);
    min-height: 44px;
}

#email-section input[type="email"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(224, 215, 0, 0.2);
}

/* Field Help Text */
.field-help {
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-top: var(--space-xs);
}

/* GDPR Consent - Inherits from main styles */
.gdpr-consent-label {
    display: flex;
    align-items: flex-start;
    margin: var(--space-md) 0;
}

.gdpr-consent-label input[type="checkbox"] {
    margin-right: var(--space-xs);
    margin-top: 3px;
    flex-shrink: 0;
}

.gdpr-consent-label a {
    color: var(--color-link);
}

/* Submit Button - Force black text on yellow background */
#analysis-request-form button[type="submit"] {
    color: #000000 !important;
}

#analysis-request-form button[type="submit"] strong {
    color: #000000 !important;
}

#submit-assessment:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Summary Section */
#assessment-summary {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--color-bg-light);
    border-radius: 8px;
}

#assessment-summary.hidden {
    display: none;
}

#assessment-summary h2 {
    color: var(--color-text);
    margin-top: 0;
}

/* Radar Chart Container */
.chart-container {
    margin: 30px auto;
    padding: 20px;
    background: var(--color-bg-white);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    max-width: 600px;
}

#teamRadarChart {
    max-width: 100%;
    height: auto;
}

/* Team Feedback Item - Florian Speech Bubble */
.team-feedback-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin: 30px 0;
}

.team-member-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.team-member-avatar-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-primary);
    margin-bottom: 8px;
}

.team-member-avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
}

.speech-bubble {
    flex: 1;
    background: var(--color-bg-white);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.speech-bubble::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--color-border) transparent transparent;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    left: -7px;
    top: 22px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 8px 8px 0;
    border-color: transparent var(--color-bg-white) transparent transparent;
}

.speech-bubble p {
    margin: 0;
    line-height: 1.6;
}

.feedback-variant {
    display: none;
}

.feedback-variant[style*="display: inline"] {
    display: inline;
}

@media (max-width: 768px) {
    .team-feedback-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .speech-bubble::before,
    .speech-bubble::after {
        display: none;
    }
}

#assessment-summary h3 {
    color: var(--color-text);
}

#assessment-summary ul {
    line-height: 1.8;
}

#assessment-summary li {
    margin: 10px 0;
}

/* Summary Scores Styling */
.summary-scores {
    list-style: none;
    padding: 0;
}

.summary-score-item {
    padding: 12px;
    margin: 8px 0;
    background-color: var(--color-bg-white);
    border-left: 4px solid var(--color-border);
    border-radius: 4px;
}

.score-value {
    font-weight: bold;
    font-size: 1.1em;
}

.score-status {
    font-weight: normal;
}

.score-status.status-good {
    color: var(--color-primary);
}

.score-status.status-potential {
    color: var(--color-secondary);
}

.score-status.status-attention {
    color: var(--color-secondary);
}

.summary-explanation {
    margin-top: 20px;
    padding: 15px;
    background-color: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-style: italic;
}

/* CTA Content */
.cta-content {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    text-align: center;
}

/* Error Message */
.error-message {
    background-color: var(--color-bg-light);
    color: var(--color-secondary);
    padding: 15px;
    border: 2px solid var(--color-secondary);
    border-radius: 4px;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .rating-scale {
        flex-direction: column;
        gap: 10px;
    }

    .rating-option {
        width: 100%;
    }

    #email-section {
        padding: 20px;
    }

    #assessment-summary {
        padding: 20px;
    }
}

/* Utility Classes */
.page-subtitle {
    font-size: 0.6em;
    font-weight: normal;
}

.text-center {
    text-align: center;
}

.progress-fill {
    width: 0%;
}
