#contact-form input:not([type="checkbox"]).contact-invalid {
    border: 1px solid #bd2635;
}

#contact-form .contact-policy input[type="checkbox"] {
    appearance: none;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    display: grid;
    place-content: center;
}

#contact-form .contact-policy input[type="checkbox"]:checked {
    background: #1676b7;
}

#contact-form .contact-policy input[type="checkbox"]:checked::before {
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-1px) rotate(-45deg);
}

#contact-form .contact-policy input[type="checkbox"].contact-invalid {
    border: 1px solid #bd2635;
}

#contact-form .contact-policy input[type="checkbox"]:focus-visible {
    outline: 2px solid #143a59;
    outline-offset: 2px;
}

@media (forced-colors: active) {
    #contact-form .contact-policy input[type="checkbox"] {
        appearance: auto;
    }

    #contact-form .contact-policy input[type="checkbox"]:checked::before {
        content: none;
    }
}

#contact-form .contact-field-error {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.contact-toast-region {
    position: fixed;
    z-index: 10000;
    right: 16px;
    top: 16px;
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}

.contact-toast {
    background: #185e40;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
    color: #fff;
    padding: 14px 18px;
    white-space: pre-line;
}

.contact-toast-error {
    background: #a51625;
}
