/* Modal de Contato */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-modal.hidden {
    display: none;
}

.contact-modal-content {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.contact-modal-close {
    position: absolute;
    top: 10px;
    left: 15px;
    background: transparent;
    color: #666;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    padding: 5px;
}

.contact-modal-close:hover {
    color: #333;
}

.contact-modal-header {
    text-align: center;
    padding: 15px 10px 10px;
    border-bottom: 1px solid var(--chat-border-color);
}

.contact-modal-avatar {
    width: 80%;
    height: 0;
    padding-bottom: 80%;
    margin: 0 auto 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--chat-colour-primary);
    position: relative;
}

.contact-modal-avatar img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-modal-header h2 {
    margin: 0 0 5px;
    font-size: 24px;
    font-weight: 600;
    color: var(--chat-colour-text-darkest);
}

.contact-modal-header p {
    margin: 0;
    font-size: 16px;
    color: var(--chat-colour-text-lighter);
}

.contact-modal-body {
    padding: 10px;
}

/* Estilo similar às mensagens do chat */
.contact-modal-status {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 8px 12px;
    background-color: #dcf8c6;
    border-radius: 18px 18px 4px 18px;
    position: relative;
    max-width: 85%;
    margin-left: auto;
    margin-right: 0;
}

.contact-status-indicator {
    width: 12px;
    height: 12px;
    background-color: #128c7e;
    border-radius: 50%;
    margin-right: 10px;
    animation: pulse 2s infinite;
}

.contact-modal-status span {
    font-size: 14.2px;
    color: #111b21;
    font-weight: 400;
    line-height: 19px;
}

.contact-modal-message {
    padding: 8px 12px;
    background-color: #ffffff;
    border-radius: 18px 18px 18px 4px;
    position: relative;
    max-width: 85%;
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 10px;
}

.contact-modal-message p {
    margin: 0;
    font-size: 14.2px;
    color: #111b21;
    font-style: italic;
    line-height: 19px;
    word-wrap: break-word;
}

/* Animação de pulse para o indicador de status */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}