.dfcontact-success {
    box-sizing: border-box;
    width: min(440px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: clamp(20px, 6vw, 36px);
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #d7a7c6;
    border-radius: 16px;
    box-shadow: 0 18px 56px #08051555;
    background: #fff;
    color: #24182d;
    text-align: center;
    font: 16px/1.65 system-ui, sans-serif;
}

.dfcontact-success::backdrop { background: rgb(16 9 25 / 68%); }

.dfcontact-success-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: #fae7f3;
    color: #a90067;
    font: 700 28px/1 system-ui, sans-serif;
}

.dfcontact-success h2 {
    margin: 0 0 12px;
    color: #a90067;
    font-size: clamp(1.25rem, 5vw, 1.6rem);
    line-height: 1.35;
}

.dfcontact-success p { margin: 0 0 8px; overflow-wrap: anywhere; }

.dfcontact-success button {
    box-sizing: border-box;
    width: min(100%, 220px);
    min-height: 46px;
    margin: 14px 0 0;
    padding: 8px 20px;
    border: 1px solid #a90067;
    border-radius: 8px;
    background: #a90067;
    color: #fff;
    font: 700 1rem/1.4 system-ui, sans-serif;
    cursor: pointer;
}

.dfcontact-success button:hover { background: #850052; }
.dfcontact-success button:focus-visible { outline: 3px solid #6c2c93; outline-offset: 3px; }

.dfcontact-form[aria-busy=true] button[type=submit]::before {
    display: inline-block;
    width: .8em;
    height: .8em;
    margin-inline-end: .55em;
    border: 2px solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    vertical-align: -.1em;
    content: '';
    animation: dfcontact-progress .8s linear infinite;
}

@keyframes dfcontact-progress { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .dfcontact-form[aria-busy=true] button[type=submit]::before { animation: none; }
}
