/* Backdrop Oscuro */
.contact-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.7);
    /* Navy con opacidad */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Contenedor del Modal */
.contact-modal-container {
    background-color: #F9FAFB;
    /* Ice Grey */
    width: 90%;
    max-width: 450px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid #93C5FD;
    /* Pastel Blue */
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.contact-modal-backdrop.active .contact-modal-container {
    transform: translateY(0);
}

/* Header */
.contact-modal-header {
    background-color: #2563EB;
    /* Electric Blue */
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: bold;
}

.contact-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

/* Body */
.contact-modal-body {
    padding: 1.5rem;
}

.contact-modal-text {
    color: #4B5563;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Formularios */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #111827;
    /* Navy */
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #D1D5DB;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Botón */
.btn-submit {
    width: 100%;
    background-color: #111827;
    /* Navy */
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #2563EB;
}

/* Utilidades */
.hidden {
    display: none;
}

/* Mensajes de feedback */
.msg-success {
    background-color: #D1FAE5;
    color: #065F46;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.msg-error {
    background-color: #FEE2E2;
    color: #991B1B;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.captcha-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
    min-height: 78px;
}