/* Local captcha widget -- shared by every public form, so it loads globally
   from _Layout rather than following the one-stylesheet-per-page convention. */

.lc-captcha {
    margin-top: 1rem;
}

.lc-captcha-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink, #1d1b1a);
}

.lc-captcha-req {
    color: var(--brand-orange, #eb5017);
}

.lc-captcha-box {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--tk-line, #ececef);
    border-radius: 12px;
    background: var(--brand-orange-tint, #fffaf6);
    margin-bottom: 20px;
}

.lc-captcha-question {
    flex: 1 1 11rem;
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink, #1d1b1a);
    user-select: none;
}

.lc-captcha-input {
    flex: 0 0 6.5rem;
    width: 6.5rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--tk-line, #ececef);
    border-radius: 8px;
    background: #fff;
    font-size: 0.95rem;
    color: var(--ink, #1d1b1a);
}

.lc-captcha-input:focus {
    outline: none;
    border-color: var(--brand-orange, #eb5017);
    box-shadow: 0 0 0 3px var(--brand-orange-soft, #fdeee7);
}

.lc-captcha-refresh {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: 1px solid var(--tk-line, #ececef);
    border-radius: 8px;
    background: #fff;
    color: var(--tk-mute, #6b7280);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.lc-captcha-refresh:hover {
    color: var(--brand-orange, #eb5017);
    border-color: var(--brand-orange, #eb5017);
}

.lc-captcha-refresh.is-busy i {
    animation: lc-captcha-spin 0.7s linear infinite;
}

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

.lc-captcha-error {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #c0392b;
}

.lc-captcha-error[hidden] {
    display: none;
}

.lc-captcha.is-invalid .lc-captcha-box {
    border-color: #c0392b;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.lc-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
