
.form-loading-overlay {
    display: none;
    position: fixed;
    z-index: 999998;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.form-loading-box {
    background: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.form-spinner {
    width: 45px;
    height: 45px;
    margin: 0 auto 15px;
    border: 4px solid #ddd;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: formSpinner 0.8s linear infinite;
}

.form-loading-text {
    font-size: 16px;
    color: #333;
}

.form-button-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 7px;
    vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: formSpinner 0.7s linear infinite;
}

.success-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.success-modal-content {
    position: relative;
    width: 90%;
    max-width: 450px;
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.success-modal-close {
    position: absolute;
    right: 15px;
    top: 8px;
    border: 0;
    background: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #333;
}

.success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #28a745;
    color: #ffffff;
    font-size: 40px;
    line-height: 60px;
    text-align: center;
}

.success-modal-content h2 {
    margin-bottom: 10px;
}

.success-modal-content p {
    margin-bottom: 0;
    font-size: 16px;
}

.success-modal-ok {
    margin-top: 20px;
    padding: 10px 30px;
    border: 0;
    border-radius: 5px;
    background: #007bff;
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
}

@keyframes formSpinner {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

form .result {
    display: none;
    width: 100%;
    margin-top: 20px;
}

.form-error-message {
    padding: 12px 18px;
    background: #fff1f1;
    border: 1px solid #dc3545;
    border-radius: 6px;
    color: #dc3545;
    font-size: 13px;
    line-height: 1.6;
}

.form-error-message strong {
    display: block;
    margin-bottom: 2px;
}

.form-error-message ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.form-error-message li {
    margin-bottom: 0px;
}