/* C22 Leads Toolkit — formulários e WhatsApp. Herdam a fonte do site; cores via --c22lt-primary / --c22lt-accent. */
.c22lt-form { --c22lt-primary: #006eb6; --c22lt-accent: #38b449; --c22lt-line: #d5dbe3; --c22lt-error: #c62828; font: inherit; color: inherit; }
.c22lt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.c22lt-w-full { grid-column: 1 / -1; }
.c22lt-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.c22lt-field > label { font-size: .9em; font-weight: 600; }
.c22lt-req { color: var(--c22lt-error); }
.c22lt-form input[type=text], .c22lt-form input[type=email], .c22lt-form input[type=tel], .c22lt-form select, .c22lt-form textarea {
    width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 14px; border: 1px solid var(--c22lt-line); border-radius: 8px;
    background: #fff; color: #2c2c2c; font: inherit; font-size: 16px; line-height: 1.4;
}
.c22lt-form textarea { min-height: 110px; resize: vertical; }
.c22lt-form input:focus, .c22lt-form select:focus, .c22lt-form textarea:focus { outline: 2px solid var(--c22lt-primary); outline-offset: 1px; border-color: transparent; }
.c22lt-check { display: flex; align-items: flex-start; gap: 8px; font-size: .9em; font-weight: 400; cursor: pointer; }
.c22lt-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--c22lt-primary); }
.c22lt-check a, .c22lt-notice a { color: var(--c22lt-primary); text-decoration: underline; }
.c22lt-field--error input, .c22lt-field--error select, .c22lt-field--error textarea { border-color: var(--c22lt-error); }
.c22lt-error { font-size: .82em; color: var(--c22lt-error); min-height: 0; }
.c22lt-error:empty { display: none; }
.c22lt-notice { font-size: .82em; opacity: .85; margin: 12px 0 0; }
.c22lt-submit {
    margin-top: 16px; min-height: 48px; padding: 0 28px; border: 0; border-radius: 8px; background: var(--c22lt-primary); color: #fff;
    font: inherit; font-weight: 600; cursor: pointer; transition: background .15s;
}
.c22lt-submit:hover { background: var(--c22lt-accent); }
.c22lt-submit:disabled { opacity: .6; cursor: wait; }
.c22lt-message { margin: 12px 0 0; padding: 10px 14px; border-radius: 8px; background: #eaf6ec; color: #1e6b2a; font-size: .92em; }
.c22lt-message--error { background: #fdecea; color: var(--c22lt-error); }
.c22lt-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.c22lt-title { font-size: 1.05em; font-weight: 600; margin: 0 0 14px; }
.c22lt-admin-notice { padding: 10px 14px; border: 1px dashed #c62828; color: #c62828; }
@media (max-width: 640px) { .c22lt-grid { grid-template-columns: 1fr; } .c22lt-submit { width: 100%; } }

/* WhatsApp: botão flutuante e popup */
.c22lt-wa { --c22lt-wa: #25d366; --c22lt-z: 9000; position: relative; z-index: var(--c22lt-z); font: inherit; }
.c22lt-wa-button {
    position: fixed; bottom: 20px; z-index: var(--c22lt-z); display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 18px 0 16px;
    border: 0; border-radius: 999px; background: var(--c22lt-wa); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18); transition: transform .15s;
}
.c22lt-wa-button:hover { transform: translateY(-2px); }
.c22lt-wa--right .c22lt-wa-button { right: 20px; }
.c22lt-wa--left .c22lt-wa-button { left: 20px; }
.c22lt-wa-overlay { position: fixed; inset: 0; z-index: calc(var(--c22lt-z) + 1); background: rgba(0, 0, 0, .35); }
.c22lt-wa-dialog {
    position: fixed; bottom: 90px; z-index: calc(var(--c22lt-z) + 2); width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow: auto;
    background: #fff; color: #2c2c2c; border-radius: 14px; box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
}
.c22lt-wa--right .c22lt-wa-dialog { right: 20px; }
.c22lt-wa--left .c22lt-wa-dialog { left: 20px; }
.c22lt-wa-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--c22lt-wa); color: #fff; font-weight: 600; border-radius: 14px 14px 0 0; }
.c22lt-wa-close { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.c22lt-wa-close:hover { background: rgba(255, 255, 255, .2); }
.c22lt-wa-body { padding: 16px; }
.c22lt-wa-body .c22lt-grid { grid-template-columns: 1fr; gap: 10px; }
.c22lt-wa-body .c22lt-submit { width: 100%; background: var(--c22lt-wa); }
.c22lt-wa-body .c22lt-submit:hover { background: #1ebe5b; }
.c22lt-wa [hidden] { display: none !important; }
@media (max-width: 640px) {
    .c22lt-wa-bubble { display: none; }
    .c22lt-wa-button { padding: 0; width: 56px; justify-content: center; }
    .c22lt-wa-dialog { left: 16px !important; right: 16px !important; bottom: 16px; width: auto; max-height: calc(100vh - 32px); }
}

/* Temas como o Hello pintam todo button:hover/:focus de rosa (#c36): fixa as cores dos nossos botões */
.c22lt-form .c22lt-submit:hover, .c22lt-form .c22lt-submit:focus { background: var(--c22lt-accent); color: #fff; }
.c22lt-wa .c22lt-wa-button:hover, .c22lt-wa .c22lt-wa-button:focus { background: var(--c22lt-wa); color: #fff; }
.c22lt-wa .c22lt-wa-close:hover, .c22lt-wa .c22lt-wa-close:focus { background: rgba(255, 255, 255, .2); color: #fff; }
.c22lt-wa-body .c22lt-form .c22lt-submit:hover, .c22lt-wa-body .c22lt-form .c22lt-submit:focus { background: #1ebe5b; color: #fff; }
.c22lt-form .c22lt-submit:focus-visible, .c22lt-wa .c22lt-wa-button:focus-visible, .c22lt-wa .c22lt-wa-close:focus-visible { outline: 2px solid #1d2327; outline-offset: 2px; }
.c22lt-suggest { font-size: .82em; color: #50575e; }
.c22lt-suggest button { background: none !important; border: 0; padding: 0; color: var(--c22lt-primary); text-decoration: underline; cursor: pointer; font: inherit; }
