/* --- Validation Effect Styles --- */
.is-invalid {
    border-color: #dc3545 !important; /* Bootstrap's danger color */
}
.is-invalid-quill,
.is-invalid-quill .ql-toolbar,
.is-invalid-quill .ql-container {
    border-color: #dc3545 !important;
}

.form-error-message {
    color: #dc3545;
    font-size: 0.875em;
    margin-top: 0.25rem;
    display: none; /* Hidden by default */
}

/* Shaking Animation */
@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}
.is-invalid-shake {
    animation: shake 0.82s cubic-bezier(.36,.07,.19,.97) both;
}
.frontend-post-form-wrapper {
    position: relative; /* Required for the overlay */
}

.form-processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 10;
    display: flex; /* This is the key change */
    align-items: center;
    justify-content: center;
    border-radius: .25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.frontend-post-form-wrapper.form-processing .form-processing-overlay {
    opacity: 1;
    visibility: visible;
}

.form-submission-notice {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    padding: 1rem 1.5rem;
    border-radius: .25rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
}

.post-form-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 0.75rem;
}
#bb-frontend-post-form .form-label {
	line-height: 1.25;
    margin-bottom: 0;
    max-width: 100px;
    min-width: 70px !important;
    font-size: .85rem;
    font-weight: 600;
}
span.form-label-info {
    font-size: .7rem;
    font-weight: 400;
}

.post-form-notice {
	background:#f5f8fd;
	padding: 1rem!important;
	font-size: .85rem;
}
.post-form-notice-title {
	font-size: .9rem;
	font-weight: 600;
}
form#bb-frontend-post-form button.btn {
    text-transform: uppercase;
}