/**
 * Inline form field errors (under inputs — no validation popups).
 *
 * @package Dekor_Afyon
 */

.da-field-error {
	display: block;
	margin: 0.4rem 0 0;
	color: #b5453a;
	font-size: 0.8rem;
	font-weight: 550;
	line-height: 1.4;
}

.da-form-banner-error {
	margin: 0 0 1rem;
	padding: 0.75rem 0.95rem;
	border: 1px solid rgba(181, 69, 58, 0.28);
	border-radius: 10px;
	background: rgba(181, 69, 58, 0.06);
	color: #b5453a;
	font-size: 0.88rem;
	font-weight: 550;
	line-height: 1.45;
}

.da-auth__control .da-field-error,
.da-auth__row .da-field-error {
	grid-column: 1 / -1;
}

.da-field-invalid > label,
.da-auth__row.da-field-invalid .da-auth__label {
	color: #b5453a;
}

.da-status-form__field .da-field-error,
.da-payment-proof__field .da-field-error {
	margin-top: 0.35rem;
}

.form-row .da-field-error {
	width: 100%;
	clear: both;
}

/*
 * WooCommerce hides .required (visibility:hidden) with no label override.
 * Keep the asterisk next to the field label — never below the inline tip.
 */
.woocommerce form .form-row > label .required,
.woocommerce form .form-row > label abbr.required,
.da-checkout-fields .form-row > label .required,
.da-checkout-fields .form-row > label abbr.required {
	visibility: visible !important;
	color: var(--color-bronze, #2A6BA3);
	font-weight: 700;
	border: 0 !important;
	text-decoration: none;
}

.da-checkout-fields .form-row,
.woocommerce-checkout .da-checkout-fields .form-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

.da-checkout-fields .form-row > label {
	display: block;
	order: 0;
}

.da-checkout-fields .form-row > .woocommerce-input-wrapper {
	display: block;
	order: 1;
	width: 100%;
}

.da-checkout-fields .form-row > .da-field-error {
	order: 2;
	clear: none;
}

/* Keep layout: tips sit under controls, not beside labels on auth grid */
.da-auth__row .da-auth__control {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 0;
}

.da-auth__legal-item .da-field-error,
.da-checkout-terms .da-field-error,
.da-legal-checks__row .da-field-error {
	margin-top: 0.45rem;
}

/* Contact Form 7 + quote — same branded tip as .da-field-error */
.wpcf7-not-valid-tip,
.wpcf7-form .da-field-error {
	display: block !important;
	margin: 0.4rem 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #b5453a !important;
	font-size: 0.8rem !important;
	font-weight: 550 !important;
	line-height: 1.4 !important;
}

.wpcf7-form-control.wpcf7-not-valid,
.wpcf7-form .da-checkout-invalid,
.wpcf7-form .da-auth-invalid {
	border-color: rgba(181, 69, 58, 0.55) !important;
	box-shadow: 0 0 0 3px rgba(181, 69, 58, 0.12) !important;
}

.wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

/* Product review + comment forms */
.comment-form-author .da-field-error,
.comment-form-email .da-field-error,
.comment-form-url .da-field-error,
.comment-form-comment .da-field-error,
.comment-form-rating .da-field-error,
.da-review-manage__field .da-field-error {
	margin-top: 0.35rem;
}

.comment-form .da-checkout-invalid,
.comment-form .da-auth-invalid,
.da-review-manage__form .da-checkout-invalid,
.da-review-manage__form .da-auth-invalid {
	border-color: rgba(181, 69, 58, 0.55) !important;
	box-shadow: 0 0 0 3px rgba(181, 69, 58, 0.12) !important;
}

.comment-form-rating.da-field-invalid p.stars a::before {
	color: rgba(181, 69, 58, 0.55);
}

.comment-form-rating .da-field-error {
	display: block;
	margin-top: 0.45rem;
	color: #b5453a;
	font-size: 0.8rem;
	font-weight: 550;
	line-height: 1.4;
}

.da-field-invalid > label,
.comment-form .da-field-invalid > label {
	color: #b5453a;
}

