/* 1. Variáveis */
:root {
    --primary-color: #3B3D78;
    --primary-light: #5457a6;
    --primary-dark: #2a2c55;
}

/* 2. Reset Geral e Melhorias Touch */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body {
    background-color: #f8f9fa;
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 3. Layout Geral */
.container {
    padding-left: 0;
    padding-right: 0;
}

.wizard-container {
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    background-color: white;
    overflow: hidden;
}

/* 4. Cabeçalho */
.wizard-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem 2rem;
    text-align: left;
    border-bottom: 5px solid var(--primary-light);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
}

.logo-container {
    flex-shrink: 0;
}

.logo {
    width: 150px;
    height: auto;
    display: block;
}

.title-container {
    flex-grow: 1;
}

.main-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.subtitle {
    font-size: 0.9rem;
    margin: 0.3rem 0 0;
    opacity: 0.9;
    font-weight: 300;
}

/* 5. Steps do Wizard */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    position: relative;
    padding: 0 40px;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50px;
    right: 50px;
    height: 3px;
    background-color: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
}

.step {
    width: 40px;
    height: 40px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #777;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step.active {
    background-color: var(--primary-color);
    color: white;
}

.step.completed {
    animation: pulse 0.4s ease;
    background-color: var(--primary-light);
    color: white;
}

.thank-you-icon {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* 6. Formulários */
.form-step {
    display: none;
    padding: 2rem;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

.form-floating .form-select:focus, 
.form-control:focus, 
.form-check-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(59, 61, 120, 0.25);
}

.form-check-input:checked[type="radio"] {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}




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

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

/* 7. Botões */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: background-color 0.1s ease, border-color 0.1s ease;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-primary:active,
.btn-primary:active:focus,
.btn-check:active + .btn-primary,
.btn-check:checked + .btn-primary,
.btn-primary.active,
.btn-primary.dropdown-toggle.show {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: var(--primary-dark); /* mesma cor no hover do próximo */
    border-color: var(--primary-dark); /* também mudar a borda no hover */
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 61, 120, 0.2);
}

.btn-outline-primary:active {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(59, 61, 120, 0.2);
}

.btn-primary, .btn-outline-primary {
    transition: all 0.2s ease;
    transform: translateY(0);
}

.btn-primary:hover, .btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 61, 120, 0.2);
}

.btn-primary:active, .btn-outline-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(59, 61, 120, 0.2);
}

/* 8. Cartões de Opções */
.option-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: var(--primary-light);
    background-color: rgba(59, 61, 120, 0.05);
}

.option-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(59, 61, 120, 0.1);
}

/* 9. SweetAlert Personalizado */
.swal2-popup {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 10px;
}

.swal2-title {
    font-weight: 600;
    color: var(--primary-color);
}

.swal2-icon.swal2-warning {
    border-color: #f49cc2;
    color: #f49cc2;
}

.swal2-icon.swal2-error {
    border-color: #f27474;
    color: #f27474;
}

.swal2-icon.swal2-success {
    border-color: #a5dc86;
    color: #a5dc86;
}

.swal2-styled.swal2-confirm {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 6px rgba(59, 61, 120, 0.4);
}

.swal2-styled.swal2-confirm:hover {
    background-color: var(--primary-dark);
}

.swal2-styled.swal2-cancel {
    background-color: #6c757d;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.4);
}

/* 10. Responsividade */
@media (max-width: 991px) {
    .wizard-container {
        margin: 0;
        border-radius: 0;
        max-width: 100%;
        box-shadow: none;
    }
}

@media (max-width: 767px) {
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .wizard-header {
        padding: 1.2rem;
    }

    .step-indicator {
        padding: 0 20px;
    }

    .step-indicator::before {
        left: 30px;
        right: 30px;
    }

    .step {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .form-step {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .form-step {
        padding: 1.5rem;
    }

    .step-indicator {
        padding: 0 1.5rem;
    }

    .step-indicator::before {
        left: 25px;
        right: 25px;
    }

    .row > div {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* CSS específico para o Modal LGPD */
.lgpd-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lgpd-content {
    background: white;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.lgpd-header {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    border-radius: 15px 15px 0 0;
    text-align: center;
}

.lgpd-header h3 {
    margin: 0;
    font-weight: 600;
    font-size: 1.3rem;
}

.lgpd-body {
    padding: 2rem;
}

.lgpd-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.5rem;
}

.lgpd-text ul {
    padding-left: 1.2rem;
}

.lgpd-text li {
    margin-bottom: 0.5rem;
}

.termo-completo-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.termo-completo-link:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

.checkbox-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 2px solid #e9ecef;
}

.checkbox-container .form-check {
    margin-bottom: 1rem;
}

.checkbox-container .form-check:last-child {
    margin-bottom: 0;
}

.checkbox-container .form-check-input {
    margin-top: 0.25rem;
}

.checkbox-container .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-container .form-check-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(59, 61, 120, 0.25);
}

.checkbox-container .form-check-label {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
}

.required-text {
    color: #dc3545;
    font-weight: 600;
}

.optional-text {
    color: #6c757d;
    font-style: italic;
}

.lgpd-actions {
    padding: 0 2rem 2rem;
    text-align: center;
}

.btn-aceitar {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 12px 40px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-aceitar:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 61, 120, 0.3);
}

.btn-aceitar:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Esconder o conteúdo principal enquanto o modal estiver ativo */
body.modal-lgpd-ativo .container {
    filter: blur(3px);
    pointer-events: none;
}