/* Try It Out Page Styles */

/* Modal width - match index page (70rem) */
.modal-content {
    max-width: 70rem !important;
    width: 100% !important;
}

/* Demo Selection Cards */
.demo-card {
    transform: translateY(0);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.demo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Survey Section */
.survey-section {
    padding: 60px 20px;
    display: none; /* Hidden by default until demo is selected */
}

.survey-section.active {
    display: block;
}

/* Category Selection Buttons */
.category-btn {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark .category-btn {
    background: #1a1f2e;
    border-color: #374151;
}

.category-btn:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.category-btn.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.dark .category-btn.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
}

.dark .survey-section {
    background: transparent;
}

.survey-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 30px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.dark .tab-btn {
    background: #1a1f2e;
    border-color: #374151;
    color: #f9fafb;
}

.tab-btn:hover:not(:disabled) {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.tab-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tab-btn svg {
    width: 40px;
    height: 40px;
}

/* Survey Content */
.survey-content {
    display: none;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 40px auto 0;
}

.dark .survey-content {
    background: #1a1f2e;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.survey-content.active {
    display: block;
}

.survey-header {
    text-align: center;
    margin-bottom: 2rem;
}

.survey-header h2 {
    font-family: 'Helvetica', Arial, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #111827;
}

.dark .survey-header h2 {
    color: #f9fafb;
}

.survey-header p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
}

.dark .survey-header p {
    color: #d1d5db;
}

.survey-header p {
    font-size: 1.1rem;
    color: #6b7280;
}

.dark .survey-header p {
    color: #d1d5db;
}

/* Question Groups */
.question-group {
    margin-bottom: 35px;
}

.question-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: #1f2937;
}

.dark .question-group label {
    color: #f9fafb;
}

.slider-container {
    display: grid;
    grid-template-columns: 80px 1fr 80px 60px;
    align-items: center;
    gap: 15px;
}

.slider-label {
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
    font-weight: 500;
}

.dark .slider-label {
    color: #d1d5db;
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(to right, #ff6b6b 0%, #ffd93d 50%, #6bcf7f 100%);
    outline: none;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #764ba2;
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #764ba2;
}

.slider-value {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
    text-align: center;
}

textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
    background: white;
    color: #1f2937;
    line-height: 1.5;
}

.dark textarea {
    background: #0a0f1e;
    border-color: #374151;
    color: #f9fafb;
}

textarea::placeholder {
    color: #9ca3af;
    opacity: 0.7;
}

.dark textarea::placeholder {
    color: #6b7280;
    opacity: 0.6;
}

/* Modal form placeholder styling - faded appearance */
.modal-content input::placeholder,
.modal-content textarea::placeholder,
.modal-overlay input::placeholder,
.modal-overlay textarea::placeholder {
    color: #9ca3af !important;
    opacity: 0.7 !important;
    font-style: normal !important;
    font-weight: 400 !important;
}

.dark .modal-content input::placeholder,
.dark .modal-content textarea::placeholder,
.dark .modal-overlay input::placeholder,
.dark .modal-overlay textarea::placeholder {
    color: #6b7280 !important;
    opacity: 0.6 !important;
    font-style: normal !important;
    font-weight: 400 !important;
}

textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.submit-btn {
    display: block;
    width: auto;
    margin: 1.5rem auto 0;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Results Section */
.results-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
    box-sizing: border-box;
}

.dark .results-content {
    background: #1a1f2e;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

@media (min-width: 768px) {
    .results-content {
        padding: 40px;
    }
}

@media (min-width: 768px) and (max-width: 1535px) {
    .results-content {
        padding: 25px;
    }
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-header h2 {
    font-size: 1.75rem;
    color: #111827;
}

.dark .results-header h2 {
    color: #f9fafb;
}

@media (min-width: 768px) {
    .results-header h2 {
        font-size: 2rem;
    }
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    .results-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .results-grid {
        gap: 40px;
    }
}

.chart-container {
    text-align: center;
    padding: 15px 0px;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .chart-container {
        padding: 20px 10px;
    }
}

@media (min-width: 1024px) {
    .chart-container {
        padding: 25px 15px;
    }
}

.chart-container canvas {
    max-width: 100%;
    width: 100% !important;
    height: 400px !important;
    min-height: 400px !important;
}

@media (min-width: 768px) {
    .chart-container canvas {
        height: 480px !important;
        min-height: 480px !important;
    }
}

@media (min-width: 1024px) {
    .chart-container canvas {
        height: 500px !important;
        min-height: 500px !important;
    }
}

@media (min-width: 768px) {
    .chart-container {
        padding: 30px;
    }
}

.chart-icon {
    margin-bottom: 15px;
}

.chart-icon svg {
    color: #667eea;
}

.chart-container h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #111827;
}

.dark .chart-container h3 {
    color: #f9fafb;
}

@media (min-width: 768px) {
    .chart-container h3 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
}

.detailed-results {
    padding: 20px 0px;
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .detailed-results {
        padding: 20px 5px;
    }
}

@media (min-width: 1024px) {
    .detailed-results {
        padding: 20px 10px;
    }
}

.detailed-results canvas {
    max-width: 100%;
    width: 100% !important;
    height: 380px !important;
    min-height: 380px !important;
}

@media (min-width: 768px) {
    .detailed-results canvas {
        height: 400px !important;
        min-height: 400px !important;
    }
}

@media (min-width: 1024px) {
    .detailed-results canvas {
        height: 420px !important;
        min-height: 420px !important;
    }
}

@media (min-width: 768px) {
    .detailed-results {
        padding: 30px;
    }
}

.result-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #111827;
}

.dark .result-section h3 {
    color: #f9fafb;
}

@media (min-width: 768px) {
    .result-section h3 {
        font-size: 1.5rem;
        margin-bottom: 25px;
    }
}

.result-section h3 svg {
    color: #667eea;
}

.feedback-display {
    margin-top: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.dark .feedback-display {
    background: #1a1f2e;
}

.feedback-display p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #374151;
}

.dark .feedback-display p {
    color: #d1d5db;
}

.feedback-display p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: #6b7280;
}

.dark .feedback-display p:last-child {
    color: #9ca3af;
}

/* Centered Feedback Display */
.feedback-display-centered {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    text-align: center;
}

.dark .feedback-display-centered {
    background: #1a1f2e;
    border-color: #374151;
}

.feedback-display-centered p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.feedback-display-centered p:last-child {
    margin-bottom: 0;
    font-style: italic;
}

.retake-btn {
    display: inline-block;
    padding: 15px 40px;
    background: white;
    color: #2e73b5;
    border: 2px solid #2e73b5;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retake-btn:hover {
    background: #2e73b5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 115, 181, 0.3);
}

.dark .retake-btn {
    background: #1a1f2e;
    color: #6cb5e4;
    border-color: #6cb5e4;
}

.dark .retake-btn:hover {
    background: #2e73b5;
    color: white;
}

.contact-btn-results {
    display: inline-block;
    padding: 15px 40px;
    background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% auto;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-btn-results:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tryit-hero h1 {
        font-size: 2rem;
    }

    .intro-text p {
        font-size: 1rem;
    }

    .survey-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-btn {
        flex-direction: row;
        justify-content: center;
    }

    .survey-content {
        padding: 1.5rem 1rem;
    }

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

    .results-content {
        padding: 25px;
    }

    .retake-btn,
    .contact-btn-results {
        width: 100%;
        padding: 12px 30px;
        font-size: 1rem;
    }

    .feedback-display-centered {
        padding: 20px;
    }
}

/* Reading Guide Styles (matching dashboard) */
.reading-guide-box {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

.dark .reading-guide-box {
    background: #0a0f1e;
    border-color: #2d3748;
}

@media (min-width: 768px) {
    .reading-guide-box {
        padding: 24px;
    }
}

.score-range-visual {
    margin: 20px 0;
}

.score-bar {
    display: flex;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.score-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    flex: 1;
}

.score-segment.low {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.score-segment.medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.score-segment.good {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.score-segment.excellent {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.score-labels {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.score-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.score-indicator {
    width: 28px;
    height: 28px;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.score-indicator-low {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.score-indicator-medium {
    background-color: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.score-indicator-good {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.score-indicator-excellent {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.dark .score-indicator-low {
    background-color: rgba(239, 68, 68, 0.2);
}

.dark .score-indicator-medium {
    background-color: rgba(234, 179, 8, 0.2);
}

.dark .score-indicator-good {
    background-color: rgba(34, 197, 94, 0.2);
}

.dark .score-indicator-excellent {
    background-color: rgba(59, 130, 246, 0.2);
}

@media (max-width: 768px) {
    .score-segment {
        font-size: 0.65rem;
    }
    
    .score-indicator {
        width: 24px;
        height: 24px;
    }
    
    .score-indicator svg {
        width: 14px;
        height: 14px;
    }
    
    .score-label span.text-xs {
        font-size: 0.65rem;
    }
}

/* DXF Demo Styles */
.dxf-fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

/* DXF Stepper */
#dxf-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dxf-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.dxf-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.dxf-step-circle.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.dxf-step-circle.completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.dxf-step-circle.inactive {
    background: #e5e7eb;
    color: #6b7280;
}

.dark .dxf-step-circle.inactive {
    background: #374151;
    color: #9ca3af;
}

.dxf-step-label {
    margin-top: 8px;
    font-size: 0.75rem;
    text-align: center;
    font-weight: 500;
    white-space: nowrap;
}

.dxf-step-label.active {
    color: #667eea;
    font-weight: 600;
}

.dxf-step-label.completed {
    color: #10b981;
}

.dxf-step-label.inactive {
    color: #6b7280;
}

.dark .dxf-step-label.inactive {
    color: #9ca3af;
}

.dxf-step-line {
    flex: 1;
    height: 2px;
    min-width: 30px;
    max-width: 80px;
    margin: 0 8px;
    transition: all 0.3s ease;
}

.dxf-step-line.completed {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.dxf-step-line.inactive {
    background: #e5e7eb;
}

.dark .dxf-step-line.inactive {
    background: #374151;
}

/* DXF Floor Plan Cards */
.dxf-plan-card {
    padding: 24px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.dark .dxf-plan-card {
    border-color: #374151;
}

.dxf-plan-card:hover {
    border-color: #667eea;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.dxf-plan-preview {
    height: 128px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 16px;
}

.dark .dxf-plan-preview {
    background: #1f2937;
}

.dxf-plan-preview svg {
    pointer-events: none;
    transform: scale(0.5);
}

/* DXF Color Palette */
.dxf-color-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dxf-color-btn:hover {
    border-color: #667eea;
    transform: scale(1.1);
}

.dxf-color-btn.selected {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* DXF SVG Viewer */
.dxf-svg-viewer {
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    cursor: grab;
    overflow: hidden;
}

.dark .dxf-svg-viewer {
    background: #0a0f1e !important;
    border-color: #374151;
}

.dxf-svg-viewer.selecting {
    cursor: crosshair;
}

.dxf-svg-viewer:active {
    cursor: grabbing;
}

.dxf-svg-viewer svg {
    max-width: 100%;
    max-height: 100%;
}

/* DXF Room Type Buttons */
.dxf-room-btn {
    padding: 8px 16px;
    font-size: 0.875rem;
    border-radius: 9999px;
    border: 2px solid #e5e7eb;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dark .dxf-room-btn {
    background: #1a1f2e;
    border-color: #374151;
    color: #f9fafb;
}

.dxf-room-btn:hover {
    background: #f3f4f6;
}

.dark .dxf-room-btn:hover {
    background: #374151;
}

.dxf-room-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* DXF Results */
.dxf-result-item {
    padding: 16px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dark .dxf-result-item {
    border-color: #374151;
}

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

.dxf-status-badge {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.dxf-status-badge.compliant {
    background: #d1fae5;
    color: #065f46;
}

.dark .dxf-status-badge.compliant {
    background: #064e3b;
    color: #6ee7b7;
}

.dxf-status-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.dark .dxf-status-badge.warning {
    background: #78350f;
    color: #fcd34d;
}

.dxf-status-badge.non-compliant {
    background: #fee2e2;
    color: #991b1b;
}

.dark .dxf-status-badge.non-compliant {
    background: #7f1d1d;
    color: #fca5a5;
}

/* Responsive DXF Styles */
@media (max-width: 768px) {
    .dxf-step-label {
        font-size: 0.65rem;
    }
    
    .dxf-step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .dxf-step-line {
        min-width: 20px;
        max-width: 40px;
        margin: 0 4px;
    }
    
    .dxf-svg-viewer {
        min-height: 400px;
    }
    
    .dxf-color-btn {
        width: 40px;
        height: 40px;
    }
}




/* Question Card Styles (matching real surveys) */
.question-card {
    padding: 1.25rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: white;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    animation: questionFadeIn 0.4s ease;
}

.dark .question-card {
    background: #1a1f2e;
    border-color: #374151;
}

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

.question-text {
    color: #1f2937;
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.dark .question-text {
    color: #f9fafb;
}

.rating-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.rating-label {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}

.dark .rating-label {
    color: #9ca3af;
}

.rating-options {
    display: flex;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.rating-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: white;
    transition: all 0.2s;
    cursor: pointer;
}

.dark .rating-option {
    background: #1a1f2e;
    border-color: #374151;
}

.rating-option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.dark .rating-option:hover {
    background: rgba(59, 130, 246, 0.2);
}

.rating-option.selected,
.rating-option:has(input:checked) {
    border-color: #3b82f6;
    background: #3b82f6;
}

.rating-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rating-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    pointer-events: none;
}

.dark .rating-number {
    color: #9ca3af;
}

.rating-option.selected .rating-number,
.rating-option:has(input:checked) .rating-number {
    color: white;
}

.rating-option:hover .rating-number {
    color: #3b82f6;
}

.dark .rating-option:hover .rating-number {
    color: #60a5fa;
}

.rating-option.selected:hover .rating-number,
.rating-option:has(input:checked):hover .rating-number {
    color: white;
}

/* Mobile responsive for rating options */
@media (max-width: 640px) {
    .rating-container {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .rating-label {
        width: 100%;
        text-align: center;
    }
    
    .rating-label:first-child {
        order: -1;
    }
    
    .rating-options {
        width: 100%;
        justify-content: center;
    }
    
    .rating-option {
        width: 2.5rem;
        height: 2.5rem;
    }
}


/* Mobile overflow fixes for results page */
@media (max-width: 767px) {
    .results-content {
        padding: 15px;
        overflow-x: hidden;
    }
    
    .results-grid {
        gap: 20px;
    }
    
    .chart-container,
    .detailed-results {
        padding: 10px 0;
        overflow: hidden;
    }
    
    .chart-container canvas,
    .detailed-results canvas {
        max-width: 100% !important;
        height: auto !important;
        min-height: 280px !important;
    }
    
    /* Ensure result sections don't overflow */
    .result-section {
        overflow-x: hidden;
        max-width: 100%;
    }
    
    /* Fix for any plotly or chart containers */
    .js-plotly-plot,
    .plotly,
    [class*="chart"] {
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    /* Constrain SVG elements */
    .results-content svg {
        max-width: 100%;
        height: auto;
    }
}
