.river-hirlevel,
.river-hirlevel * { box-sizing: border-box; }

.river-hirlevel {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    font-family: "Poppins", sans-serif;
}

.river-hirlevel__fields {
    display: flex;
    gap: 12px;
}

.river-hirlevel__email {
    flex: 1 1 0;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 15px 20px;
    color: #211e1a;
    background: #eae4da;
    border: 1px solid transparent;
    border-radius: 100px;
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    line-height: 1.2;
    outline: none;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.river-hirlevel__email::placeholder { color: #8a8175; opacity: 1; }
.river-hirlevel__email:focus { border-color: #c6a968; box-shadow: 0 0 0 3px rgba(198,169,104,.18); }

.river-hirlevel__submit {
    flex: 0 0 auto;
    margin: 0;
    padding: 15px 28px;
    color: #211e1a;
    background: #c6a968;
    border: 0;
    border-radius: 100px;
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.river-hirlevel__submit:hover,
.river-hirlevel__submit:focus { color: #211e1a; background: #d3b978; transform: translateY(-1px); outline: none; }
.river-hirlevel__submit:disabled { opacity: .65; cursor: wait; transform: none; }

.river-hirlevel__consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 12px 4px 0;
    color: #8a8175;
    font-size: 11.5px;
    line-height: 1.5;
    cursor: pointer;
}

.river-hirlevel__consent input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.river-hirlevel__checkbox {
    position: relative;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    background: transparent;
    border: 1px solid #9e9487;
    border-radius: 3px;
}

.river-hirlevel__consent input:checked + .river-hirlevel__checkbox { background: #c6a968; border-color: #c6a968; }
.river-hirlevel__consent input:checked + .river-hirlevel__checkbox::after { position: absolute; top: 1px; left: 4px; width: 5px; height: 9px; content: ""; border: solid #211e1a; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.river-hirlevel__consent input:focus-visible + .river-hirlevel__checkbox { outline: 2px solid #c6a968; outline-offset: 2px; }
.river-hirlevel__consent-text a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.river-hirlevel__message { margin: 0 0 12px; padding: 10px 14px; border-radius: 6px; font-size: 13px; line-height: 1.45; text-align: center; }
.river-hirlevel__message--error { color: #7c2929; background: #f8e5e2; }
.river-hirlevel__message--success { color: #345c3b; background: #e1f0e3; }
.river-hirlevel__honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 520px) {
    .river-hirlevel__fields { flex-direction: column; gap: 9px; }
    .river-hirlevel__email,
    .river-hirlevel__submit { width: 100%; text-align: center; }
    .river-hirlevel__consent { margin-top: 10px; }
}

/*
 * Végső felülíró réteg.
 * Szándékosan erős specificitás és !important: a téma, Elementor és más
 * általános form/input/button szabályok nem módosíthatják a komponens arculatát.
 */
html body .river-hirlevel {
    width: 100% !important;
    max-width: 460px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    font-family: "Poppins", sans-serif !important;
}

html body .river-hirlevel .river-hirlevel__form {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html body .river-hirlevel .river-hirlevel__fields {
    display: flex !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

html body .river-hirlevel input.river-hirlevel__email[type="email"] {
    display: block !important;
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 15px 20px !important;
    color: #211e1a !important;
    background: #eae4da !important;
    border: 1px solid transparent !important;
    border-radius: 100px !important;
    box-shadow: none !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
    text-align: left !important;
    text-transform: none !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

html body .river-hirlevel input.river-hirlevel__email[type="email"]::placeholder {
    color: #8a8175 !important;
    opacity: 1 !important;
}

html body .river-hirlevel input.river-hirlevel__email[type="email"]:focus {
    border-color: #c6a968 !important;
    box-shadow: 0 0 0 3px rgba(198,169,104,.18) !important;
}

html body .river-hirlevel button.river-hirlevel__submit[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 15px 28px !important;
    color: #211e1a !important;
    background: #c6a968 !important;
    border: 0 !important;
    border-radius: 100px !important;
    box-shadow: none !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
    text-transform: none !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

html body .river-hirlevel button.river-hirlevel__submit[type="submit"]:hover,
html body .river-hirlevel button.river-hirlevel__submit[type="submit"]:focus {
    color: #211e1a !important;
    background: #d3b978 !important;
    border: 0 !important;
    transform: translateY(-1px) !important;
    outline: none !important;
}

html body .river-hirlevel .river-hirlevel__consent {
    display: flex !important;
    align-items: flex-start !important;
    gap: 9px !important;
    margin: 12px 4px 0 !important;
    padding: 0 !important;
    color: #8a8175 !important;
    background: transparent !important;
    border: 0 !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 11.5px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

html body .river-hirlevel .river-hirlevel__checkbox {
    display: block !important;
    flex: 0 0 16px !important;
    width: 16px !important;
    height: 16px !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 1px solid #9e9487 !important;
    border-radius: 3px !important;
    box-shadow: none !important;
}

html body .river-hirlevel .river-hirlevel__consent input:checked + .river-hirlevel__checkbox {
    background: #c6a968 !important;
    border-color: #c6a968 !important;
}

html body .river-hirlevel .river-hirlevel__consent-text,
html body .river-hirlevel .river-hirlevel__consent-text a {
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    text-transform: none !important;
}

@media (max-width: 520px) {
    html body .river-hirlevel .river-hirlevel__fields {
        flex-direction: column !important;
        gap: 9px !important;
    }

    html body .river-hirlevel input.river-hirlevel__email[type="email"],
    html body .river-hirlevel button.river-hirlevel__submit[type="submit"] {
        width: 100% !important;
        text-align: center !important;
    }

    html body .river-hirlevel .river-hirlevel__consent {
        margin-top: 10px !important;
    }
}
