/* The withdrawal form wears the legal page's chrome; only the form itself is local. */

.aw-wd {
    display: block;
    margin-block-start: 26px;
}

.aw-wd__answer {
    margin: 0 0 22px;
    padding: 16px 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-inline-start: 2px solid var(--accent);
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink);
}

.aw-wd__answer[hidden],
.aw-wd__failed[hidden],
.aw-wd__fallback[hidden] {
    display: none;
}

.aw-wd__form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Only the script can send the form; without it the fallback below it, with the address to write
   to, stands in for it, as on every other form. */
html:not(.js) .aw-wd__form {
    display: none;
}

.aw-wd__set {
    margin: 0;
    padding: 0;
    border: 0;
}

.aw-wd__legend {
    padding: 0;
    margin-block-end: 18px;
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-text);
}

.aw-wd__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px 22px;
}

.aw-wd__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    min-inline-size: 0;
}

.aw-wd__field--wide {
    grid-column: 1 / -1;
}

.aw-wd__label {
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: .04em;
    color: var(--ink);
}

.aw-wd__optional {
    font-weight: 300;
    text-transform: lowercase;
    color: var(--muted);
}

.aw-wd__note {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.5;
    color: var(--muted);
}

/* The shared pill input has a fixed width; in this grid a field fills its column instead. */
.aw-wd__field .aw-input {
    box-sizing: border-box;
    inline-size: 100%;
}

.aw-wd__area {
    resize: vertical;
    min-block-size: 96px;
    font: inherit;
    border-radius: 18px;
}

.aw-wd__legalnote,
.aw-wd__failed,
.aw-wd__fallback {
    margin: 0;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--muted);
}

/* The honeypot is a real field for a bot and no field at all for a person. */
.aw-wd__hp {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.aw-wd__submit {
    align-self: flex-start;
}
