body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 1rem;
}

.container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    max-width: 800px;
    width: 100%;
}

h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: bold;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
    color: #4a5568;
    text-align: center;
    margin-bottom: 2rem;
}

.intro {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 12px;
    border-left: 5px solid #667eea;
}

.intro p {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    line-height: 1.7;
    margin: 0 0 1rem 0;
}

.intro p:last-child {
    margin-bottom: 0;
}

.question {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-left: 5px solid #667eea;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    transition: border-left-color 0.3s ease;
}

.question:hover {
    border-left-color: #764ba2;
}

.question p {
    margin: 0 0 1rem 0;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.6;
}

.radio-group {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.radio-group label {
    text-align: center;
    padding: 0.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.radio-group label:hover {
    border-color: #667eea;
    transform: translateY(-1px);
}

button[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: block;
    margin: 2rem auto 0;
    max-width: 300px;
    width: 100%;
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.result {
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 15px;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

.result h3 {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: bold;
    color: #4a5568;
    margin-bottom: 1rem;
}

#score-breakdown .score-line {
    margin: 1rem 0;
    padding: 1rem;
    border-left: 5px solid #48bb78;
    border-radius: 10px;
    background: white;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.scoring-scale {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 12px;
}

.scoring-scale h3 {
    margin-top: 0;
    text-align: center;
    color: #4a5568;
}

.scale-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.scale-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.scale-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.scale-color.exemplary { background-color: #48bb78; }
.scale-color.alienated { background-color: #f56565; }
.scale-color.conformist { background-color: #4299e1; }
.scale-color.pragmatist { background-color: #f6e05e; }
.scale-color.passive { background-color: #a0aec0; }

.clickable-style {
    cursor: pointer;
    color: #667eea;
    text-decoration: underline;
    transition: color 0.3s ease;
    position: relative;
    padding-right: 1.2rem;
}

.clickable-style::after {
    content: 'ⓘ';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1em;
    color: #667eea;
    font-weight: bold;
}

.clickable-style:hover {
    color: #764ba2;
}

.clickable-style:hover::after {
    color: #764ba2;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 2rem;
    border: none;
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

.close:hover,
.close:focus {
    color: #667eea;
}

#modalTitle {
    color: #4a5568;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

#modalDescription {
    line-height: 1.6;
    font-size: 1.1rem;
    color: #2d3748;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .radio-group {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.25rem;
    }
    
    .radio-group label {
        font-size: 0.8rem;
        padding: 0.4rem;
        min-height: 40px;
    }
    
    .scale-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
