/* Custom Properties */
:root {
    --primary: #EA0001;
    --primary-dark: #AF0313;
    --dark: #27241D;
    --white: #FFFFFF;
}

/* Page Title Styles */
.survey-page-title {
    text-align: center;
    margin-bottom: 2em;
    position: relative;
    padding-bottom: 1em;
}

.survey-page-title h1 {
    font-size: 2.5em;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.survey-page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    border-radius: 2px;
}

.survey-page-subtitle {
    color: #666;
    font-size: 1.1em;
    margin-top: 0.5em;
    font-weight: 400;
}

/* Modern Reset and Base Styles */
.blood-cancer-survey-container {
    max-width: 800px;
    margin: 2em auto;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--dark);
}

/* Progress Bar */
.survey-progress {
    margin-bottom: 2em;
    background: #edf2f7;
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    transition: width 0.3s ease;
}

/* Form Container */
.survey-form {
    background: #ffffff;
    padding: 2em;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Question Cards */
.survey-question {
    background: #f7fafc;
    margin-bottom: 1.5em;
    padding: 1.5em;
    border-radius: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.survey-question:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.survey-question label {
    display: block;
    margin-bottom: 1em;
    font-weight: 600;
    font-size: 1.1em;
    color: #2d3748;
    line-height: 1.5;
}

/* Modern Radio Buttons */
.radio-group {
    display: flex;
    gap: 1em;
    margin-top: 1em;
}

.radio-group label {
    display: flex;
    align-items: center;
    padding: 0.75em 1.5em;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0;
    font-weight: 500;
    font-size: 0.95em;
}

.radio-group input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-group input[type="radio"] + label:hover {
    border-color: var(--primary);
    background: rgba(234, 0, 1, 0.05);
}

.radio-group input[type="radio"]:checked + label {
    background: var(--primary);
    border-color: var(--primary-dark);
    color: var(--white);
}

/* Submit Button */
.survey-submit {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    color: white;
    padding: 1em 2em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    width: 100%;
    max-width: 300px;
    margin: 2em auto;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.survey-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 0, 1, 0.3);
}

.survey-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Results Section */
.survey-results {
    margin-top: 2em;
    animation: slideIn 0.5s ease;
}

.alert {
    padding: 2em;
    border-radius: 12px;
    margin-top: 1.5em;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.alert-warning {
    background: linear-gradient(45deg, #fff5f5, #fff0f0);
    border: 1px solid var(--primary);
    color: var(--primary-dark);
}

.alert-info {
    background: linear-gradient(45deg, #f8f8f8, #f0f0f0);
    border: 1px solid var(--dark);
    color: var(--dark);
}

.alert h3 {
    margin: 0 0 1em 0;
    font-size: 1.5em;
    font-weight: 600;
}

.alert p {
    margin-bottom: 1em;
    line-height: 1.6;
}

/* Disclaimer Styles */
.survey-disclaimer {
    margin-top: 2em;
    padding: 1.5em;
    background: #f8f8f8;
    border-left: 3px solid var(--dark);
    border-radius: 4px;
    font-size: 0.9em;
    line-height: 1.6;
    color: #666;
}

.survey-disclaimer strong {
    color: var(--dark);
    display: block;
    margin-bottom: 0.5em;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .blood-cancer-survey-container {
        padding: 15px;
    }

    .survey-form {
        padding: 1.5em;
    }

    .survey-question {
        padding: 1.2em;
    }

    .radio-group {
        flex-direction: column;
    }

    .radio-group label {
        width: 100%;
        justify-content: center;
    }
}