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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
}

.quiz-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    animation: fadeIn 0.6s ease-out;
}

.start-screen {
    text-align: center;
}

.icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    line-height: 1.3;
}

p {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-primary {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 153, 225, 0.4);
}

.btn-secondary {
    background: white;
    color: #4299e1;
    border: 2px solid #4299e1;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.btn-secondary:hover {
    background: #4299e1;
    color: white;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4299e1, #3182ce);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.question-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #718096;
}

.question-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 30px;
    line-height: 1.4;
}

.options {
    margin-bottom: 40px;
}

.option {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.option:hover {
    border-color: #4299e1;
    background: #f7fafc;
}

.option.selected {
    border-color: #4299e1;
    background: #ebf8ff;
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #4299e1;
    border-radius: 50%;
    display: inline-block;
    margin-right: 15px;
    position: relative;
    flex-shrink: 0;
}

.option.selected .option-radio::after {
    content: '';
    width: 12px;
    height: 12px;
    background: #4299e1;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
}

.option-text {
    display: inline-block;
    vertical-align: middle;
    width: auto;
    font-size: 1rem;
    color: #2d3748;
    line-height: 1.5;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.btn-next {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

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

.results-screen {
    text-align: center;
}

.results-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.results-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.score {
    font-size: 1.2rem;
    color: #718096;
    margin-bottom: 20px;
}

.diagnosis-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2b6cb0;
    margin-bottom: 30px;
}

.diagnosis-section {
    background: #f7fafc;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    text-align: left;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.section-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.section-content {
    color: #4a5568;
    line-height: 1.6;
}

.section-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.section-content li {
    margin-bottom: 8px;
}

.cta-button {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    border: none;
    padding: 20px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    margin: 30px 0;
    animation: pulse 2s infinite;
    box-shadow: 0 6px 20px rgba(245, 101, 101, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 101, 101, 0.4);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.form-input.error {
    border-color: #e53e3e;
}

.error-message {
    color: #e53e3e;
    font-size: 0.9rem;
    margin-top: 5px;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .quiz-card {
        padding: 25px;
        margin: 10px;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    .question-title {
        font-size: 1.3rem;
    }
    
    .option {
        padding: 15px;
    }
    
    .btn-primary, .btn-next {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .navigation {
        flex-direction: column;
    }
    
    .btn-secondary {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .navigation {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }
    .btn-next, .btn-restart {
        width: auto;
        min-width: 120px;
        font-size: 1rem;
        padding-left: 12px;
        padding-right: 12px;
    }
}

.btn-restart {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.btn-restart:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.3);
}

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

.btn-red {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-red:hover {
    background: linear-gradient(135deg, #c53030 0%, #e53e3e 100%);
}

.btn-green {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-green:hover {
    background: linear-gradient(135deg, #2f855a 0%, #38a169 100%);
}

.results-actions {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

@media (max-width: 600px) {
    .results-actions {
        flex-direction: column;
        gap: 12px;
    }
}
