.uaf_ajax_form .error {
    border-color: red;
    background-color: #ffe6e6;
}

.uaf_ajax_form .error_message {
    color: red;
    font-size: 0.875em;
    margin-top: 4px;
}

.uaf_ajax_form .success {
    color: green;
    font-size: 1em;
    text-align: center;
}

.uaf_ajax_form .form_message p.error {
    color: red;
    padding: 10px;
}

.uaf_ajax_form .form_message p.success {
    color: green;
}

.styled_checkbox.error,
.styled_radio.error {
    border-color: red;
}

.styled_checkbox.error .error_message,
.styled_radio.error .error_message {
    display: none;
}

.success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #28a745; /* зеленый цвет для успеха */
    opacity: 0;
    animation: fadeInOut 5s ease-in-out;
    z-index: 10000;
    visibility: hidden;
}

.success:before{
    content: '';
    position: fixed;
    left: -100vw;
    top: -100vw;
    right: -100vw;
    bottom: -100vw;
    z-index: -1;
    background: rgba(255, 255, 255, .5);
}

/* Анимация появления и исчезновения */
@keyframes fadeInOut {
    0% {
        opacity: 0;
        visibility: visible;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

#add_more_founder:hover{
    color: #000;
}