/* MT - Email Signup */

/* Elementor containers size widgets by a computed width; take the full width so the container fits the content */
.elementor-widget-mtfe-email-signup {
    width: 100%;
}
.mtfe-es {
    --es-panel: #8C1C3A;
    --es-ink: #FFFFFF;
    --es-accent: #E7CB8A;
    --es-input: #FFFFFF;
    --es-input-text: #121417;
    --es-btn: #121417;
    --es-btn-text: #FFFFFF;
    --es-btn-hover: #D4B26A;
    --es-btn-hover-text: #121417;
    --es-title-size: 72px;
}
.mtfe-es.has-peek {
    padding-top: 150px;          /* room for the pet above the panel */
}
.mtfe-es__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px 70px;
    padding: 84px 80px;
    border-radius: 30px;
    background: var(--es-panel);
    color: var(--es-ink);
    isolation: isolate;
}
.mtfe-es .mtfe-es__peek {
    position: absolute;
    right: 12%;
    bottom: calc(100% - 4px);        /* paws rest on the panel edge */
    z-index: 2;
    width: 250px;
    max-width: none;
    height: auto;
    pointer-events: none;
    transform-origin: 50% 100%;
    animation: mtfe-es-peek 6s ease-in-out infinite;
}
@keyframes mtfe-es-peek {
    0%, 70%, 100% { transform: translateY(0); }
    78%           { transform: translateY(6px); }
    86%           { transform: translateY(-3px); }
}
.mtfe-es__decor {            /* clipped layer: the panel itself can't clip because the pet overflows its top */
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    border-radius: inherit;
}
.mtfe-es__mark {
    position: absolute;
    left: -70px;
    bottom: -90px;
    width: 300px;
    height: 300px;
    color: var(--es-accent);
    opacity: .3;
}

/* copy */
.mtfe-es__eyebrow {
    margin-bottom: 16px;
    color: var(--es-accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}
body .mtfe-es .mtfe-es__title {
    margin: 0;
    color: var(--es-ink);
    font-family: "Fraunces", Georgia, serif;
    font-size: var(--es-title-size) !important;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
}
.mtfe-es__title em {
    color: var(--es-accent);
    font-style: italic;
    font-weight: 500;
}
.mtfe-es__text {
    max-width: 460px;
    margin: 22px 0 0;
    color: var(--es-ink);
    font-size: 18px;
    line-height: 1.6;
    opacity: .92;
}

/* side: perks + form */
.mtfe-es__side {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.mtfe-es .mtfe-es__perks {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mtfe-es__perks li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--es-ink);
    font-size: 16px;
    font-weight: 600;
}
.mtfe-es__perks svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    padding: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: var(--es-accent);
}

/* form (Contact Form 7 markup) */
.mtfe-es__form .wpcf7 form,
.mtfe-es__form .wpcf7 p {
    margin: 0;
}
.mtfe-es__form .mtfe-es-fields,
.mtfe-es__form .mtfe-es-fields > p {      /* Contact Form 7 may wrap the fields in a paragraph */
    display: flex;
    align-items: center;
    gap: 8px;
}
.mtfe-es__form .mtfe-es-fields > p {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}
.mtfe-es__form .mtfe-es-fields br {
    display: none;
}
.mtfe-es__form .mtfe-es-fields {
    padding: 8px;
    border-radius: 999px;
    background: var(--es-input);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}
.mtfe-es__form .mtfe-es-label {
    display: block;
    flex: 1;
    min-width: 0;
    margin: 0;
}
.mtfe-es__form .mtfe-es-label > span:first-child {      /* visually hidden, still read by screen readers */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
.mtfe-es__form .wpcf7-form-control-wrap {
    display: block;
}
.mtfe-es .mtfe-es__form input[type="email"] {
    width: 100%;
    height: 52px;
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
    color: var(--es-input-text);
    font-size: 16px;
}
.mtfe-es .mtfe-es__form input[type="email"]::placeholder {
    color: #6A6C73;
    opacity: 1;
}
.mtfe-es .mtfe-es__form input[type="email"]:focus {
    outline: 2px solid var(--es-btn);
    outline-offset: 2px;
}
.mtfe-es .mtfe-es__form .wpcf7-submit {          /* !important beats the theme's global button styles */
    flex: 0 0 auto;
    width: auto !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 28px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: var(--es-btn) !important;
    box-shadow: none !important;
    color: var(--es-btn-text) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    line-height: 52px !important;
    text-transform: none !important;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease;
}
.mtfe-es .mtfe-es__form .wpcf7-submit:hover,
.mtfe-es .mtfe-es__form .wpcf7-submit:focus-visible {
    background: var(--es-btn-hover) !important;
    color: var(--es-btn-hover-text) !important;
}
.mtfe-es__form .wpcf7-spinner {
    position: absolute;
    margin: 0;
}
.mtfe-es__form .wpcf7-not-valid-tip {
    display: block;
    padding: 6px 20px 0;
    color: #B00020;
    font-size: 13px;
}
.mtfe-es .mtfe-es__form .wpcf7-response-output {
    margin: 14px 0 0 !important;
    padding: 10px 16px !important;
    border: 1px solid rgba(255, 255, 255, .5) !important;
    border-radius: 12px;
    color: var(--es-ink);
    font-size: 14px;
}
.mtfe-es__small {
    margin: 0;
    color: var(--es-ink);
    font-size: 13px;
    opacity: .85;
}
.mtfe-es .mtfe-es__small a,
.mtfe-es .mtfe-es__small a:visited {
    color: var(--es-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 1024px) {
    .mtfe-es__panel {
        grid-template-columns: 1fr;
        padding: 64px 48px;
    }
}

@media (max-width: 767px) {
    .mtfe-es.has-peek {
        padding-top: 92px;
    }
    .mtfe-es__panel {
        gap: 28px;
        padding: 48px 22px 34px;
        border-radius: 22px;
    }
    .mtfe-es .mtfe-es__peek {
        width: 150px;
        right: 8%;
        bottom: calc(100% - 3px);
    }
    .mtfe-es__mark {
        width: 200px;
        height: 200px;
    }
    .mtfe-es__text {
        font-size: 16px;
    }
    .mtfe-es__form .mtfe-es-fields,
    .mtfe-es__form .mtfe-es-fields > p {
        flex-direction: column;
        align-items: stretch;
    }
    .mtfe-es__form .mtfe-es-fields {
        padding: 6px;
        border-radius: 22px;
    }
    .mtfe-es .mtfe-es__form .wpcf7-submit {
        width: 100% !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mtfe-es .mtfe-es__peek {
        animation: none;
    }
}
