.contact-success-dialog[hidden] {
    display: none;
}

.contact-success-dialog {
    box-sizing: border-box;
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.55);
}

.contact-success-panel {
    box-sizing: border-box;
    width: min(100%, 420px);
    padding: 42px 30px 36px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.contact-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border: 2px solid #01b3ff;
    border-radius: 50%;
    color: #01b3ff;
    font-size: 32px;
    line-height: 1;
}

.contact-success-panel h3 {
    margin: 0 0 12px;
    color: #333;
    font-size: 22px;
    font-weight: 600;
}

.contact-success-panel p {
    margin: 0 0 26px;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

.contact-success-confirm {
    min-width: 150px;
    padding: 10px 30px;
    border: 0;
    border-radius: 3px;
    background: #01b3ff;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.contact-success-confirm:hover {
    background: #009bdc;
}

.contact-success-confirm:focus-visible {
    outline: 2px solid #006e9e;
    outline-offset: 3px;
}

@media (max-width: 480px) {
    .contact-success-panel {
        padding: 32px 20px 28px;
    }
}
