body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f7fa;
    color: #333;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 700px;
    overflow: hidden;
    position: relative;
}

.header {
    padding: 25px 30px 15px;
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
}

.header h1 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.8rem;
    text-align: center;
}

.progress-container {
    width: 100%;
    height: 5px;
    background: #e0e0e0;
    margin-bottom: 25px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #3498db;
    width: 20%;
    transition: width 0.4s ease;
}

.steps-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #fff;
    transition: all 0.3s ease;
}

.step.active {
    background-color: #3498db;
}

.step.completed {
    background-color: #2ecc71;
}

#formContent {
    padding: 30px;
    min-height: 300px;
}

.question-container {
    margin-bottom: 25px;
}

.question-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.4rem;
}

.option-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.option-card {
    flex: 1;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: #3498db;
    background-color: #f1f8fe;
}

.option-card.selected {
    border-color: #3498db;
    background-color: #ebf5ff;
}

.option-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #3498db;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

.form-control {
    width: 100%;
    padding: 12px 1px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23495057' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Radio buttons styles */
.radio-group {
    margin-bottom: 15px;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* File upload styles */
.file-upload-label {
    display: inline-block;
    padding: 12px 20px;
    background-color: #3498db;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.file-upload-label:hover {
    background-color: #2980b9;
}

.file-list {
    margin-top: 15px;
}

.no-files {
    color: #888;
    font-style: italic;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 8px;
}

.file-item i {
    margin-right: 10px;
    color: #3498db;
}

.file-item span {
    flex-grow: 1;
}

.remove-file {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 5px;
}

.remove-file:hover {
    color: #a71d2a;
}

.footer {
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
}

.buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.right-buttons {
    display: flex;
    gap: 15px;
}

button {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

button.primary {
    background-color: #3498db;
    color: white;
}

button.primary:hover {
    background-color: #2980b9;
}

button.secondary {
    background-color: #e9ecef;
    color: #495057;
}

button.secondary:hover {
    background-color: #dee2e6;
}

button.success {
    background-color: #2ecc71;
    color: white;
}

button.success:hover {
    background-color: #27ae60;
}

.success-message {
    text-align: center;
    padding: 30px 0;
}

.success-message i {
    font-size: 5rem;
    color: #2ecc71;
    margin-bottom: 20px;
}

.success-message h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.success-message p {
    color: #7f8c8d;
    margin-bottom: 25px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* Responsividade */
@media (max-width: 768px) {
    .option-container {
        flex-direction: column;
    }
    
    .footer {
        padding: 15px;
    }
    
    button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
}

.finalizar-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    margin-top: 0px;
}

.finalizar-button:hover {
    background-color: #218838;
}

/* Adicione estes estilos ao seu arquivo styles.css existente */

/* Estilos para campos de formulário */
.form-control.invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

/* Estilos para campos com placeholders */
.form-control::placeholder {
    color: #adb5bd;
    opacity: 0.8;
}

/* Feedback visual quando um campo está validado */
.form-control.valid {
    border-color: #28a745;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Melhorar feedback visual dos campos de entrada */
.form-control:focus {
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Estilo para input quando está sendo preenchido corretamente */
.form-control.typing {
    border-color: #007bff;
}

/* Centralizar botões na página de sucesso */
.success-message .action-buttons-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.success-message button,
.success-message a {
    display: block;
    margin: 0 auto;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-warning {
    background-color: #ffeeba;
    color: #856404;
}

.badge-success {
    background-color: #d4edda;
    color: #155724;
}