/* Shared styles for the lead-form handler (js/lead-form.js). Self-contained so it
   looks right on both light and dark form cards. */
.lf-hp { position: absolute !important; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; }

.lf-captcha-wrap { margin: 0 0 16px; text-align: left; }

.lf-captcha {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 10px 16px;
    background: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    cursor: pointer;
    user-select: none;
    color: #222;
    font: 500 14px/1.2 Roboto, Arial, sans-serif;
    text-transform: none;
    letter-spacing: normal;
}
.lf-captcha input { position: absolute; opacity: 0; width: 0; height: 0; }
.lf-box {
    position: relative;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    background: #fff;
    border: 2px solid #c1c1c1;
    border-radius: 2px;
}
.lf-captcha input:focus-visible + .lf-box { outline: 2px solid #0b5ac8; outline-offset: 2px; }
.lf-captcha input:checked + .lf-box { border-color: #1a9c4a; }
.lf-captcha input:checked + .lf-box::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid #1a9c4a;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.lf-text { color: #222; }

.lf-error { display: inline-block; margin-top: 8px; padding: 4px 10px; border-radius: 4px; font-size: 13px; background: #fdecea; color: #b71c1c; }
.lf-error:empty { display: none; }

.lf-status { margin-top: 14px; border-radius: 8px; font-size: 15px; line-height: 1.5; text-align: left; }
.lf-status.lf-ok { padding: 12px 16px; background: #e8f7ee; border: 1px solid #1a9c4a; color: #0f6b30; }
.lf-status.lf-fail { padding: 12px 16px; background: #fdecea; border: 1px solid #e53935; color: #b71c1c; }

.lf-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: lf-spin .7s linear infinite;
}
@keyframes lf-spin { to { transform: rotate(360deg); } }
