.mgd-contact {
    max-width: 42rem;
    min-width: 0;
    scroll-margin-top: 20px;
}
.mgd-contact-form {
    display: grid;
    gap: 15px;
    margin: 0;
}
.mgd-contact-form > p { margin: 0; }
.mgd-contact-field {
    display: grid;
    gap: 5px;
    min-width: 0;
}
.mgd-contact-field > label,
label.mgd-contact-field {
    color: var(--mgd-ink, #101c39);
    font-weight: 700;
    line-height: 1.4;
}
.mgd-contact-required {
    color: var(--mgd-muted, #475570);
    font-size: .84rem;
    font-weight: 650;
}
.mgd-contact-field input,
.mgd-contact-field textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    color: var(--mgd-ink, #101c39);
    background: #fff;
    border: 1px solid #91a1be;
    border-radius: 8px;
    font: inherit;
    line-height: 1.5;
}
.mgd-contact-field textarea {
    min-height: 9rem;
    resize: vertical;
}
.mgd-contact-field [aria-invalid="true"] {
    border-color: #a12a39;
}
.mgd-contact :is(input, textarea, button, a):focus-visible {
    outline: 3px solid #3665e8;
    outline-offset: 3px;
}
.mgd-contact .mgd-contact-submit {
    justify-self: start;
    min-height: 44px;
    padding: 8px 15px;
    color: #fff;
    background: var(--mgd-blue, #2449cc);
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-weight: 750;
    line-height: 1.4;
    cursor: pointer;
}
.mgd-contact .mgd-contact-submit:hover {
    color: #fff;
    background: #1838a8;
}
.mgd-contact .mgd-contact-notice {
    padding: 9px 12px;
    margin: 0 0 14px;
    border: 1px solid #d9e0f0;
    border-radius: 8px;
    overflow-wrap: anywhere;
}
.mgd-contact .mgd-contact-notice--success {
    color: #15543a;
    background: #edf8f0;
    border-color: #afd2bc;
}
.mgd-contact .mgd-contact-notice--error {
    color: #912237;
    background: #fff1f3;
    border-color: #e3b4bd;
}
