/* TNNT Lead Capture Form */
.tnnt-lead-form {
    /* Per-form colors are injected inline as CSS variables; these are fallbacks. */
    --tnnt-lead-primary: #667eea;
    --tnnt-lead-accent: #764ba2;
    --tnnt-lead-btn-text: #ffffff;
    --tnnt-lead-focus: #667eea;
    max-width: 480px;
    box-sizing: border-box;
}
/* Boxed layout: card with border + white background. */
.tnnt-lead-layout-boxed {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}
/* Plain layout: transparent, no frame. */
.tnnt-lead-layout-plain {
    padding: 0;
    border: none;
    background: transparent;
}
/* Code mode: the admin's custom CSS owns the look; drop our defaults. */
.tnnt-lead-code {
    max-width: none;
    padding: 0;
    border: none;
    background: transparent;
}
.tnnt-lead-title {
    margin: 0 0 6px;
    font-size: 1.25rem;
}
.tnnt-lead-subtitle {
    margin: 0 0 14px;
    font-size: 14px;
    color: #6b7280;
}
.tnnt-lead-field {
    margin-bottom: 14px;
}
.tnnt-lead-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}
.tnnt-lead-req {
    color: #ef4444;
}
.tnnt-lead-field input,
.tnnt-lead-field textarea,
.tnnt-lead-field select {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}
.tnnt-lead-field textarea {
    /* Chỉ cho kéo giãn theo chiều dọc để không tràn ra ngoài khung form. */
    resize: vertical;
    min-height: 90px;
}
.tnnt-lead-field input:focus,
.tnnt-lead-field textarea:focus,
.tnnt-lead-field select:focus {
    outline: none;
    border-color: var(--tnnt-lead-focus);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, .15);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tnnt-lead-focus) 18%, transparent);
}
.tnnt-lead-submit {
    width: 100%;
    padding: 11px 16px;
    background: linear-gradient(135deg, var(--tnnt-lead-primary) 0%, var(--tnnt-lead-accent) 100%);
    color: var(--tnnt-lead-btn-text);
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s;
}
.tnnt-lead-submit:hover { opacity: .92; }
.tnnt-lead-submit:disabled { opacity: .6; cursor: not-allowed; }

.tnnt-lead-result {
    margin-top: 12px;
    font-size: 14px;
    display: none;
}
.tnnt-lead-result.is-success {
    display: block;
    color: #0a7a52;
}
.tnnt-lead-result.is-error {
    display: block;
    color: #b42318;
}

/* Google attribution, shown only when the reCAPTCHA badge is hidden. */
.tnnt-lead-recaptcha-note {
    margin: 10px 0 0;
    font-size: 11px;
    line-height: 1.5;
    opacity: .7;
}
.tnnt-lead-recaptcha-note a { color: inherit; text-decoration: underline; }
