/* Skin Cancer Risk Assessment Tool Styles */

.scra-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    box-sizing: border-box;
}

.scra-container * {
    box-sizing: border-box;
}

.scra-header {
    text-align: center;
    margin-bottom: 30px;
}

.scra-header h2 {
    color: #1e3a5f;
    font-size: 28px;
    margin-bottom: 15px;
}

.scra-intro {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
}

.scra-disclaimer {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    margin-top: 20px;
    font-size: 14px;
    text-align: left;
    border-radius: 0 8px 8px 0;
}

/* Progress Bar */
.scra-progress {
    background: #e5e7eb;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.scra-progress-bar {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    height: 100%;
    border-radius: 4px;
    width: 8.33%;
    transition: width 0.3s ease;
}

.scra-progress-text {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 25px;
}

/* Questions */
.scra-question {
    display: none;
    animation: scraFadeIn 0.3s ease;
}

.scra-question.active {
    display: block;
}

@keyframes scraFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.scra-question h3 {
    color: #1e3a5f;
    font-size: 20px;
    margin-bottom: 10px;
}

.scra-hint {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
    font-style: italic;
}

/* Options */
.scra-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.scra-option {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
}

.scra-option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.scra-option input[type="radio"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    accent-color: #3b82f6;
    flex-shrink: 0;
}

.scra-option input[type="radio"]:checked + span {
    color: #1d4ed8;
    font-weight: 600;
}

.scra-option span {
    font-size: 16px;
    color: #374151;
}

/* Navigation Buttons */
.scra-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.scra-btn {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.scra-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.scra-btn-prev {
    background: #e5e7eb;
    color: #374151;
}

.scra-btn-prev:hover:not(:disabled) {
    background: #d1d5db;
}

.scra-btn-next,
.scra-btn-submit {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    flex-grow: 1;
}

.scra-btn-next:hover,
.scra-btn-submit:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-1px);
}

/* Results */
.scra-results {
    margin-top: 20px;
}

.scra-result-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.scra-score-display {
    text-align: center;
    margin-bottom: 30px;
}

.scra-score-circle {
    width: 120px;
    height: 120px;
    border: 6px solid;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: white;
}

.scra-score-number {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.scra-score-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scra-risk-level {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

/* Risk Level Colors */
.scra-high .scra-score-number { color: #dc2626; }
.scra-medium .scra-score-number { color: #f59e0b; }
.scra-low .scra-score-number { color: #10b981; }

/* Recommendations */
.scra-recommendations,
.scra-abcde {
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.scra-recommendations h4,
.scra-abcde h4 {
    color: #1e3a5f;
    margin-bottom: 15px;
    margin-top: 0;
    font-size: 18px;
}

.scra-recommendations ul,
.scra-abcde ul {
    margin: 0;
    padding-left: 20px;
}

.scra-recommendations li,
.scra-abcde li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #374151;
}

.scra-disclaimer-result {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 20px;
}

.scra-disclaimer-result p {
    margin: 0;
    font-size: 14px;
    color: #92400e;
}

/* CTA Section */
.scra-cta {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.scra-cta p {
    font-size: 18px;
    color: #374151;
    margin-bottom: 20px;
}

.scra-btn-book {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white !important;
    padding: 16px 32px;
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
    margin-bottom: 10px;
}

.scra-btn-book:hover {
    background: linear-gradient(135deg, #059669, #047857);
    color: white !important;
}

.scra-btn-restart {
    background: #e5e7eb;
    color: #374151;
}

.scra-btn-restart:hover {
    background: #d1d5db;
}

/* Error message */
.scra-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 600px) {
    .scra-container {
        padding: 20px 15px;
    }
    
    .scra-header h2 {
        font-size: 24px;
    }
    
    .scra-question h3 {
        font-size: 18px;
    }
    
    .scra-navigation {
        flex-direction: column;
    }
    
    .scra-btn {
        width: 100%;
    }
    
    .scra-cta .scra-btn {
        display: block;
        margin: 10px 0;
    }
    
    .scra-score-circle {
        width: 100px;
        height: 100px;
    }
    
    .scra-score-number {
        font-size: 36px;
    }
    
    .scra-risk-level {
        font-size: 24px;
    }
}