/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo i {
    font-size: 2.5rem;
    color: #ffd700;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main Content */
.main-content {
    flex: 1;
}

/* Cards */
.card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
}

.card-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 30px;
}

.card-body p {
    margin-bottom: 20px;
    color: #555;
}

.card-body ul {
    list-style: none;
    padding: 0;
}

.card-body li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body li:last-child {
    border-bottom: none;
}

.card-body strong {
    color: #667eea;
    font-weight: 600;
    min-width: 20px;
}

/* Form */
.sus-form {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.questions-container {
    padding: 30px;
}

.question-item {
    margin-bottom: 40px;
    padding: 25px;
    border-radius: 15px;
    background: #f8f9ff;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.question-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

.question-item:last-child {
    margin-bottom: 0;
}

.question-label {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    cursor: pointer;
}

.question-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.question-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    line-height: 1.5;
}

/* Rating Scale */
.rating-scale {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.rating-scale label {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.rating-scale label:hover {
    border-color: #667eea;
    color: #667eea;
    transform: scale(1.1);
}

.rating-scale input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.rating-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 55px;
    flex: 1 1 0;
}

.rating-label {
    margin-top: 4px;
    font-size: 0.78rem;
    color: #b0b0b0;
    opacity: 0.85;
    font-weight: 400;
    text-align: center;
    line-height: 1.1;
    white-space: normal;
    word-break: break-word;
}

/* Form Actions */
.form-actions {
    padding: 30px;
    background: #f8f9ff;
    text-align: center;
    border-top: 1px solid #e0e0e0;
}

.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

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

/* Footer */
.footer {
    text-align: center;
    margin-top: 40px;
    color: white;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .card-header,
    .card-body,
    .questions-container,
    .form-actions {
        padding: 20px;
    }
    
    .question-item {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .question-label {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .question-text {
        font-size: 1rem;
    }
    
    .rating-scale {
        gap: 2px;
    }
    
    .rating-scale label {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .rating-item {
        min-width: 0;
    }
    
    .rating-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .card-header h2 {
        font-size: 1.1rem;
    }
    
    .question-text {
        font-size: 0.95rem;
    }
    
    .rating-scale label {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-item {
    animation: fadeInUp 0.6s ease forwards;
}

.question-item:nth-child(1) { animation-delay: 0.1s; }
.question-item:nth-child(2) { animation-delay: 0.2s; }
.question-item:nth-child(3) { animation-delay: 0.3s; }
.question-item:nth-child(4) { animation-delay: 0.4s; }
.question-item:nth-child(5) { animation-delay: 0.5s; }
.question-item:nth-child(6) { animation-delay: 0.6s; }
.question-item:nth-child(7) { animation-delay: 0.7s; }
.question-item:nth-child(8) { animation-delay: 0.8s; }
.question-item:nth-child(9) { animation-delay: 0.9s; }
.question-item:nth-child(10) { animation-delay: 1s; }

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .btn {
    position: relative;
}

.loading .btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: 15px;
}

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

.rating-legend {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 2px;
    font-size: 0.78rem;
    color: #b0b0b0;
    opacity: 0.85;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-align: center;
}
.rating-legend span {
    min-width: 0;
    text-align: center;
    white-space: nowrap;
    display: block;
} 