/* =========================================================
   HÍRLEVÉL FELIRATKOZÁS — form stílus
   Brand színekkel (arany gomb), a többi shortcode-hz illeszkedve.
   ========================================================= */

.nl-form {
    width: 100%;
    max-width: 560px;
    margin: 16px 0;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.nl-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

.nl-form__email,
.nl-form__name {
    flex: 1 1 160px;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #e0e5d5;
    border-radius: 26px;
    background: #ffffff;
    font-family: inherit;
    font-size: 15px;
    color: #26331f;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nl-form__email::placeholder,
.nl-form__name::placeholder {
    color: #9aa17f;
}

.nl-form__email:focus,
.nl-form__name:focus {
    border-color: #b8923c;
    box-shadow: 0 0 0 3px rgba(184, 146, 60, 0.15);
}

.nl-form__button {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 28px;
    border: none;
    border-radius: 26px;
    background: linear-gradient(135deg, #e2c878, #b8923c);
    color: #3a2d05;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(150, 110, 30, 0.20);
    transition: filter 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.nl-form__button:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.nl-form__button:active {
    transform: translateY(0);
}

.nl-form__button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ----- GDPR consent checkbox ----- */
.nl-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.5;
    color: #5a6c4f;
    cursor: pointer;
}

.nl-consent input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #b8923c;
    cursor: pointer;
}

.nl-consent__text a {
    color: #b8923c;
    text-decoration: underline;
}

.nl-consent__text a:hover {
    color: #8a6d2c;
}

/* ----- Honeypot (embereknek láthatatlan) ----- */
.nl-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ----- Üzenet (siker / hiba) ----- */
.nl-form__message {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
    min-height: 0;
}

.nl-form__message:empty {
    display: none;
}

.nl-form__message--ok {
    color: #1e6b34;
    background: #eaf3ec;
    border-radius: 8px;
    padding: 10px 14px;
}

.nl-form__message--error {
    color: #8a1f1f;
    background: #fdecea;
    border-radius: 8px;
    padding: 10px 14px;
}

/* ----- Köszönőoldal ([hirlevel_koszonet]) ----- */
.nl-thankyou {
    max-width: 640px;
    margin: 32px auto;
    padding: 28px 32px;
    background: #faf6ef;
    border: 1px solid #efe7d6;
    border-radius: 14px;
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2d3748;
    text-align: center;
}

/* =========================================================
   Reszponzív — csak az alapértelmezett variánsra
   (az 1a/1c saját mobilszabályokat kap lent)
   ========================================================= */
@media (max-width: 480px) {
    .nl-form--default .nl-form__row {
        flex-direction: column;
    }

    .nl-form--default .nl-form__name,
    .nl-form--default .nl-form__email,
    .nl-form--default .nl-form__button {
        width: 100%;
        height: 50px;
        border-radius: 14px;
    }

    .nl-form--default .nl-form__button {
        padding: 0 20px;
    }
}

/* =========================================================
   1a — Elegáns krém kártya (függőleges: címke, mező, gomb, GDPR)
   ========================================================= */
.nl-form--1a {
    max-width: 560px;
}



.nl-form--1a .nl-form__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #3a4630;
    letter-spacing: 0.01em;
    margin-bottom: 8px;
}

.nl-form--1a .nl-form__email,
.nl-form--1a .nl-form__name {
    width: 100%;
    height: 54px;
    border: 1.5px solid #e3ddcd;
    background: #fff;
    border-radius: 14px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 500;
    color: #26331f;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nl-form--1a .nl-form__email::placeholder,
.nl-form--1a .nl-form__name::placeholder { color: #9a9484; }

.nl-form--1a .nl-form__email:focus,
.nl-form--1a .nl-form__name:focus {
    outline: none;
    border-color: #c19b5f;
    box-shadow: 0 0 0 4px rgba(193, 155, 95, 0.16);
}

.nl-form--1a .nl-form__button {
    width: 100%;
    height: 54px;
    margin-top: 14px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #d9bd86, #c19b5f);
    color: #3a2d05;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(150, 110, 30, 0.24);
    transition: filter 0.2s ease, transform 0.1s ease;
}

.nl-form--1a .nl-form__button:hover { filter: brightness(1.05); transform: translateY(-1px); }
.nl-form--1a .nl-form__button:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.nl-form--1a .nl-consent {
    margin-top: 16px;
    color: #6b6657;
}

.nl-form--1a .nl-consent__text a { color: #a37f43; }

@media (max-width: 480px) {
    .nl-card-1a { padding: 28px 22px; }
}

/* =========================================================
   1c — Zöld sáv, krém pill (beviteli mező + gomb inline)
   ========================================================= */
.nl-form--1c {
    max-width: 720px;
}

.nl-pill-1c {
    position: relative;
    display: flex;
    gap: 6px;
    align-items: center;
    background: #f6f4ee;
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.nl-form--1c .nl-form__email,
.nl-form--1c .nl-form__name {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    border: none;
    background: transparent;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 500;
    color: #26331f;
    outline: none;
}

.nl-form--1c .nl-form__email::placeholder,
.nl-form--1c .nl-form__name::placeholder { color: #9a9484; }

.nl-form--1c .nl-form__button {
    flex: 0 0 auto;
    height: 48px;
    border: none;
    border-radius: 999px;
    padding: 0 24px;
    background: linear-gradient(135deg, #d9bd86, #c19b5f);
    color: #3a2d05;
    font-size: 14.5px;
    font-weight: 800;
    white-space: nowrap;
    transition: filter 0.2s ease;
}

.nl-form--1c .nl-form__button:hover { filter: brightness(1.05); }
.nl-form--1c .nl-form__button:disabled { opacity: 0.65; cursor: not-allowed; }

.nl-form--1c .nl-consent {
    position: relative;
    margin-top: 14px;
    color: #c3cab2;
}

.nl-consent--light input[type="checkbox"] {
    accent-color: #d9bd86;
}

.nl-form--1c .nl-consent__text a { color: #d9bd86; }

@media (max-width: 480px) {
    .nl-banner-1c { padding: 28px 22px; }

    /* Mobilon a pill oszlopba vált: mező felül, gomb alatta */
    .nl-pill-1c {
        flex-direction: column;
        align-items: stretch;
        border-radius: 18px;
        gap: 8px;
    }

    .nl-form--1c .nl-form__name,
    .nl-form--1c .nl-form__email,
    .nl-form--1c .nl-form__button {
        width: 100%;
        height: 50px;
        border-radius: 14px;
    }

    .nl-form--1c .nl-form__name,
    .nl-form--1c .nl-form__email {
        padding: 0 16px;
    }
}

/* =========================================================
   Gomb fókusz-stílus (billentyűzetes navigáció)
   :focus-visible → csak billentyűzetre jelenik meg, egérkattintásra nem.
   ========================================================= */
.nl-form__button:focus-visible {
    outline: 2px solid #3a2d05;
    outline-offset: 3px;
}

/* 1c: sötét/zöld banneren a sötét körvonal nem elég látható → világos. */
.nl-form--1c .nl-form__button:focus-visible {
    outline-color: #ffffff;
}

/* =========================================================
   Töltésállapot — spinner a gombban (AJAX küldés közben)
   A JS beteszi: <span class="nl-spinner"> + "Folyamatban…" szöveg.
   ========================================================= */
.nl-form__button.is-loading {
    cursor: progress;
}

.nl-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: nl-spin 0.6s linear infinite;
}

@keyframes nl-spin {
    to { transform: rotate(360deg); }
}

/* =========================================================
   prefers-reduced-motion — mozgásérzékeny felhasználók
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    .nl-form__email,
    .nl-form__name,
    .nl-form__button,
    .nl-form--1a .nl-form__email,
    .nl-form--1a .nl-form__name,
    .nl-form--1a .nl-form__button,
    .nl-form--1c .nl-form__button {
        transition: none !important;
    }

    /* Hover transform / filter hatások kikapcsolása. */
    .nl-form__button:hover,
    .nl-form--1a .nl-form__button:hover,
    .nl-form--1c .nl-form__button:hover {
        transform: none !important;
        filter: none !important;
    }

    /* Spinner leállítása — a "Folyamatban…" szöveg jelzi a töltést. */
    .nl-spinner {
        animation: none !important;
    }
}
