/* === СТИЛЬ ФОРМЫ СООБЩЕНИЯ === */
.voicefb-alert {
    padding: 8px 10px;
    margin: 12px auto;
    max-width: 520px;
    border-radius: var(--gi-radius);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    background: #fff;
    color: #333;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    line-height: 1.4;
    transition: opacity 0.5s ease, transform 0.3s ease;
    animation: gi-slide-in 0.4s ease forwards;
    border-left: 5px solid #00a651;
}

.voicefb-alert::before {
    content: '✓';
    font-size: 1.4em;
    font-weight: bold;
    width: 28px;
    text-align: center;
}

.voicefb-alert.error {
    background: linear-gradient(to bottom, #fff5f5, #f9e8e8);
    color: #c00;
    border-left-color: #e74c3c;
}

.voicefb-alert.error::before {
    content: '⚠';
}

.voicefb-alert.success {
    background: linear-gradient(to bottom, #f0faf2, #e6ffed);
    color: #0a7842;
    border-left-color: #00a651;
}

.voicefb-alert.success::before {
    content: '✓';
}

@keyframes gi-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.voicefb-alert.fade-out {
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.invalid-feedback {
    // display: block;
    display: none !important;
    font-size: 0.6rem;
    color: #c00;
    background: #ffebeb;
    padding: 4px 5px;
    border-radius: 20px;
    text-align: center;
    margin: 5px auto;
    max-width: 300px;
    border: 1px solid #f9caca;
    font-weight: 500;
    opacity: 0.95;
}

.is-invalid {
    border: 2px solid #e74c3c !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15) !important;
    outline: none;
    transition: border 0.3s ease;
}

.is-invalid:focus {
    border: 2px solid #c0392b !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3) !important;
}

.voicefb-submit:disabled,
.voicefb-submit[disabled] {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: none !important; /* На кнопку физически нельзя нажать */
}