/* ==================================================================
   Glacier CF7 Form Styling — matches Hill Country Warm palette
   Native form on our site; cf7-to-zapier pushes submission to GHL.
   ================================================================== */

.glacier-form-shell {
	background: #FFFFFF;
	border: 1px solid #E8E2D5;
	border-radius: 6px;
	padding: clamp(1.5rem, 4vw, 2.5rem);
	box-shadow: 0 4px 16px rgba(27, 57, 96, 0.06);
}

.glacier-form-shell .wpcf7 {
	margin: 0;
}

.glacier-form-shell .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 1.125rem;
}

/* Row utility — pairs of inputs side-by-side */
.glacier-form-row {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}
.glacier-form-row > * {
	flex: 1 1 200px;
	min-width: 0;
}

/* Label styling — sit above the input as eyebrow text */
.glacier-form-field {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}
.glacier-form-field > label {
	font-family: 'Inter', sans-serif;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #1B3960;
}
.glacier-form-field > label .glacier-required {
	color: #B05A3C;
	margin-left: 0.25rem;
}

/* Input + textarea + select base */
.glacier-form-shell .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-list-item-label) {
	width: 100%;
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	color: #1B3960;
	background: #FFFFFF;
	border: 1px solid #D8D2C4;
	border-radius: 4px;
	padding: 0.875rem 1rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}
.glacier-form-shell .wpcf7-form-control:not(.wpcf7-submit):focus {
	outline: none;
	border-color: #8FA17F;
	box-shadow: 0 0 0 3px rgba(143, 161, 127, 0.18);
}
.glacier-form-shell .wpcf7-form-control::placeholder {
	color: #9A9388;
}

/* Textarea — larger min height */
.glacier-form-shell .wpcf7-textarea {
	min-height: 110px;
	resize: vertical;
}

/* Select — custom chevron */
.glacier-form-shell .wpcf7-select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%231B3960' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 12px;
	padding-right: 2.5rem;
}

/* Submit button — clay/terracotta to match palette */
.glacier-form-shell .wpcf7-submit {
	background: #B05A3C;
	color: #FFFFFF;
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	border: none;
	border-radius: 2px;
	padding: 1rem 2rem;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	width: 100%;
	margin-top: 0.5rem;
}
.glacier-form-shell .wpcf7-submit:hover {
	background: #9A4D32;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(176, 90, 60, 0.32);
}
.glacier-form-shell .wpcf7-submit:active {
	transform: translateY(0);
}

/* CF7 ajax-loader spinner */
.glacier-form-shell .wpcf7-spinner {
	margin: 0 auto;
	display: block;
}

/* Response output (success/error message) */
.glacier-form-shell .wpcf7-response-output {
	margin: 1.25rem 0 0;
	padding: 1rem 1.25rem;
	border-radius: 4px;
	font-size: 0.9375rem;
	line-height: 1.5;
	border: 1px solid;
}
.glacier-form-shell .wpcf7 form.sent .wpcf7-response-output {
	border-color: #8FA17F;
	background: #F5EFE3;
	color: #1B3960;
}
.glacier-form-shell .wpcf7 form.invalid .wpcf7-response-output,
.glacier-form-shell .wpcf7 form.unaccepted .wpcf7-response-output {
	border-color: #B05A3C;
	background: #FBF1ED;
	color: #6B2E1A;
}
.glacier-form-shell .wpcf7-not-valid-tip {
	color: #B05A3C;
	font-size: 0.8125rem;
	font-weight: 600;
	margin-top: 0.25rem;
}

/* TCPA / consent block */
.glacier-form-consent {
	font-size: 0.8125rem;
	line-height: 1.6;
	color: #6E6862;
}
.glacier-form-consent a {
	color: #1B3960;
	text-decoration: underline;
}

/* Form within a dark CTA section — inverts colors */
.has-sage-dark-background-color .glacier-form-shell,
.has-navy-background-color .glacier-form-shell,
.has-navy-deep-background-color .glacier-form-shell {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(232, 200, 146, 0.3);
}
.has-sage-dark-background-color .glacier-form-field > label,
.has-navy-background-color .glacier-form-field > label,
.has-navy-deep-background-color .glacier-form-field > label {
	color: #E8C892;
}
