:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #f0fdf4; /* Light green-ish background */
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-main: #1e293b;
    --text-muted: #64748b;
    
    /* Rating colors */
    --color-excellent: #22c55e;
    --color-happy: #84cc16;
    --color-neutral: #eab308;
    --color-sad: #f97316;
    --color-angry: #ef4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #e0f2fe 0%, #dcfce7 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem;
}

.survey-container {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    width: 90%;
    max-width: 900px;
    min-height: 550px;
    padding: 3rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.step {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
    text-align: center;
}

.step.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

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

/* Header Styles */
.school-logo {
    max-height: 80px;
    width: auto;
    margin: 0 auto 1rem auto;
    display: block;
}

.header h1 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.question {
    margin: 3rem 0 2rem 0;
}

.question h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Options Container */
.options-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Role Buttons */
.role-btn {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 200px;
}

.role-btn .icon {
    font-size: 3rem;
}

.role-btn:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
    background: #f8fafc;
}

/* Rating Buttons */
.rating-options {
    gap: 1rem;
}

.rating-btn {
    background: white;
    border: none;
    border-radius: 20px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 130px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.rating-btn span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.4;
}

.rating-btn .emoji {
    font-size: 4.5rem;
    transition: transform 0.3s ease;
    filter: grayscale(20%);
}

.rating-btn:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.rating-btn:hover span {
    color: var(--text-main);
}

.rating-btn:hover .emoji {
    transform: scale(1.15);
    filter: grayscale(0%);
}

/* Hover colors based on rating */
.rating-btn:nth-child(1):hover { border-bottom: 5px solid var(--color-angry); }
.rating-btn:nth-child(2):hover { border-bottom: 5px solid var(--color-sad); }
.rating-btn:nth-child(3):hover { border-bottom: 5px solid var(--color-neutral); }
.rating-btn:nth-child(4):hover { border-bottom: 5px solid var(--color-happy); }
.rating-btn:nth-child(5):hover { border-bottom: 5px solid var(--color-excellent); }

/* Back Button */
.back-btn {
    margin-top: 3rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.back-btn:hover {
    color: var(--text-main);
}

/* Thank you screen */
.thank-you-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

.thank-you-content h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.thank-you-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
}

.auto-redirect {
    font-size: 1rem !important;
    font-style: italic;
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
    }
    .survey-container { 
        padding: 1.5rem 1rem; 
        min-height: auto; 
        margin: 1rem 0; 
    }
    .header h1 { font-size: 1.6rem; }
    .rating-options { flex-wrap: wrap; justify-content: space-between; }
    .rating-btn { min-width: 48%; padding: 1rem 0.5rem; }
    .rating-btn .emoji { font-size: 3.5rem; }
}
