/* TaxMater Leads — form styles
   Neutral by default. Override these vars in your landing CSS to match the page theme. */

.tml-form {
    --tml-primary: #1A56DB;
    --tml-primary-dark: #0C3BAA;
    --tml-primary-light: #EEF4FF;
    --tml-text: #111827;
    --tml-text-muted: #6B7280;
    --tml-border: #E5E7EB;
    --tml-error: #DC2626;
    --tml-radius: 10px;
    --tml-font: inherit;

    width: 100%;
    text-align: left;
    font-family: var(--tml-font);
}

.tml-form__group {
    margin-bottom: 14px;
}

.tml-form__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--tml-text);
    margin-bottom: 6px;
}

.tml-form__input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--tml-border);
    border-radius: var(--tml-radius);
    font-family: inherit;
    font-size: 14px;
    color: var(--tml-text);
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}

.tml-form__input:focus {
    border-color: var(--tml-primary);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, .1);
}

.tml-form__input.tml-form__input--err {
    border-color: var(--tml-error);
}

.tml-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.tml-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--tml-text-muted);
    line-height: 1.5;
    margin: 8px 0 14px;
    cursor: pointer;
}

.tml-form__consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
}

.tml-form__error {
    font-size: 13px;
    color: var(--tml-error);
    margin-bottom: 12px;
    min-height: 0;
    transition: min-height .2s;
}

.tml-form__error:not(:empty) {
    min-height: 18px;
    padding: 8px 12px;
    background: #FEE2E2;
    border-radius: 8px;
    margin-bottom: 12px;
}

.tml-form__submit {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--tml-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .1s;
    box-sizing: border-box;
}

.tml-form__submit:hover:not(:disabled) {
    background: var(--tml-primary-dark);
}

.tml-form__submit:active:not(:disabled) {
    transform: scale(.98);
}

.tml-form__submit:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.tml-form__submit-loading {
    display: inline-block;
}

.tml-form .tml-form__legal,
.tml-form p.tml-form__legal {
    text-align: center !important;
    font-size: 12px;
    color: var(--tml-text-muted);
    margin: 14px 0 0;
    width: 100%;
    display: block;
}

.tml-form__hint {
    font-size: 12px;
    margin-top: 6px;
    min-height: 16px;
    line-height: 1.3;
    transition: color .15s;
}
.tml-form__hint--ok {
    color: #0d9d6a;
    font-weight: 600;
}
.tml-form__hint--err {
    color: #d63638;
    font-weight: 600;
}
