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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, 
        #8B9DC3 0%,     /* Soft mountain blue */
        #DFC5A2 20%,    /* Sandy beige */
        #C8A882 40%,    /* Warm taupe */
        #7A8471 70%,    /* Sage green */
        #5D6B5D 100%    /* Deep forest green */
    );
    background-attachment: fixed;
    min-height: 100vh;
    color: #2c2c2c;
    padding: 20px;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(252, 249, 246, 0.95);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 12px 32px rgba(45, 45, 45, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(199, 168, 130, 0.2);
}

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

h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

header p {
    color: #666;
    font-size: 14px;
}

.section {
    margin-bottom: 20px;
}

.hidden {
    display: none;
}

.loader {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.question {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.message-box {
    background: rgba(139, 157, 195, 0.12);
    border: 2px solid rgba(122, 132, 113, 0.25);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.message-box h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 16px;
}

.message-box p {
    font-size: 18px;
    font-weight: 500;
    color: #34495e;
    line-height: 1.6;
}

.scale-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.scale-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.scale-btn:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.scale-btn.selected {
    background: #7A8471;
    color: white;
    border-color: #7A8471;
}

.demographics {
    background: rgba(0, 0, 0, 0.02);
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.demographics h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    text-align: center;
}

.demo-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.demo-field {
    flex: 1;
}

.demo-field label {
    font-size: 14px;
    margin-bottom: 5px;
}

.demo-field select,
.demo-field input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-family: inherit;
}

button[type="submit"] {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #7A8471, #5D6B5D);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(122, 132, 113, 0.25);
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #5D6B5D, #4A5A4A);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(122, 132, 113, 0.35);
}

button[type="submit"]:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

#thank-you {
    text-align: center;
    color: #27ae60;
}

#error {
    text-align: center;
    color: #e74c3c;
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    .scale-buttons {
        gap: 6px;
    }
    
    .scale-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .demo-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .message-box {
        padding: 15px;
    }
    
    .message-box p {
        font-size: 16px;
    }
}