/* Customer Journey Analysis - ImpelHub Branded Results */

:root {
    --impel-primary: #5736fd;
    --impel-primary-light: #7c5cff;
    --impel-secondary: #066aab;
    --impel-gradient-start: #5736fd;
    --impel-gradient-end: #7c5cff;
    --bg-light: #f8f9fc;
    --bg-white: #ffffff;
    --text-dark: #1a1a2e;
    --text-body: #4a4a68;
    --text-muted: #6b7280;
    --border-light: #e5e7eb;
    --success-green: #10b981;
    --warning-orange: #f59e0b;
    --alert-pink: #ec4899;
    --traditional-color: #10b981;
    --pinball-color: #ec4899;
    --mixed-color: #f59e0b;
}

.cj-results-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-body);
    line-height: 1.6;
    background: var(--bg-light);
}

.cj-results-container .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Result Header - Purple Gradient */
.result-header-wrapper {
    padding: 60px 0 50px;
    text-align: center;
    background: linear-gradient(135deg, var(--impel-gradient-start) 0%, var(--impel-gradient-end) 100%);
    color: #fff;
}

.result-header-wrapper.pinball,
.result-header-wrapper.traditional {
    background: linear-gradient(135deg, var(--impel-gradient-start) 0%, var(--impel-gradient-end) 100%);
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.result-badge.pinball,
.result-badge.traditional {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge-icon {
    font-size: 1.2em;
}

.result-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #fff !important;
}

.result-header-wrapper.pinball .result-title,
.result-header-wrapper.traditional .result-title {
    color: #fff !important;
}

.result-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.score-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.score-value {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
}

/* Scroll Indicator */
.scroll-indicator {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.scroll-indicator a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

/* Score Meter */
.score-meter-wrapper {
    padding: 40px 0;
    background: var(--bg-white);
}

.score-meter {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 500;
}

.meter-label-traditional {
    color: var(--traditional-color);
}

.meter-label-pinball {
    color: var(--pinball-color);
}

.meter-bar {
    height: 12px;
    background: linear-gradient(90deg, var(--traditional-color), var(--mixed-color), var(--pinball-color));
    border-radius: 6px;
    position: relative;
    margin-bottom: 8px;
}

.meter-marker {
    position: absolute;
    top: -6px;
    width: 24px;
    height: 24px;
    background: var(--impel-primary);
    border: 3px solid #fff;
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 8px rgba(87, 54, 253, 0.4);
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.meter-threshold {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 24px;
    background: rgba(255, 255, 255, 0.6);
}

.meter-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0 4px;
}

/* Summary Section */
.summary-wrapper {
    padding: 40px 0;
    background: var(--bg-light);
}

.summary-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.summary-card h3 {
    font-size: 1.25rem;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-weight: 600;
}

.section-icon {
    font-size: 1.1em;
}

.summary-card p {
    color: var(--text-body);
    line-height: 1.8;
    margin: 0;
}

/* Dimension Analysis */
.dimension-wrapper {
    padding: 40px 0;
    background: var(--bg-white);
}

.dimension-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dimension-header {
    margin-bottom: 24px;
}

.dimension-header h3 {
    font-size: 1.25rem;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-weight: 600;
}

.dimension-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.dimensions-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dimension-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dimension-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dimension-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

.dimension-score {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.dimension-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.dimension-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.dimension-fill.traditional {
    background: var(--traditional-color);
}

.dimension-fill.mixed {
    background: var(--mixed-color);
}

.dimension-fill.pinball {
    background: var(--pinball-color);
}

.dimension-insight {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Insights Section */
.insights-wrapper {
    padding: 40px 0;
    background: var(--bg-light);
}

.insights-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.insights-card h3 {
    font-size: 1.25rem;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-weight: 600;
}

.insights-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.insight-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--impel-primary);
}

.insight-item.warning {
    border-left-color: var(--mixed-color);
}

.insight-item.success {
    border-left-color: var(--traditional-color);
}

.insight-item.alert {
    border-left-color: var(--pinball-color);
}

.insight-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.insight-content {
    flex: 1;
}

.insight-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.insight-description {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
}

/* Recommendations Section */
.recommendations-wrapper {
    padding: 40px 0;
    background: var(--bg-white);
}

.recommendations-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.recommendations-card h3 {
    font-size: 1.25rem;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-weight: 600;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.recommendation-item {
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.recommendation-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.recommendation-number {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--impel-primary), var(--impel-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.recommendation-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
}

.recommendation-description {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
}

/* CTA Section */
.cta-wrapper {
    padding: 40px 0;
    background: var(--bg-light);
}

.cta-card {
    background: linear-gradient(135deg, var(--impel-gradient-start) 0%, var(--impel-gradient-end) 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: #fff;
}

.cta-card .cta-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.cta-card h3 {
    font-size: 1.5rem;
    margin: 0 0 16px 0;
    color: #fff;
    font-weight: 600;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 24px;
}

.btn-cta {
    display: inline-block;
    background: #fff;
    color: var(--impel-primary);
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: var(--impel-primary);
}

/* Answers Section */
.answers-wrapper {
    padding: 40px 0;
    background: var(--bg-white);
}

.answers-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.answers-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    background: var(--bg-light);
}

.answers-list {
    padding: 0;
}

.answer-item {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
}

.answer-item:last-child {
    border-bottom: none;
}

.answer-question {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.answer-value {
    color: var(--text-dark);
    font-weight: 500;
}

.answer-score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 8px;
    font-weight: 600;
}

.answer-score.zero {
    background: rgba(16, 185, 129, 0.1);
    color: var(--traditional-color);
}

.answer-score.low {
    background: rgba(245, 158, 11, 0.1);
    color: var(--mixed-color);
}

.answer-score.high {
    background: rgba(236, 72, 153, 0.1);
    color: var(--pinball-color);
}

/* Feedback Section */
.feedback-wrapper {
    padding: 60px 0;
    background: var(--bg-light);
}

.feedback-section {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.feedback-section h3 {
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.feedback-form {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
}

/* Star Rating */
.strategic-star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 5px;
    margin-bottom: 30px;
}

.strategic-star-rating input {
    display: none;
}

.strategic-star-rating label {
    font-size: 36px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s ease;
}

.strategic-star-rating label:hover,
.strategic-star-rating label:hover ~ label,
.strategic-star-rating input:checked ~ label {
    color: #fbbf24;
}

/* Interest Question */
.interest-question {
    margin-bottom: 25px;
    background: linear-gradient(135deg, rgba(87, 54, 253, 0.05), rgba(124, 92, 255, 0.05));
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(87, 54, 253, 0.1);
}

.interest-question p {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.interest-options {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.interest-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-white);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.interest-option:hover {
    border-color: var(--impel-primary);
    box-shadow: 0 2px 8px rgba(87, 54, 253, 0.1);
}

.interest-option input {
    accent-color: var(--impel-primary);
}

.interest-option span {
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Feedback Textarea */
.feedback-textarea {
    margin-bottom: 25px;
    text-align: left;
}

.feedback-textarea label {
    display: block;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.optional-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 400;
}

.feedback-textarea textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.feedback-textarea textarea:focus {
    outline: none;
    border-color: var(--impel-primary);
    box-shadow: 0 0 0 3px rgba(87, 54, 253, 0.1);
}

.feedback-textarea textarea::placeholder {
    color: var(--text-muted);
}

/* Submit Button */
.feedback-submit {
    text-align: center;
}

.feedback-submit button {
    background: linear-gradient(135deg, var(--impel-primary), var(--impel-primary-light));
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.feedback-submit button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(87, 54, 253, 0.3);
}

.feedback-submit button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Feedback Message */
.feedback-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.feedback-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--traditional-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.feedback-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Error State */
.cj-error {
    text-align: center;
    padding: 60px 20px;
    background: #fef2f2;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 600px;
}

.cj-error h2 {
    color: #dc2626;
    margin-bottom: 15px;
}

.cj-error p {
    color: #7f1d1d;
}
.mht-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 28px 32px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e5e7eb !important;
    max-width: 640px;
    margin: 0 auto;
    margin-top: 50px;
}
.mht-feedback-card{
     max-width: 640px;
}
.mht-card-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 20px 0 !important;
}
.mht-cta-card {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%) !important;
    border: 1px solid #bfdbfe !important;
    /* border-left: 4px solid #6366f1 !important; */
}
.mht-cta-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 0 10px 0 !important;
}

p.mht-cta-text {
    color: #475569;
}
.mht-cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.mht-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 50px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    
}
a.mht-btn.mht-btn-primary {
    background: #5736FD !important;
    color:#fff;
}
.mht-btn-secondary {
    background: #ffffff !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}
.mht-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 28px 32px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid #e5e7eb !important;
    max-width: 640px;
    margin: 0 auto;
    margin-top: 50px;
}
.mht-feedback-card{
     max-width: 640px;
}
.mht-card-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 20px 0 !important;
}
.mht-cta-card {
    background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%) !important;
    border: 1px solid #bfdbfe !important;
    /* border-left: 4px solid #6366f1 !important; */
}
.mht-cta-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 0 10px 0 !important;
}

p.mht-cta-text {
    color: #475569;
}
.mht-cta-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.mht-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    border-radius: 50px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    
}
a.mht-btn.mht-btn-primary {
    background: #5736FD !important;
    color:#fff;
}
.mht-btn-secondary {
    background: #ffffff !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}
/* Responsive */
@media (max-width: 768px) {
    .result-title {
        font-size: 2rem;
    }
    
    .result-header-wrapper {
        padding: 40px 0 30px;
    }
    
    .score-meter,
    .summary-card,
    .dimension-card,
    .insights-card,
    .recommendations-card {
        padding: 24px;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .interest-options {
        flex-direction: column;
    }
    
    .feedback-form {
        padding: 25px;
    }
    
    .cta-card {
        padding: 30px 20px;
    }
    
    .cta-card h3 {
        font-size: 1.25rem;
    }
    
    .btn-cta {
        width: 100%;
        padding: 14px 24px;
    }
}

@media (max-width: 480px) {
    .meter-scale {
        font-size: 0.65rem;
    }
    
    .result-badge {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .score-display {
        font-size: 1rem;
    }
    
    .score-value {
        font-size: 1.3rem;
    }
    
    .strategic-star-rating label {
        font-size: 28px;
    }
      .mht-cta-card {
        text-align: center;
    }
    .mht-cta-buttons {
        justify-content: center;
    }
}
