/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid #eee;
}

header h1 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2.2rem;
}

header p {
    color: #555;
    font-size: 1.1rem;
}

main {
    flex: 1;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #eee;
    color: #777;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Home Page */
.home-header {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 40px 20px;
    border-radius: 8px;
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.home-header h1 {
    color: white;
    margin-bottom: 15px;
    font-size: 2.5em;
}

.home-header p {
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    opacity: 0.9;
}

.intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 5px solid #3498db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.intro p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #34495e;
}

.highlight {
    color: #e74c3c;
    font-weight: 600;
}

.feature-box {
    display: flex;
    justify-content: space-around;
    margin: 40px 0;
    flex-wrap: wrap;
}

.feature {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 30%;
    min-width: 250px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature h3 {
    color: #3498db;
    margin-bottom: 15px;
}

.feature p {
    color: #7f8c8d;
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #2c3e50;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #e74c3c;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 6px rgba(231, 76, 60, 0.25);
}

.btn-primary:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(231, 76, 60, 0.3);
}

.btn-secondary {
    background-color: #e9ecef;
    color: #2c3e50;
    margin-right: 10px;
}

.btn-secondary:hover {
    background-color: #ced4da;
}

/* Survey Form Styles */
#assessment-form {
    max-width: 700px;
    margin: 0 auto;
}

.question-container {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.question-container h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Improved Radio Button Styling */
.radio-group {
    display: flex;
    gap: 30px;
    margin-top: 10px;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #444;
}

.radio-group input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: #fff;
    border: 2px solid #3498db;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    outline: none;
}

.radio-group input[type="radio"]:checked {
    background: #3498db;
    border: 2px solid #3498db;
}

.radio-group input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
}

/* Improved Select Dropdown Styling */
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #444;
    background-color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    transition: border-color 0.3s;
}

select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

select option {
    padding: 10px;
}

/* Submit Button Styling */
.submit-container {
    text-align: center;
    margin-top: 40px;
}

.submit-button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.2);
}

.submit-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(52, 152, 219, 0.3);
}

.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.2);
}

/* Results Page Styles */
.message-box {
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    border-radius: 8px;
    font-size: 1.1rem;
}

.message-box.error {
    background-color: #fee;
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
}

.hidden {
    display: none;
}

.result-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.result-header {
    text-align: center;
    margin-bottom: 25px;
}

.result-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.risk-score-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.risk-level-container {
    text-align: center;
}

.risk-level {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3498db;
    margin-top: 10px;
}

.risk-interpretation, .health-recommendations {
    margin-bottom: 25px;
}

.risk-interpretation h3, .health-recommendations h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.health-recommendations ul {
    padding-left: 20px;
}

.health-recommendations li {
    margin-bottom: 10px;
}

.disclaimer {
    background-color: #f2f2f2;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #666;
}

.action-buttons {
    text-align: center;
    margin-top: 30px;
}

.button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #2980b9;
}

/* Risk Category Styles */
.risk-category-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.risk-category {
    font-size: 1.4em;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 50px;
    color: white;
}

.high-risk {
    background-color: #dc3545;
}

.medium-risk {
    background-color: #ffc107;
    color: #333;
}

.low-risk {
    background-color: #28a745;
}

#risk-percentage {
    font-size: 1.2em;
    font-weight: bold;
}

.results-factors ul,
.recommendations ul {
    padding-left: 20px;
}

.results-factors li,
.recommendations li {
    margin-bottom: 10px;
}

.recommendations p {
    margin-bottom: 10px;
}

/* Risk Meter Styles */
.risk-meter {
    margin: 20px 0;
    width: 100%;
}

.risk-meter-bar {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
    width: 100%;
}

.risk-meter-fill {
    height: 100%;
    width: 0%;
    transition: width 1s ease-in-out;
}

.risk-meter-fill.high-risk {
    background-color: #dc3545;
}

.risk-meter-fill.medium-risk {
    background-color: #ffc107;
}

.risk-meter-fill.low-risk {
    background-color: #28a745;
}

.risk-meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: #6c757d;
}

/* Error Styling */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
    border-left: 5px solid #dc3545;
    margin-bottom: 20px;
}

/* Pulse Animation for Button */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(231, 76, 60, 0.25);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 15px rgba(231, 76, 60, 0.35);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 6px rgba(231, 76, 60, 0.25);
    }
}

.btn-primary.pulse {
    animation: pulse 2s infinite;
}

/* Love message styling */
.love-message {
    margin-top: 15px;
    font-weight: 500;
    color: #2c3e50;
}

.love-message i {
    margin-right: 5px;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .question-container {
        padding: 15px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
        font-size: 2rem;
    }
    
    .risk-score-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .submit-button {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Custom styles for maintaining appearance */
#model-info {
    color: #777;
    font-size: 0.9rem;
}

.loading-status {
    margin-top: 10px;
    font-size: 0.9em;
    color: #6c757d;
    font-style: italic;
}

.loading-note {
    margin-top: 15px;
    font-size: 0.85em;
    color: #6c757d;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #dee2e6;
    padding: 8px;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.model-info {
    background-color: #f0f8ff;
    padding: 20px;
    border-radius: 5px;
    border-left: 5px solid #3498db;
}

.model-info h3 {
    color: #3498db;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#model-type {
    font-weight: bold;
}

.webr-note {
    font-size: 0.85em;
    color: #5a6268;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #dee2e6;
}

.error-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.error-actions button {
    min-width: 160px;
}

/* Add browser compatibility notice */
.browser-notice {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    font-size: 0.85em;
    text-align: center;
} 