﻿/* ═══════════════════════════════════════
   Módulo: Dados Pessoais Contato
   ═══════════════════════════════════════ */

.contato-container {
    width: 100%;
    max-width: 740px; 
    margin: 0 auto;
    padding: 32px 16px 64px;
    font-family: 'Inter', system-ui, sans-serif;
}

/* ── Cabeçalhos ── */
.contato-header {
    margin-bottom: 24px;
}

.contato-titulo {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 4px 0;
}

.contato-subtitulo {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
}

/* ── Card Principal ── */
.contato-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.contato-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
}

.contato-card-titulo {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 4px 0;
}

.contato-card-subtitulo {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.contato-form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Grupos de Formulário ── */
.contato-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contato-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contato-label {
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

/* ── Inputs Padrões ── */
.contato-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

    .contato-input:focus {
        border-color: #0ea5e9;
        box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    }

/* ── Input Composto (Telefone com Bandeira) ── */
.contato-input-composite {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #ffffff;
    padding: 0 12px;
    height: 42px; /* Padroniza altura */
    transition: border-color 0.15s;
}

    .contato-input-composite:focus-within {
        border-color: #0ea5e9;
        box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    }

.contato-country-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    user-select: none;
}

    .contato-country-selector i {
        font-size: 10px;
        color: #6b7280;
    }

.contato-input-divider {
    width: 1px;
    height: 24px;
    background-color: #e5e7eb;
    margin: 0 12px;
}

.contato-input-borderless {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #111827;
    background: transparent;
    padding: 0;
}

.contato-icon-verified {
    color: #10b981; /* Verde sucesso */
    font-size: 16px;
    margin-left: 8px;
}

/* ── Status e Validações ── */
.contato-status-block {
    margin-top: 2px;
}

.contato-status-pending {
    font-size: 13px;
    color: #ef4444; /* Vermelho alerta */
}

.contato-status-verified {
    font-size: 13px;
    color: #6b7280; /* Cinza texto */
}

.contato-link-action {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
}

    .contato-link-action:hover {
        text-decoration: underline;
    }

/* ── Botão Adicionar (Azul Textual) ── */
.contato-btn-add-link {
    background: none;
    border: none;
    color: #0ea5e9;
    font-size: 13px;
    font-weight: 500;
    padding: 0;
    cursor: pointer;
    text-align: left;
    margin-top: 4px;
    display: inline-block;
    width: max-content;
}

    .contato-btn-add-link:hover {
        text-decoration: underline;
    }

/* ── Menu de Três Pontinhos ── */
.contato-menu-wrapper {
    position: relative;
}

.contato-btn-menu {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

    .contato-btn-menu:hover {
        background: #f3f4f6;
        color: #111827;
    }

.contato-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 130px;
    z-index: 10;
    padding: 4px 0;
}

.contato-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 16px;
    background: none;
    border: none;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    text-align: left;
}

    .contato-dropdown-item:hover {
        background: #f3f4f6;
    }

    .contato-dropdown-item.danger {
        color: #ef4444;
    }

        .contato-dropdown-item.danger:hover {
            background: #fef2f2;
        }

/* ── Rodapé ── */
.contato-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #f3f4f6;
}

.contato-btn-voltar {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

    .contato-btn-voltar:hover {
        background: #f3f4f6;
    }

.contato-btn-salvar {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    background: #0ea5e9;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}

    .contato-btn-salvar:hover {
        background: #0284c7;
    }

/* ── Modal Overlay (Fundo Escuro) ── */
.contato-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(17, 24, 39, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

/* ── Caixinha do Modal ── */
.contato-modal {
    background: #ffffff;
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    padding: 32px 24px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
    animation: modalFadeIn 0.3s ease-out forwards;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.contato-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.15s;
}

    .contato-modal-close:hover {
        color: #111827;
    }

.contato-modal-icon {
    width: 56px;
    height: 56px;
    background-color: #f0f9ff;
    color: #0ea5e9;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin: 0 auto 16px auto;
}

.contato-modal-titulo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

.contato-modal-subtitulo {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* ── Container dos 6 Quadradinhos OTP ── */
.contato-otp-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.contato-otp-input {
    width: 48px;
    height: 56px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    color: #111827;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s;
}

    .contato-otp-input:focus {
        border-color: #0ea5e9;
        box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
    }

.contato-modal-reenvio {
    font-size: 13px;
    margin-bottom: 24px;
}

    .contato-modal-reenvio a {
        color: #0ea5e9;
        font-weight: 600;
        text-decoration: none;
    }

        .contato-modal-reenvio a:hover {
            text-decoration: underline;
        }

    .contato-modal-reenvio .text-muted {
        color: #9ca3af;
    }

.contato-modal-acoes {
    display: flex;
    gap: 12px;
}