/**
 * Estilos para o Wizard de Cadastro - Versão Clean
 */

/* Container Principal */
.wizard-form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* Indicador de Progresso */
.wizard-progress-container {
    margin-bottom: 5px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.wizard-progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 8px;
    margin-bottom: 24px;
    overflow: hidden;
}

.wizard-progress-fill {
    width: 20%;
    height: 100%;
    background: linear-gradient(90deg, #3c9560 0%, #2d7449 100%);
    transition: width 0.3s ease;
}

/* Indicadores de Steps */
.wizard-steps-indicator {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.wizard-step-indicator {
    flex: 1;
    text-align: center;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.wizard-step-indicator:hover {
    border-color: #3c9560;
    background: #f0fdf4;
    transform: translateY(-2px);
}

.wizard-step-indicator.active {
    background: #f0fdf4;
    border-color: #3c9560;
}

.wizard-step-indicator.completed {
    background: #f0fdf4;
    border-color: #86efac;
}

.wizard-step-number {
    font-size: 18px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
}

.wizard-step-indicator.active .wizard-step-number {
    color: #3c9560;
}

.wizard-step-indicator.completed .wizard-step-number {
    color: #16a34a;
}

.wizard-step-label {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
}

/* Fieldsets das Abas */
.wizard-step {
    display: none;
    border: none;
    padding: 0;
    margin-bottom: 48px;
}

.wizard-step.active {
    display: block;
}

.wizard-step legend {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 32px;
    padding: 0;
    border: none;
    width: 100%;
}

.wizard-step legend i {
    color: #3c9560;
    margin-right: 12px;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.form-group .required {
    color: #ef4444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select {
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background-color: #ffffff !important;
    transition: all 0.2s;
}

.wizard-form input,
.wizard-form select,
.wizard-form textarea {
    background-color: #ffffff !important;
}

.wizard-form input:-webkit-autofill,
.wizard-form input:-webkit-autofill:hover,
.wizard-form input:-webkit-autofill:focus,
.wizard-form textarea:-webkit-autofill,
.wizard-form select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: inherit !important;
    background-color: #ffffff !important;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #3c9560;
    box-shadow: 0 0 0 3px rgba(60, 149, 96, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #ef4444;
    background-color: #fff5f5;
}

/* Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

/* Checkboxes */
.form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3c9560;
}

/* Container de Documentos Estrangeiros */
.foreign-docs {
    display: none;
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #3c9560;
}

.foreign-docs .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

/* Seção de Endereço */
h4 {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    margin: 32px 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Info Box (LGPD) */
.info-box {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    padding: 16px;
    border-radius: 8px;
    margin: 30px 0;
}

.info-box p {
    margin: 0 10px 0 0;
    font-size: 14px;
    color: #1e40af;
    line-height: 1.6;
}

/* Termo de Privacidade Container */
.termo-privacidade-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 24px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.termo-privacidade {
    font-size: 14px;
    line-height: 1.8;
    color: #334155;
}

.termo-privacidade h3 {
    color: #1e293b;
    font-size: 18px;
    margin-bottom: 16px;
}

.termo-privacidade h4 {
    color: #1e293b;
    font-size: 16px;
    margin: 24px 0 12px 0;
}

.termo-privacidade p {
    margin-bottom: 16px;
}

.termo-privacidade ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.termo-privacidade ul li {
    margin-bottom: 8px;
}

/* Checkbox do Termo de Aceite */
.termo-aceite {
    padding: 20px;
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 8px;
}

.termo-aceite label {
    display: flex;
    align-items: start;
    gap: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #92400e;
    margin: 0;
}

.termo-aceite input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 2px;
}

/* Botões do Wizard */
.wizard-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 32px 0;
    margin-top: 20px;
}

.wizard-buttons button {
    flex: 1;
    height: 36px;
    padding: 0 32px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
    line-height: 1;
    vertical-align: middle;
}

.wizard-buttons #prevBtn,
.wizard-buttons #nextBtn,
.wizard-buttons #submitBtn {
    flex: 1;
    max-width: 96px;
    height: 36px;
    margin: 0;
}

.wizard-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wizard-buttons button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Controle de visibilidade dos botões */
.wizard-buttons #prevBtn[style*="display: none"],
.wizard-buttons #submitBtn[style*="display: none"] {
    display: none !important;
}

/* Estilos de Botões */
.btn {
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #3c9560 0%, #2d7449 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2d7449 0%, #1f5231 100%);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
}

/* Complemento de Cadastro */
.complement-fieldset { height: auto; min-height: auto; overflow: visible; position: relative; }
.complement-intro { margin: 0 0 16px 0; color: #475569; }
.complement-disclaimer { margin: 0 0 20px 0; padding: 12px 14px; border: 1px solid #dbeafe; border-radius: 8px; background: #eff6ff; color: #1e3a8a; font-size: 13px; line-height: 1.5; }
.complement-aceite { margin-top: 16px; padding: 16px; border: 1px solid #e2e8f0; border-radius: 8px; }
.complement-aceite label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.wizard-buttons--end { justify-content: flex-end; clear: both; position: relative; z-index: 2; }
.btn-submit-lg { min-width: 140px; }

/* Mensagens de Erro */
.alert {
    border-left: 4px solid;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Responsivo */
@media (max-width: 768px) {
    .wizard-form {
        padding: 16px;
    }

    .wizard-step {
        margin-bottom: 32px;
    }

    .wizard-step legend {
        font-size: 20px;
        margin-bottom: 24px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wizard-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .wizard-buttons button {
        width: 100%;
    }

    .wizard-steps-indicator {
        gap: 6px;
    }

    .wizard-step-indicator {
        padding: 10px 6px;
    }

    .wizard-step-number {
        font-size: 16px;
    }

    .wizard-step-label {
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    .wizard-progress-container {
        margin-bottom: 30px;
    }

    .wizard-step-indicator {
        padding: 8px 4px;
    }

    .wizard-step-number {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .wizard-step-label {
        font-size: 10px;
    }

    h4 {
        font-size: 14px;
        margin: 24px 0 12px 0;
    }
}
