/**
 * LeadFindy Contact — Frontend additions
 * (Page styles live in the Elementor HTML widget. This file styles only the
 *  feedback message, honeypot, spinner, and reCAPTCHA wrapper.)
 */

#leadfindy-form-feedback {
    display: none;
    margin: 0 0 24px;
    padding: 14px 18px;
    border-radius: 12px;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    border: 1px solid transparent;
}
#leadfindy-form-feedback.lf-feedback--success {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: #047857;
}
#leadfindy-form-feedback.lf-feedback--error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.3);
    color: #B91C1C;
}
#leadfindy-form-feedback.lf-feedback--info {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
    color: #1D4ED8;
}

/* Honeypot — visually hidden, accessible, untabbable */
.lf-hp {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Spinner inside submit button */
.lf-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lfspin 0.7s linear infinite;
    vertical-align: -3px;
    margin-right: 8px;
}
@keyframes lfspin { to { transform: rotate(360deg); } }

.form-submit.is-loading { opacity: 0.9; cursor: progress; }

/* reCAPTCHA spacing */
.lf-recaptcha {
    margin: 4px 0 8px;
    display: flex;
    justify-content: flex-start;
}
@media (max-width: 480px) {
    .lf-recaptcha { transform: scale(0.9); transform-origin: 0 0; }
}
