/*
 * A self-contained white card, so it reads the same on light sections and dark banners.
 * Rules are prefixed with .lead-form to beat the theme's ".dark p" and ".dark label" colors.
 */
.lead-form {
    max-width: 560px;
    margin: 0 auto;
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    color: #333;
    text-align: left;
}

.lead-form .lead-form__form {
    margin: 0;
}

.lead-form .lead-form__field {
    margin-bottom: 14px;
}

.lead-form .lead-form__field label {
    display: block;
    margin-bottom: 4px;
    color: #333;
    font-size: 0.9em;
    font-weight: 600;
}

.lead-form .lead-form__field input,
.lead-form .lead-form__field textarea {
    width: 100%;
    margin: 0;
    color: #333;
    background: #fff;
}

.lead-form .lead-form__field textarea {
    min-height: 110px;
    resize: vertical;
}

.lead-form .lead-form__field [aria-invalid="true"] {
    border-color: #dd3333;
}

.lead-form .lead-form__error {
    margin: 4px 0 0;
    color: #dd3333;
    font-size: 0.85em;
}

.lead-form .lead-form__error:empty,
.lead-form .lead-form__status:empty {
    display: none;
}

/* Off-screen rather than display:none, since some bots skip hidden inputs. */
.lead-form .lead-form__trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.lead-form .lead-form__submit {
    width: 100%;
    margin: 6px 0 0;
}

.lead-form .lead-form__submit[disabled] {
    opacity: 0.7;
    cursor: wait;
}

.lead-form .lead-form__status {
    margin: 12px 0 0;
}

.lead-form .lead-form__status.is-error {
    color: #dd3333;
}

.lead-form .lead-form__success {
    margin: 0;
    padding: 12px 0;
    color: #2e7d32;
    font-weight: 600;
    text-align: center;
}
