/**
 * Simple Contact Form - Frontend Styles
 * Unified error styling for form validation
 */

/* Field wrapper error state */
.scf-field.scf-field-has-error,
.scf-has-error {
    /* Wrapper styling when field has error */
}

/* Input/field error state */
.scf-field-invalid,
.scf-field-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 1px #dc3545 !important;
}

/* Error message styling */
.scf-error-message {
    display: block;
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
    line-height: 1.4;
}

/* Form-level message container */
.scf-messages {
    margin-bottom: 1rem;
}

/* Success message */
.scf-message-success {
    padding: 1rem;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}

/* Error message (form level) */
.scf-message-error {
    padding: 1rem;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
}

/* Required field indicator */
.scf-required {
    color: #dc3545;
    margin-left: 0.25em;
}

/* Field wrapper with error */
.scf-field.scf-has-error label,
.form-group.scf-has-error label {
    color: #dc3545;
}

/* Focus state for error fields */
.scf-field-invalid:focus,
.scf-field-error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.25) !important;
    outline: none;
}

/* Transition for smooth error state changes */
.scf-form input,
.scf-form textarea,
.scf-form select {
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Ensure error messages are accessible */
.scf-error-message[role="alert"] {
    /* Screen reader announcement styling */
}