/**
 * PickTwo AI Quiz Styles
 */

.picktwo-quiz-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    font-family: 'Open Sans', Arial, sans-serif;
}

/* Intro Section */
.quiz-intro {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quiz-intro h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    color: #002C51;
    margin-bottom: 10px;
}

.quiz-intro .tagline {
    font-size: 18px;
    color: #999999;
    margin-bottom: 30px;
}

.intro-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px auto;
    max-width: 500px;
    text-align: left;
}

.intro-points .point {
    color: #333;
    font-size: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

/* Mode Selection */
.mode-selection {
    margin: 30px 0;
}

.mode-selection h3 {
    color: #002C51;
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.mode-options {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.mode-option {
    flex: 1;
    display: block;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.mode-option:hover {
    background: #e8f2ff;
    border-color: #0066CC;
}

.mode-option.selected {
    background: #e8f2ff;
    border-color: #0066CC;
}

.mode-option input {
    margin-right: 10px;
}

.mode-content strong {
    color: #002C51;
    font-size: 16px;
    display: block;
    margin-bottom: 5px;
}

.mode-content p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Email Form */
.email-form {
    margin: 40px 0;
}

.email-input {
    width: 100%;
    max-width: 400px;
    padding: 14px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.email-input:focus {
    outline: none;
    border-color: #0066CC;
}

.start-button {
    background: #0066CC;
    color: white;
    padding: 14px 40px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.start-button:hover:not(:disabled) {
    background: #0052a3;
}

.start-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Email Sent */
.email-sent {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.email-sent h2 {
    color: #002C51;
    margin-bottom: 20px;
}

.email-sent p {
    color: #666;
    font-size: 16px;
    margin-bottom: 15px;
}

.email-sent .note {
    margin-top: 30px;
    font-size: 14px;
    color: #999;
}

/* Quiz Content */
.quiz-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 0;
    overflow: hidden;
}

/* Progress Bar */
.progress-bar {
    background: #f5f5f5;
    height: 60px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #e0e0e0;
}

.progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(90deg, #0066CC, #3FA9F5);
    transition: width 0.3s ease;
    opacity: 0.2;
}

.progress-text {
    position: relative;
    z-index: 1;
    font-weight: 600;
    color: #002C51;
    font-size: 14px;
}

/* Question Section */
.question-section {
    padding: 40px;
}

.dimension-label {
    color: #0066CC;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.question-text {
    font-size: 20px;
    color: #002C51;
    line-height: 1.4;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Likert Scale */
.likert-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 30px 0;
}

.likert-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.likert-option:hover {
    background: #e8f2ff;
    border-color: #0066CC;
}

.likert-option.selected {
    background: #e8f2ff;
    border-color: #0066CC;
}

.likert-option input {
    margin-right: 15px;
}

.likert-value {
    font-size: 18px;
    font-weight: bold;
    color: #0066CC;
    min-width: 30px;
    margin-right: 15px;
}

.likert-label {
    font-size: 16px;
    color: #333;
}

/* Boolean Options */
.bool-options {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.bool-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 18px;
    font-weight: 600;
}

.bool-option:hover {
    background: #e8f2ff;
    border-color: #0066CC;
}

.bool-option input {
    margin-right: 10px;
}

.bool-option input:checked + span {
    color: #0066CC;
}

/* Text Input */
.text-input textarea {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
}

.text-input textarea:focus {
    outline: none;
    border-color: #0066CC;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    padding: 20px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
}

.nav-button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-button.back {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
}

.nav-button.back:hover {
    background: #f8f9fa;
}

.nav-button.next {
    background: #0066CC;
    color: white;
    margin-left: auto;
}

.nav-button.next:hover {
    background: #0052a3;
}

/* Results */
.results-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 40px;
    text-align: center;
}

.results-content h2 {
    font-size: 32px;
    color: #002C51;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
}

.overall-score {
    background: linear-gradient(135deg, #0066CC, #3FA9F5);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin: 30px 0;
}

.score-number {
    font-size: 72px;
    font-weight: bold;
    line-height: 1;
}

.score-label {
    font-size: 18px;
    margin-top: 10px;
    opacity: 0.9;
}

.band-label {
    font-size: 24px;
    margin-top: 20px;
    font-weight: 600;
}

/* Strengths and Gaps */
.strengths-gaps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
    text-align: left;
}

.strengths, .gaps {
    padding: 25px;
    border-radius: 8px;
}

.strengths {
    background: #e8f5e8;
    border-left: 4px solid #4CAF50;
}

.gaps {
    background: #ffe8e8;
    border-left: 4px solid #FF5722;
}

.strengths h3, .gaps h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.strengths .item, .gaps .item {
    padding: 8px 0;
    font-size: 15px;
}

/* Next Steps */
.next-steps {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.next-steps h3 {
    margin-bottom: 15px;
    color: #002C51;
}

.next-steps p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.cta-button {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.cta-button.primary {
    background: #0066CC;
    color: white;
}

.cta-button.primary:hover {
    background: #0052a3;
}

.cta-button.secondary {
    background: white;
    color: #0066CC;
    border-color: #0066CC;
}

.cta-button.secondary:hover {
    background: #f0f7ff;
}

/* Error Messages */
.error-message {
    background: #fee;
    color: #c00;
    padding: 12px 20px;
    border-radius: 6px;
    margin: 20px 0;
    font-size: 14px;
}

/* Privacy Note */
.privacy-note {
    font-size: 13px;
    color: #999;
    margin-top: 30px;
}

/* Team Setup Forms */
.team-setup-form, .team-invites-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #002C51;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #0066CC;
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: border-color 0.3s;
    resize: vertical;
    font-family: inherit;
}

.form-textarea:focus {
    outline: none;
    border-color: #0066CC;
}

.form-help {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.team-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.team-info p {
    margin: 5px 0;
    color: #333;
}

/* Team Results */
.team-results {
    max-width: 1000px;
    margin: 0 auto;
}

.team-overview {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
}

.team-score-card {
    background: linear-gradient(135deg, #0066CC, #3FA9F5);
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.team-score .score-number {
    font-size: 48px;
    font-weight: bold;
    line-height: 1;
}

.team-score .score-label {
    font-size: 16px;
    margin: 10px 0;
    opacity: 0.9;
}

.participant-count {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 15px;
}

.team-metrics {
    display: flex;
    gap: 20px;
}

.metric-card {
    flex: 1;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.metric-value {
    font-size: 32px;
    font-weight: bold;
    color: #0066CC;
    line-height: 1;
}

.metric-label {
    font-size: 16px;
    font-weight: 600;
    color: #002C51;
    margin: 10px 0 5px;
}

.metric-description {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

.team-dimensions {
    margin: 40px 0;
}

.team-dimensions h3 {
    color: #002C51;
    margin-bottom: 25px;
}

.team-dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.dimension-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dimension-header h4 {
    color: #002C51;
    margin: 0;
    font-size: 16px;
}

.dimension-weight {
    font-size: 12px;
    color: #666;
    background: #e0e0e0;
    padding: 3px 8px;
    border-radius: 12px;
}

.dimension-score-display {
    position: relative;
    background: #e0e0e0;
    border-radius: 20px;
    height: 24px;
    overflow: hidden;
}

.score-bar {
    height: 100%;
    background: linear-gradient(90deg, #0066CC, #3FA9F5);
    border-radius: 20px;
    transition: width 0.8s ease;
}

.score-text {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    font-weight: 600;
    color: #002C51;
}

.score-distribution {
    margin: 40px 0;
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
}

.score-range-summary {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

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

.stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #0066CC;
}

.histogram {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: 120px;
    padding: 10px 0;
}

.histogram-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 2px;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(to top, #0066CC, #3FA9F5);
    border-radius: 4px 4px 0 0;
    transition: height 0.8s ease;
    min-height: 4px;
}

.bar-label {
    font-size: 10px;
    color: #666;
    margin-top: 5px;
    text-align: center;
}

.team-insights {
    margin: 40px 0;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.insight-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #0066CC;
}

.insight-card.strength {
    border-left-color: #4CAF50;
    background: #e8f5e8;
}

.insight-card.opportunity {
    border-left-color: #FF9800;
    background: #fff3e0;
}

.insight-card h4 {
    color: #002C51;
    margin: 0 0 10px;
    font-size: 16px;
}

.insight-card p {
    color: #333;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.team-next-steps {
    margin: 40px 0;
}

.team-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.action-priority {
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid;
}

.action-priority.high {
    border-left-color: #FF5722;
    background: #ffe8e8;
}

.action-priority.medium {
    border-left-color: #FF9800;
    background: #fff3e0;
}

.action-priority h4 {
    color: #002C51;
    margin: 0 0 15px;
    font-size: 16px;
}

.action-priority ul {
    margin: 0;
    padding-left: 20px;
}

.action-priority li {
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.team-cta-section {
    background: #f0f7ff;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 40px;
}

.team-cta-section h3 {
    color: #002C51;
    margin-bottom: 10px;
}

.team-cta-section p {
    color: #666;
    margin-bottom: 30px;
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px;
    font-size: 18px;
    color: #666;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .picktwo-quiz-container {
        padding: 10px;
    }

    .quiz-intro h2 {
        font-size: 28px;
    }

    .intro-points {
        grid-template-columns: 1fr;
    }

    .question-section {
        padding: 20px;
    }

    .question-text {
        font-size: 18px;
    }

    .likert-option {
        padding: 12px;
    }

    .likert-value {
        font-size: 16px;
    }

    .likert-label {
        font-size: 14px;
    }

    .navigation-buttons {
        padding: 20px;
    }

    .strengths-gaps {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .overall-score {
        padding: 30px 20px;
    }

    .score-number {
        font-size: 54px;
    }

    .mode-options {
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
        gap: 15px;
    }

    .form-actions .nav-button {
        order: 2;
    }

    .form-actions .start-button {
        order: 1;
    }

    /* Team Results Mobile */
    .team-overview {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-metrics {
        flex-direction: column;
    }

    .team-dimensions-grid {
        grid-template-columns: 1fr;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .team-actions {
        grid-template-columns: 1fr;
    }

    .score-range-summary {
        flex-direction: column;
        gap: 15px;
    }

    .team-score .score-number {
        font-size: 36px;
    }

    .metric-value {
        font-size: 24px;
    }
}