/* ============================================
   CONTACT MODAL STYLES
   ============================================ */

/* Modal overlay base styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}


.modal-contact {
    max-width: 600px;
    width: 90%;
}

.modal-contact .modal-header {
    background: #243a9c;
    /* Azul plano de la web */
    color: white;
    padding: 15px 30px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-contact .modal-header .header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-contact .modal-header .logo-modal {
    height: 40px;
    width: auto;
}

.modal-contact .modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: white;
}

.modal-contact .modal-header h3 i {
    margin-right: 10px;
    color: white;
}

.modal-contact .modal-header .close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-contact .modal-header .close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-contact .modal-body {
    padding: 30px;
    background: white;
    border-radius: 0 0 10px 10px;
}

.contact-modal-form .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-modal-form .form-control {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-modal-form .form-control:focus {
    border-color: #168a18;
    box-shadow: 0 0 0 0.2rem rgba(22, 138, 24, 0.15);
    outline: none;
}

.contact-modal-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-modal-form .btn-submit {
    background: linear-gradient(135deg, #168a18 0%, #0d5c0f 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(22, 138, 24, 0.3);
}

.contact-modal-form .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 138, 24, 0.4);
}

.contact-modal-form .btn-submit:active {
    transform: translateY(0);
}

.contact-modal-form .btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.contact-modal-form .btn-submit:disabled:hover {
    transform: none;
    box-shadow: none;
}

.contact-modal-form .btn-submit i {
    margin-right: 8px;
}

/* Captcha box styles */
.captcha-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.captcha-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #243a9c;
    margin: 10px 0;
}

.captcha-question span {
    color: #168a18;
    font-size: 1.3rem;
}

/* Checkbox styles */
.form-check {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.form-check-label {
    font-size: 0.95rem;
    color: #333;
    cursor: pointer;
}

.form-check-label a {
    color: #243a9c;
    text-decoration: underline;
}

.form-check-label a:hover {
    color: #168a18;
}

.form-check-input {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
}

.contact-modal-form .loading {
    background: #168a18;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.contact-modal-form .error-message {
    background: #dc3545;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.contact-modal-form .sent-message {
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

/* Hover effect for clickable info item */
.info-item-clickable {
    transition: all 0.3s ease;
}

.info-item-clickable:hover {
    background: rgba(22, 138, 24, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-item-clickable:hover i {
    color: #168a18;
    transform: scale(1.1);
}

.info-item-clickable i {
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-contact {
        width: 95%;
        margin: 20px auto;
    }

    .modal-contact .modal-header {
        padding: 15px 20px;
    }

    .modal-contact .modal-header h3 {
        font-size: 1.2rem;
    }

    .modal-contact .modal-body {
        padding: 20px;
    }
}