.contact-send-result {
 position: relative;
 display: grid;
 justify-content: start;
 align-items: center;
}
.contact-send-result .contact-submit {
 grid-area: 1 / 1;
 justify-content: center;
 border-radius: 999px;
 background: #78604a;
 color: #fffbf4;
}
.contact-send-result .contact-submit:hover { background: #65503f; }

.contact-send-result:has([data-state="sent"]) .contact-submit,
#contact-status[data-state="departing"] { visibility: hidden; }
.contact-send-result #contact-status:is([data-state="sending"], [data-state="departing"]) {
 position: absolute;
 inset-block-start: calc(100% + 4px);
 inset-inline-start: 0;
 margin: 0;
}
.contact-send-result #contact-status[data-state="sent"] {
 grid-area: 1 / 1;
 justify-self: center;
 display: inline-flex;
 align-items: center;
 gap: 9px;
 margin: 0;
 padding: 8px 14px;
 border: 1px solid #d8ccbb;
 border-radius: 7px;
 background: #f1ebe1;
 color: #584c40;
 font-family: var(--reading-font, inherit);
 font-size: 15px;
 font-weight: 500;
 line-height: 1.5;
 letter-spacing: .03em;
}
.contact-send-result #contact-status[data-state="sent"]::before {
 content: "";
 flex: 0 0 17px;
 width: 17px;
 height: 17px;
 background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23536558' stroke-width='1.35' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='8.4'/%3E%3Cpath d='m6.4 10 2.2 2.3 4.9-5'/%3E%3C/svg%3E");
}

@media (max-width: 700px) {
 .contact-send-result { justify-content: stretch; }
}

.send-paper-plane {
 position: fixed;
 z-index: 2147483000;
 width: 36px;
 height: 36px;
 translate: -50% -50%;
 opacity: 0;
 color: #78604a;
 pointer-events: none;
}
.send-paper-plane svg { display: block; width: 100%; height: 100%; }

@media (prefers-reduced-motion: no-preference) {
 #contact-status[data-state="sent"], #success:not([hidden]) {
  animation: send-confirmation-in 340ms cubic-bezier(.2,.75,.28,1) both;
 }
}

@keyframes send-confirmation-in {
 from { opacity: 0; transform: translateY(3px); }
 to { opacity: 1; transform: translateY(0); }
}
