/* mod_kit popup. The inline subscribe form is styled by the template (mod_mautic/_default.scss). */
.kit-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.moduletable.kit .kit-message:empty {
    display: none;
}

.moduletable.kit .kit-form.kit-done .mauticform-innerform {
    display: none;
}

.kit-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.88);
    color: #fff;
    font-family: Poppins, Hind, sans-serif;
}

.kit-popup[hidden] {
    display: none;
}

.kit-popup-box {
    position: relative;
    width: 100%;
    max-width: 560px;
    text-align: center;
}

.kit-popup-close {
    position: absolute;
    top: -48px;
    right: 0;
    background: none;
    border: 0;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
}

.kit-popup-close:hover,
.kit-popup-close:focus {
    opacity: 1;
}

.kit-popup-title {
    margin: 0 0 28px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.kit-popup-row {
    display: flex;
    border-bottom: 2px solid rgba(255, 255, 255, 0.8);
}

/* The template styles every input (36px bold, blue underline), so pin the popup's own look */
.kit-popup .kit-popup-row input[type="email"] {
    flex: 1;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 12px 4px;
    background: transparent;
    border: 0 !important;
    border-radius: 0;
    box-shadow: none;
    color: #fff;
    font-family: Poppins, Hind, sans-serif;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.4;
    outline: none;
}

.kit-popup-row input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.kit-popup .kit-popup-row input[type="email"] {
    text-align: center;
}

/* Big centred button under the email field, hexagon ends like the site's buttons */
.kit-popup .kit-popup-send {
    display: block;
    min-width: 240px;
    margin: 28px auto 0;
    padding: 18px 48px;
    background: #fff;
    border: 0;
    clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%);
    color: #000;
    font-family: Poppins, Hind, sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.kit-popup .kit-popup-send:hover,
.kit-popup .kit-popup-send:focus {
    background: #58d8ec;
}

.kit-popup .kit-popup-send:disabled {
    opacity: 0.5;
}

.kit-popup-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
}

.kit-popup-check input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.kit-popup .kit-message {
    min-height: 1.4em;
    margin: 18px 0 0;
    font-size: 15px;
}

.kit-popup .kit-message.kit-error {
    color: #ff8a80;
}

.kit-popup .kit-message.kit-ok {
    color: #b9f6ca;
}

.kit-popup .kit-form.kit-done .kit-popup-row,
.kit-popup .kit-form.kit-done .kit-popup-send,
.kit-popup .kit-form.kit-done .kit-popup-check {
    display: none;
}

@media (max-width: 480px) {
    .kit-popup-title {
        font-size: 24px;
    }
}
