/**
 * Estilos para o modal de cadastro
 * 
 * @package RemoverEmail
 * @since 3.2.0
 */

/* Container principal do modal */
.modal.removeremail-cadastro-modal {
    --re-primary: #25d366;
    --re-primary-hover: #128c7e;
    --re-secondary: #075e54;
    --re-success: #28a745;
    --re-danger: #dc3545;
    --re-warning: #ffc107;
    --re-info: #17a2b8;
    --re-light: #f8f9fa;
    --re-dark: #343a40;
    --re-border-radius: 8px;
    --re-input-height: 48px;
    --re-transition: all 0.3s ease;
}

/* Overlay do modal */
.modal.removeremail-cadastro-modal .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

/* Dialog do modal */
.modal.removeremail-cadastro-modal .modal-dialog {
    max-width: 500px;
    margin: 1.75rem auto;
    transition: var(--re-transition);
}

/* Em telas pequenas, o modal ocupa mais espaço */
@media (max-width: 576px) {
    .modal.removeremail-cadastro-modal .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }
}

/* Conteúdo do modal */
.modal.removeremail-cadastro-modal .modal-content {
    border: none;
    border-radius: var(--re-border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Cabeçalho do modal */
.modal.removeremail-cadastro-modal .modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background-color: var(--re-light);
    padding: 1.5rem;
}

/* Título do modal */
.modal.removeremail-cadastro-modal .modal-title {
    font-weight: 600;
    color: var(--re-dark);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Ícone no título */
.modal.removeremail-cadastro-modal .modal-title i {
    color: var(--re-primary);
    font-size: 1.5rem;
}

/* Botão de fechar */
.modal.removeremail-cadastro-modal .btn-close {
    opacity: 0.5;
    transition: var(--re-transition);
}

.modal.removeremail-cadastro-modal .btn-close:hover {
    opacity: 1;
}

/* Corpo do modal */
.modal.removeremail-cadastro-modal .modal-body {
    padding: 1.5rem;
}

/* Rodapé do modal */
.modal.removeremail-cadastro-modal .modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    justify-content: space-between;
}

/* Formulário */
.removeremail-cadastro-form {
    margin: 0;
}

/* Grupos de formulário */
.removeremail-cadastro-form .form-group {
    margin-bottom: 1.25rem;
}

/* Labels */
.removeremail-cadastro-form label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--re-dark);
}

/* Rótulo requerido */
.removeremail-cadastro-form label.required::after {
    content: "*";
    color: var(--re-danger);
    margin-left: 4px;
}

/* Campos de entrada */
.removeremail-cadastro-form .form-control {
    height: var(--re-input-height);
    border-radius: var(--re-border-radius);
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    transition: var(--re-transition);
    font-size: 1rem;
}

.removeremail-cadastro-form .form-control:focus {
    border-color: var(--re-primary);
    box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
}

/* Campos com validação */
.removeremail-cadastro-form .form-control.is-valid {
    border-color: var(--re-success);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' 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);
}

.removeremail-cadastro-form .form-control.is-invalid {
    border-color: var(--re-danger);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%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);
}

/* Mensagens de feedback */
.removeremail-field-error {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: var(--re-danger);
}

/* Botões */
.removeremail-cadastro-form .btn {
    height: var(--re-input-height);
    border-radius: var(--re-border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 1.5rem;
    transition: var(--re-transition);
}

/* Botão primário */
.removeremail-cadastro-form .btn-primary {
    background-color: var(--re-primary);
    border-color: var(--re-primary);
}

.removeremail-cadastro-form .btn-primary:hover {
    background-color: var(--re-primary-hover);
    border-color: var(--re-primary-hover);
}

.removeremail-cadastro-form .btn-primary:disabled {
    background-color: rgba(37, 211, 102, 0.5);
    border-color: rgba(37, 211, 102, 0.5);
}

/* Botão de navegação */
.removeremail-cadastro-form .btn-outline-secondary {
    color: var(--re-dark);
    border-color: rgba(0, 0, 0, 0.2);
}

.removeremail-cadastro-form .btn-outline-secondary:hover {
    background-color: var(--re-light);
    color: var(--re-dark);
}

/* Indicador de carregamento */
.removeremail-spinner {
    display: none;
    margin-right: 8px;
}

/* Overlay de carregamento para modais */
.removeremail-modal-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--re-border-radius);
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

/* Spinner dentro do overlay */
.removeremail-modal-loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--re-primary);
}

/* Spinner para botões */
.btn .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Estilo para botão quando estiver em carregamento */
.btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

/* Container de feedback */
.removeremail-feedback {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: var(--re-border-radius);
    display: none;
}

/* Etapas do formulário */
.removeremail-cadastro-step {
    display: none;
}

.removeremail-cadastro-step[data-step="1"] {
    display: block;
}

/* Barra de progresso */
.removeremail-progress-container {
    margin-bottom: 1.5rem;
}

.progress-text {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--re-dark);
}

.progress {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.1);
}

.removeremail-progress-bar {
    background-color: var(--re-primary);
    transition: width 0.6s ease;
}

/* Checkbox personalizado para termos */
.removeremail-cadastro-form .form-check {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.removeremail-cadastro-form .form-check-input {
    margin-top: 0.3rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.removeremail-cadastro-form .form-check-label {
    font-weight: normal;
    font-size: 0.95rem;
}

.removeremail-cadastro-form .form-check-label a {
    color: var(--re-primary);
    text-decoration: none;
}

.removeremail-cadastro-form .form-check-label a:hover {
    text-decoration: underline;
}

/* Efeitos de transição */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: scale(0.95);
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s;
}

/* Mensagem de sucesso */
.cadastro-success-message {
    text-align: center;
    padding: 2rem 1rem;
}

.cadastro-success-message i {
    color: var(--re-success);
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.cadastro-success-message h4 {
    margin-bottom: 1rem;
    color: var(--re-dark);
}

.cadastro-success-message p {
    color: var(--re-dark);
    opacity: 0.75;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 576px) {
    .modal.removeremail-cadastro-modal .modal-header,
    .modal.removeremail-cadastro-modal .modal-body,
    .modal.removeremail-cadastro-modal .modal-footer {
        padding: 1rem;
    }
    
    .removeremail-cadastro-form .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .modal.removeremail-cadastro-modal .modal-footer {
        flex-direction: column;
    }
    
    .removeremail-cadastro-form label {
        font-size: 0.9rem;
    }
} 