
/* =========================================
   HORMA — FORMULARIO DE CONTACTO
   Notificaciones Toast
   ========================================= */

/* Contenedor de la notificación */
#contact-form-result.horma-contact-result {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 99999 !important;

    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    box-sizing: border-box !important;
    width: calc(100% - 40px) !important;
    max-width: 420px !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 16px 48px 16px 18px !important;

    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;

    border: 1px solid transparent !important;
    border-radius: 6px !important;
    box-shadow: 0 5px 20px rgb(0 0 0 / 15%);

    overflow-wrap: anywhere;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

/* Ocultar cuando no hay mensaje */
#contact-form-result.horma-contact-result:empty,
#contact-form-result.horma-contact-result[hidden] {
    display: none !important;
}

/* Toast de éxito */
#contact-form-result.horma-contact-result.success {
    color: #176b3a !important;
    background-color: #eaf6ee !important;
    border-color: #b8dfc5 !important;
}

/* Toast de error */
#contact-form-result.horma-contact-result.error {
    color: #a61b1a !important;
    background-color: #fff0f0 !important;
    border-color: #efc0c0 !important;
}

/* Indicador de procesamiento */
#contact-form-process[hidden] {
    display: none !important;
}

/* Adaptación a pantallas pequeñas */
@media (max-width: 480px) {
    #contact-form-result.horma-contact-result {
        top: 12px !important;
        right: 12px !important;
        width: calc(100% - 24px) !important;
        max-width: none !important;
    }
}

/* Botón para cerrar la notificación Toast */
#contact-form-result.horma-contact-result .horma-toast-close {
    position: absolute;
    top: 8px;
    right: 10px;

    padding: 0 4px;
    border: 0;
    background: transparent;
    color: inherit;

    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

#contact-form-result.horma-contact-result .horma-toast-close:hover {
    opacity: 0.7;
}
