/*
Theme Name: Resonance Custom Theme
Theme URI:
description: Resonance Custom Theme, crafted by League Development.
Author: League Development
Tested up to: 5.8
Requires PHP: 8.0+
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Version: 1.0.0
*/
body .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: 100%;
	margin: 0 !important;
}

body.wp-admin {
	overflow: auto !important;
}

.wpcf7-not-valid-tip {
	font-size: 1.4rem;
	padding-top: 0.5rem;
}

/* Hide CF7's system response output — errors are shown per field, success opens the popup. */
.wpcf7 form .wpcf7-response-output {
	display: none;
}

.wpcf7-not-valid-tip:not(:nth-child(1)):not(:nth-child(2)) {
	display: none;
}

.wpcf7-not-valid {
	border: 1px solid red;
}

.wpcf7-not-valid-tip {
	position: absolute;
  margin-top: -5px;
}

/* Custom select: CF7 wraps the control in a position:relative span, so drop that so the tip
   anchors to the field, then push it below the field on one line. */
.form_select--custom_mod .wpcf7-form-control-wrap {
	position: static;
}

.form_select--custom_mod .wpcf7-not-valid-tip {
	top: 100%;
	left: 0;
	white-space: nowrap;
}

/* Red border lands on the hidden native <select>, so mirror it onto the visible trigger. */
.form_select--custom_mod:has(.wpcf7-not-valid) .form_select__trigger {
	box-shadow: inset 0 0 0 1px red;
}