/* ============================================================
   Design 3DProf.com — contact-form.css
   Add to your main stylesheet or link separately after it.
   Matches the dark theme with green accent (--accent: #5cffb1)
   ============================================================ */

/* ── FIELD ERROR STATE ── */
.contact-form input.field-error,
.contact-form textarea.field-error,
.contact-form select.field-error {
    border-color: rgba(255, 90, 90, 0.55) !important;
    background: rgba(255, 60, 60, 0.04) !important;
    box-shadow: 0 0 0 3px rgba(255, 60, 60, 0.08);
}

/* ── INLINE ERROR TEXT ── */
.field-error-msg {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #ff7070;
    letter-spacing: 0.02em;
    animation: formFadeIn 0.2s ease;
}

/* ── FORM-LEVEL STATUS BANNER ── */
.form-status {
    width: 100%;
    padding: 0.85rem 1.1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    animation: formFadeIn 0.3s ease;
}

.form-status--success {
    background: rgba(92, 255, 177, 0.08);
    border: 1px solid rgba(92, 255, 177, 0.25);
    color: #5cffb1;
}

.form-status--error {
    background: rgba(255, 90, 90, 0.07);
    border: 1px solid rgba(255, 90, 90, 0.25);
    color: #ff8080;
}

/* ── DISABLED SUBMIT ── */
.contact-form .submit-btn:disabled {
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ── ANIMATION ── */
@keyframes formFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}