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

body {
    font-family: 'Poppins', 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;
}

.welcome-card, .quiz-card, .result-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

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

.header h1 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    font-weight: 400;
}

.intro-text {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 4px solid #667eea;
}

.intro-text p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.intro-text ul {
    padding-left: 20px;
    color: #555;
}

.intro-text li {
    margin-bottom: 5px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

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

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.start-btn, .next-btn, .submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.3s ease;
}

.start-btn:hover, .next-btn:hover, .submit-btn:hover {
    transform: translateY(-2px);
}

.start-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.start-btn:disabled:hover {
    transform: none;
}

/* Consent Checkbox Styles */
.consent-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #28a745;
    margin-bottom: 20px;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.consent-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #28a745;
}

.consent-checkbox label {
    color: #555;
    line-height: 1.5;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 0;
}

.consent-checkbox label:hover {
    color: #333;
}

/* Quiz Styles */
.quiz-header {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.user-name {
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.question-counter {
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    min-width: 120px;
    text-align: center;
}

.nav-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    width: 100px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.nav-btn:hover:not(:disabled) {
    background: #5a6fd8;
    transform: translateY(-1px);
}

.nav-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

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

.question-text {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.5;
    font-weight: 500;
}

.options-container {
    display: grid;
    gap: 15px;
    margin-bottom: 30px;
}

.option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.option:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.option.selected-1-star {
    border-color: #ffd700;
    background: #fffbf0;
}

.option.selected-2-star {
    border-color: #ff6b35;
    background: #fff5f0;
}

.option-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.option-label {
    font-weight: 600;
    color: #333;
    margin-right: 15px;
    min-width: 30px;
}

.option-text {
    flex: 1;
    color: #555;
    line-height: 1.4;
}

.star-buttons {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.star-btn {
    background: none;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-btn:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.star-btn.selected {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

.one-star-btn {
    color: #ffd700;
}

.two-star-btn {
    color: #ff6b35;
}

.one-star-btn.selected {
    background: #ffd700;
    border-color: #ffd700;
    color: white;
}

.two-star-btn.selected {
    background: #ff6b35;
    border-color: #ff6b35;
    color: white;
}

/* Results Styles */
.result-header {
    text-align: center;
    margin-bottom: 30px;
}

.dominant-color {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.color-red { color: #e74c3c; }
.color-yellow { color: #f39c12; }
.color-green { color: #27ae60; }
.color-blue { color: #3498db; }

.chart-container {
    margin: 30px 0;
    text-align: center;
}

.personality-description {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    border-left: 4px solid;
}

.personality-description.red { border-left-color: #e74c3c; }
.personality-description.yellow { border-left-color: #f39c12; }
.personality-description.green { border-left-color: #27ae60; }
.personality-description.blue { border-left-color: #3498db; }

.all-colors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.color-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid;
}

.color-card.red { border-top-color: #e74c3c; }
.color-card.yellow { border-top-color: #f39c12; }
.color-card.green { border-top-color: #27ae60; }
.color-card.blue { border-top-color: #3498db; }

.color-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.back-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: #5a6268;
}

/* Error Message */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-card, .quiz-card, .result-card {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .quiz-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .star-buttons {
        margin-left: 10px;
    }
    
    .all-colors {
        grid-template-columns: 1fr;
    }
    
    .consent-checkbox {
        gap: 8px;
    }
    
    .consent-checkbox input[type="checkbox"] {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }
}