/* ==========================================================================
   Forms (rebuild item 14). legion.org's Kentico forms use the Form Builder's
   default markup; these styles follow the site's tokens and the filter bar's
   fields (events.css) so forms look like the rest of the site.

   Accessibility: visible labels, "(required)" in words, problems listed at
   the top and beside each question, 3px focus outlines, 44px targets.
   ========================================================================== */

.web-form {
    max-width: 760px;
}

.web-form__intro {
    margin-bottom: 24px;
}

.web-form__required-note,
.web-form__privacy {
    font-size: .875rem;
    color: var(--color-gray-darkest);
}

.web-form__field {
    margin: 0 0 20px;
}

.web-form__field fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.web-form__label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    padding: 0;
}

.web-form__req {
    font-weight: 400;
    color: var(--color-gray-darkest);
}

.web-form__input {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    font: inherit;
    color: var(--color-base);
    background: #fff;
    border: 1px solid #637697; /* 4.6:1 on white */
    border-radius: 4px;
}
textarea.web-form__input {
    min-height: 140px;
    resize: vertical;
}
.web-form__input:focus-visible,
.web-form__choice input:focus-visible {
    outline: 3px solid var(--color-secondary);
    outline-offset: 2px;
}

.web-form__choice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 44px;
    padding: 8px 0;
    font-weight: 400;
}
.web-form__choice input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex: none;
}
.web-form__agreement {
    font-weight: 700;
}

.web-form__help {
    font-size: .875rem;
    margin: 6px 0 0;
    color: var(--color-gray-darkest);
}

.web-form__field--problem .web-form__input {
    border: 2px solid var(--color-dark-red);
}
.web-form__problem {
    margin: 6px 0 0;
    font-weight: 700;
    color: var(--color-dark-red);
}

.web-form__problems {
    border-left: 6px solid var(--color-dark-red);
    background: var(--color-gray-lightest);
    padding: 16px 20px;
    margin: 0 0 24px;
}
.web-form__problems ul {
    margin: 8px 0 0;
}

.web-form__check {
    margin: 0 0 20px;
}

/* The trap field: off-screen for people, never filled in by them. */
.web-form__trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.web-form__sent {
    padding: 8px 0 24px;
}
