/* Contact form feedback, matching the public TrueDubbing theme. */
.td-contact-notice {
    box-sizing: border-box;
    position: relative;
    width: fit-content;
    max-width: min(520px, 100%);
    margin-top: 20px;
    padding: 14px 18px 14px 46px;
    border: 1px solid #4d4859;
    border-radius: 12px;
    background: #33303d;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Keep the live region available to assistive technology before submission. */
.td-contact-notice:empty {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
}

.td-contact-notice:not(:empty)::before {
    position: absolute;
    left: 16px;
    top: 14px;
    width: 21px;
    height: 21px;
    line-height: 19px;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 600;
}

.td-contact-notice[data-state="pending"]::before {
    content: '…';
    color: #c2bacf;
}

.td-contact-notice[data-state="success"] {
    border-color: #93604f;
}
.td-contact-notice[data-state="success"]::before {
    content: '✓';
    color: #f08a66;
}

.td-contact-notice[data-state="error"] {
    border-color: #a85e60;
}
.td-contact-notice[data-state="error"]::before {
    content: '!';
    color: #ff9a9c;
}

form.form .button--form:disabled {
    cursor: wait;
    opacity: .65;
}

form.form .form__data[aria-invalid="true"] {
    outline: 1px solid #e77979;
    outline-offset: 3px;
}
