#msgSubmit.contact-toast {
    display: none;
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    width: min(440px, calc(100vw - 48px));
    box-sizing: border-box;
    padding: 18px 48px 20px 18px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-left: 4px solid;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.08);
    font-family: inherit;
    text-align: left;
}

#msgSubmit.contact-toast.toast-success {
    border-left-color: #16a34a;
}

#msgSubmit.contact-toast.toast-error {
    border-left-color: #dc2626;
}

.contact-toast-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-toast-icon {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    margin-top: 1px;
    border-radius: 50%;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
}

.toast-success .contact-toast-icon {
    color: #15803d;
    background: #dcfce7;
}

.toast-error .contact-toast-icon {
    color: #b91c1c;
    background: #fee2e2;
}

.contact-toast-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contact-toast-title {
    color: #172033;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.contact-toast-message {
    color: #526071;
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.contact-toast-close {
    position: absolute;
    top: 10px;
    right: 11px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease;
}

.contact-toast-close:hover,
.contact-toast-close:focus-visible {
    background: #f1f5f9;
    color: #172033;
}

#msgSubmit.contact-toast::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    content: "";
    transform: scaleX(1);
    transform-origin: left;
    animation: contact-toast-progress 5s linear forwards;
}

#msgSubmit.contact-toast.toast-success::after {
    background: #16a34a;
}

#msgSubmit.contact-toast.toast-error::after {
    background: #dc2626;
}

@keyframes contact-toast-progress {
    to {
        transform: scaleX(0);
    }
}

@media (max-width: 576px) {
    #msgSubmit.contact-toast {
        top: 14px;
        right: 12px;
        left: 12px;
        width: auto;
        padding: 16px 42px 18px 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #msgSubmit.contact-toast::after {
        animation: none;
    }

    .contact-toast-close {
        transition: none;
    }
}