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

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

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #4a90e2;
}

h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.2em;
    font-weight: 300;
}

h2 {
    color: #34495e;
    margin-bottom: 15px;
    font-size: 1.8em;
    border-left: 4px solid #4a90e2;
    padding-left: 15px;
}

h3 {
    color: #2980b9;
    margin-bottom: 20px;
    font-size: 1.4em;
    background-color: #ecf0f1;
    padding: 10px 15px;
    border-radius: 5px;
}

.assessment-info {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.instructions {
    background-color: #e8f4fd;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 5px solid #4a90e2;
}

.instructions ul {
    margin-left: 20px;
    margin-top: 10px;
}

.instructions li {
    margin-bottom: 8px;
    color: #2c3e50;
}

.domain-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fafbfc;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.question-item {
    margin-bottom: 25px;
    padding: 15px;
    background-color: #fff;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: box-shadow 0.3s ease;
}

.question-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.question-item label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #2c3e50;
    line-height: 1.5;
}

.rating-scale {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.rating-scale input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 5px;
    cursor: pointer;
    accent-color: #4a90e2;
}

.rating-scale label {
    font-weight: normal;
    margin: 0;
    cursor: pointer;
}

.submit-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

#calculateScore {
    background-color: #4a90e2;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#calculateScore:hover {
    background-color: #357abd;
    transform: translateY(-2px);
}

#calculateScore:active {
    transform: translateY(0);
}

.results-section {
    margin-top: 40px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #4a90e2;
}

.score-display {
    text-align: center;
    margin-bottom: 30px;
}

.total-score {
    font-size: 3em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.score-interpretation {
    font-size: 1.2em;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.emotional-age {
    font-size: 1.4em;
    color: #27ae60;
    font-weight: 600;
}

.domain-scores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.domain-score {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #4a90e2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.domain-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.domain-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #4a90e2;
}

.interpretation-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #27ae60;
}

.recommendations-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #f39c12;
}

.recommendations-section ul {
    margin-left: 20px;
    margin-top: 10px;
}

.recommendations-section li {
    margin-bottom: 8px;
    color: #2c3e50;
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .rating-scale {
        justify-content: space-between;
    }
    
    .domain-scores {
        grid-template-columns: 1fr;
    }
}

@media print {
    body {
        background-color: white;
    }
    
    .container {
        box-shadow: none;
        margin: 0;
    }
    
    #calculateScore {
        display: none;
    }
}