@import url("./ax-colors.css");

/* =========================================================
   POPUP DE CONFIRMACIÓN PARA GRAVITY FORMS
   ========================================================= */

.ax-gf-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: color-mix(in srgb, var(--ax-black) 58%, transparent);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.ax-gf-popup img.icon.send {
    width: 130px;
    margin-bottom: 30px;
}

.ax-gf-popup.is-visible {
    opacity: 1;
    visibility: visible;
}

/* Caja del popup */
.ax-gf-popup__box {
    position: relative;
    width: 100%;
    max-width: 700px;
    padding: 44px 55px 37px;
    background: var(--ax-color-bg-light);
    color: var(--ax-black);
    text-align: center;
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ax-gf-popup.is-visible .ax-gf-popup__box {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Botón de cerrar */
.ax-gf-popup__close {
    position: absolute;
    top: 12px;
    right: 15px;
    z-index: 2;

    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;

    background: transparent;
    color: var(--ax-black);
    font-size: 32px;
    font-weight: 300;
    line-height: 34px;
    cursor: pointer;
}

.ax-gf-popup__close:hover {
    background: color-mix(in srgb, var(--ax-black) 8%, transparent);
    color: var(--ax-black);
}

/* Icono superior */
.ax-gf-popup__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;

    border-radius: 50%;
    background: var(--ax-green);
}

.ax-gf-popup__icon svg {
    width: 96px;
    height: 96px;
    overflow: visible;
}

/* Mensaje procedente de Gravity Forms */
.ax-gf-popup__content,
.ax-gf-popup__content .gform_confirmation_message {
    color: var(--ax-black);
    font-size: 20px;
    line-height: 1.35;
}

.ax-gf-popup__content h1,
.ax-gf-popup__content h2,
.ax-gf-popup__content h3,
.ax-gf-popup__content h4 {
    margin: 0 0 10px;
    color: var(--ax-black);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
}

.ax-gf-popup__content p {
    margin: 0 0 8px;
}

/* Elimina estilos propios del mensaje de Gravity Forms */
.ax-gf-popup__content .gform_confirmation_wrapper,
.ax-gf-popup__content .gform_confirmation_message {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

/* Botón aceptar */
.ax-gf-popup__accept {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;
    margin-top: 22px;
    padding: 10px 25px;
    border: 0;
    border-radius: 100px;

    background: var(--ax-black);
    color: var(--ax-white);
    font-family: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;

    transition: background 0.2s ease, color 0.2s ease;
}

.ax-gf-popup__accept:hover {
    background: var(--ax-green);
    color: var(--ax-black);
}

/* Evita el scroll mientras el popup está abierto */
body.ax-gf-popup-open {
    overflow: hidden;
}

/* Responsive */
@media only screen and (max-width: 767px) {

    .ax-gf-popup {
        padding: 18px;
    }

    .ax-gf-popup__box {
        max-width: 480px;
        padding: 42px 22px 30px;
    }

    .ax-gf-popup__icon {
        width: 95px;
        height: 95px;
        margin-bottom: 20px;
    }

    .ax-gf-popup__icon svg {
        width: 76px;
        height: 76px;
    }

    .ax-gf-popup__content,
    .ax-gf-popup__content .gform_confirmation_message {
        font-size: 17px;
    }

    .ax-gf-popup__content h1,
    .ax-gf-popup__content h2,
    .ax-gf-popup__content h3,
    .ax-gf-popup__content h4 {
        font-size: 29px;
    }
}