/* Global Encounters Festival Inspired Styles */
:root {
    /* Festival Color Palette - inspired by cultural diversity */
    --primary-color: #2C5282;
    --secondary-color: #4A5568;
    --success-color: #48BB78;
    --warning-color: #ED8936;
    --danger-color: #F56565;
    --info-color: #4299E1;
    
    /* Satisfaction Colors */
    --happy-color: #48BB78;
    --neutral-color: #ED8936;
    --sad-color: #F56565;
    
    /* Background Colors */
    --bg-light: #F7FAFC;
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;
    
    /* Text Colors */
    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    /* Border Radius */
    --border-radius: 12px;
    --border-radius-lg: 16px;
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    margin: 2rem 1rem 0;
    box-shadow: var(--shadow-lg);
}

.festival-logo i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* Survey Card */
.survey-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.survey-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--happy-color), var(--neutral-color), var(--sad-color));
}

/* Satisfaction Options */
.satisfaction-options {
    padding: 1rem 0;
}

.satisfaction-btn {
    border: 3px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-white);
    color: var(--text-secondary);
    position: relative;
    overflow: hidden;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.satisfaction-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.satisfaction-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

.satisfaction-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.satisfaction-label {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Individual Satisfaction States */
.satisfaction-happy {
    border-color: var(--happy-color);
}

.satisfaction-happy:hover,
.btn-check:checked + .satisfaction-happy {
    background: var(--happy-color);
    color: white;
    border-color: var(--happy-color);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
}

.satisfaction-neutral {
    border-color: var(--neutral-color);
}

.satisfaction-neutral:hover,
.btn-check:checked + .satisfaction-neutral {
    background: var(--neutral-color);
    color: white;
    border-color: var(--neutral-color);
    box-shadow: 0 8px 25px rgba(237, 137, 54, 0.3);
}

.satisfaction-sad {
    border-color: var(--sad-color);
}

.satisfaction-sad:hover,
.btn-check:checked + .satisfaction-sad {
    background: var(--sad-color);
    color: white;
    border-color: var(--sad-color);
    box-shadow: 0 8px 25px rgba(245, 101, 101, 0.3);
}

/* Notes Section */
.notes-section {
    margin-top: 3rem;
}

.notes-textarea {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 120px;
}

.notes-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
    outline: none;
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.form-text {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, var(--primary-color), #3182ce);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(44, 82, 130, 0.3);
    background: linear-gradient(135deg, #3182ce, var(--primary-color));
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:focus {
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.5);
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.alert-success {
    background: rgba(72, 187, 120, 0.1);
    color: #22543d;
    border-left: 4px solid var(--happy-color);
}

.alert-danger {
    background: rgba(245, 101, 101, 0.1);
    color: #742a2a;
    border-left: 4px solid var(--sad-color);
}

/* Footer */
footer {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        margin: 1rem 0.5rem 0;
        padding: 2rem 1rem;
    }
    
    .survey-card {
        padding: 2rem 1.5rem;
        margin: 0 0.5rem;
    }
    
    .satisfaction-btn {
        padding: 1.5rem 0.5rem;
        height: 120px;
    }
    
    .satisfaction-icon {
        font-size: 2rem;
    }
    
    .satisfaction-label {
        font-size: 0.8rem;
    }
    
    .festival-logo i {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
}

@media (max-width: 576px) {
    .satisfaction-btn {
        height: 100px;
        padding: 1rem 0.5rem;
    }
    
    .satisfaction-icon {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .satisfaction-label {
        font-size: 0.75rem;
    }
    
    .submit-btn {
        padding: 0.75rem 2rem !important;
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Loading state */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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