/* ══════════════════════════════════════════════════════════════
   FCM Newsletter Popup — "Register & Save"
   ══════════════════════════════════════════════════════════════ */

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

.fcm-nl-popup {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity .3s ease;
}
.fcm-nl-popup.is-open { opacity: 1; }

.fcm-nl-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 39, 68, .6);
}

.fcm-nl-popup__dialog {
    position: relative;
    width: 100%;
    max-width: 954px;
    overflow: hidden;
    min-height: 390px;
    padding: 50px 50px 50px 455px;
    box-sizing: border-box;
    background: #0c6865;
    border-radius: 10px;
    color: #fff;
    transform: translateY(20px);
    transition: transform .3s ease;
}
.fcm-nl-popup.is-open .fcm-nl-popup__dialog { transform: none; }

.fcm-nl-popup__watermark {
    position: absolute;
    left: -386.89px;
    top: -467.44px;
    max-width: none;
    transform: rotate(-35.12deg);
    pointer-events: none;
}

.fcm-nl-popup__photo {
    position: absolute;
    left: -65px;
    top: -39px;
    width: 471px;
    height: 471px;
    max-width: none;
    pointer-events: none;
}

.fcm-nl-popup__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 39px;
    height: 39px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background-color .2s ease;
}
.fcm-nl-popup__close:hover,
.fcm-nl-popup__close:focus-visible { background: rgba(255, 255, 255, .1); }

.fcm-nl-popup__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 23px;
}

.fcm-nl-popup__intro {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fcm-nl-popup .fcm-nl-popup__title {
    margin: 0;
    padding: 0;
    font-family: 'Parkinsans', sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 1.48;
    color: #fff;
}
.fcm-nl-popup__title span { color: #fed55c; }

.fcm-nl-popup .fcm-nl-popup__text {
    margin: 0;
    padding: 0;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.48;
    color: #fff;
}

.fcm-nl-popup__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fcm-nl-popup .fcm-nl-popup__terms {
    margin: 0;
    padding: 0;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.48;
    color: #fff;
}

/* ── WPForms overrides ───────────────────────────────────────── */

#fcm-nl-popup .wpforms-container {
    margin: 0;
    padding: 0;
}

/* Email + button on one row, consent tick box on its own row below */
#fcm-nl-popup .wpforms-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 15px 20px;
}

#fcm-nl-popup .wpforms-field-container {
    display: contents;
}

#fcm-nl-popup .wpforms-field {
    padding: 0;
}

#fcm-nl-popup .wpforms-field-email {
    flex: 1 1 0;
    min-width: 0;
}

#fcm-nl-popup .wpforms-field-checkbox {
    order: 2;
    flex: 0 0 100%;
}

#fcm-nl-popup .wpforms-field-checkbox ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#fcm-nl-popup .wpforms-field-checkbox li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 0;
}

#fcm-nl-popup .wpforms-field-checkbox input[type=checkbox] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    background: #fff center / 12px no-repeat;
    border: 1px solid #fff;
    border-radius: 2px;
    box-shadow: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
#fcm-nl-popup .wpforms-field-checkbox input[type=checkbox]::before,
#fcm-nl-popup .wpforms-field-checkbox input[type=checkbox]::after {
    display: none;
}
#fcm-nl-popup .wpforms-field-checkbox input[type=checkbox]:checked {
    background-color: #fed55c;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='%230c6865' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    border-color: #fed55c;
}
#fcm-nl-popup .wpforms-field-checkbox input[type=checkbox]:focus-visible {
    outline: 2px solid #fed55c;
    outline-offset: 2px;
}

#fcm-nl-popup .wpforms-field-checkbox .wpforms-field-label-inline {
    margin: 0;
    padding: 0;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    color: #fff;
    cursor: pointer;
}
#fcm-nl-popup .wpforms-field-checkbox .wpforms-field-label-inline a {
    color: #fff;
    text-decoration: underline;
}
#fcm-nl-popup .wpforms-field-checkbox label.wpforms-error {
    padding-left: 28px;
}

#fcm-nl-popup .wpforms-field input[type=email] {
    width: 100%;
    max-width: none;
    height: 51px;
    padding: 5px 5px 5px 15px;
    background: #fff;
    border: 1px solid rgba(26, 39, 68, .2);
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
    font-family: 'Comfortaa', sans-serif;
    font-size: 14px;
    line-height: 1.48;
    color: #1a2744;
}
#fcm-nl-popup .wpforms-field input[type=email]::placeholder {
    color: rgba(26, 39, 68, .5);
    opacity: 1;
}
#fcm-nl-popup .wpforms-field input[type=email]:focus {
    outline: 2px solid #fed55c;
    outline-offset: 0;
}

#fcm-nl-popup .wpforms-submit-container {
    order: 1;
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
}

#fcm-nl-popup button.wpforms-submit {
    height: 51px;
    padding: 0 24px;
    background: #fed55c;
    border: 0;
    border-radius: 125px;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.2;
    color: #0c6865;
    cursor: pointer;
    transition: background-color .2s ease;
}
#fcm-nl-popup button.wpforms-submit:hover,
#fcm-nl-popup button.wpforms-submit:focus-visible {
    background: #ffe28d;
}

#fcm-nl-popup .wpforms-submit-spinner {
    margin: 0 0 0 8px;
    vertical-align: middle;
}

#fcm-nl-popup label.wpforms-error,
#fcm-nl-popup .wpforms-error-container {
    margin: 6px 0 0;
    padding: 0;
    background: none;
    border: 0;
    font-family: 'Comfortaa', sans-serif;
    font-size: 12px;
    color: #fed55c;
}
#fcm-nl-popup .wpforms-error-container,
#fcm-nl-popup .wpforms-recaptcha-container {
    order: 3;
    flex: 0 0 100%;
    padding: 0;
}
#fcm-nl-popup .wpforms-recaptcha-container:not(:has(.wpforms-error)) {
    display: none;
}
#fcm-nl-popup .wpforms-confirmation-container-full {
    display: flex;
    align-items: center;
    min-height: 84px;
    margin: 0;
    padding: 10px 20px;
    box-sizing: border-box;
    background: #aaebb5;
    border: 0;
    border-radius: 0;
    color: #004a59;
}
#fcm-nl-popup .wpforms-confirmation-container-full p {
    margin: 0;
    padding: 0;
    font-family: 'Comfortaa', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.48;
    color: #004a59;
}
#fcm-nl-popup .fcm-nl-popup__code {
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 980px) {
    .fcm-nl-popup__dialog {
        max-width: 560px;
        min-height: 0;
        padding: 60px 30px 30px;
    }
    .fcm-nl-popup__photo { display: none; }
}

@media (max-width: 480px) {
    .fcm-nl-popup { padding: 12px; }
    .fcm-nl-popup__dialog {
        padding: 60px 20px 24px;
    }
    .fcm-nl-popup .fcm-nl-popup__title { font-size: 28px; }
    .fcm-nl-popup .fcm-nl-popup__text { font-size: 16px; }
    #fcm-nl-popup .wpforms-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    #fcm-nl-popup .wpforms-field-email { flex: 0 0 auto; }
    #fcm-nl-popup .wpforms-field input[type=email] { border-right: 1px solid rgba(26, 39, 68, .2); }
    #fcm-nl-popup button.wpforms-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .fcm-nl-popup,
    .fcm-nl-popup__dialog { transition: none; }
}
