/**
 * Star Trail Child — baseline form-field styling.
 *
 * This lives in the CHILD theme on purpose: it's a starting aesthetic you're meant to tweak per
 * client. Everything here is LOW specificity (single element/attribute selectors, no !important)
 * so you can override it easily, and it uses the parent's theme.json CSS variables so it recolors
 * with the palette.
 *
 * The two decorative SVG "triangles" are exposed as CSS variables so you can swap them without
 * touching selectors:
 *   --st-select-arrow      the dropdown caret on <select>
 *   --st-accordion-marker  the accordion open/close marker (defined by the blocks plugin)
 */

:root {
	--st-field-border: var( --wp--preset--color--line, #dce1e8 );
	--st-field-bg: var( --wp--preset--color--base, #ffffff );
	--st-field-text: var( --wp--preset--color--contrast, #14181f );
	--st-field-radius: 6px;
	--st-field-pad-y: 0.5em;
	--st-field-pad-x: 0.75em;
	--st-field-focus: var( --wp--preset--color--primary, #2b6cb0 );

	/* Swap this to change the <select> caret site-wide. */
	--st-select-arrow: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 3l4 4 4-4z' fill='%2314181f'/%3E%3C/svg%3E" );

	/* Swap this to change the accordion marker site-wide (used by startrail/accordion). */
	--st-accordion-marker: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 3l4 4 4-4z'/%3E%3C/svg%3E" );
}

/* Text-like inputs + textarea + select share the same look. */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
input[type="week"],
textarea,
select {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: var( --st-field-pad-y ) var( --st-field-pad-x );
	font: inherit;
	line-height: 1.4;
	color: var( --st-field-text );
	background-color: var( --st-field-bg );
	border: 1px solid var( --st-field-border );
	border-radius: var( --st-field-radius );
	box-sizing: border-box;
}

textarea {
	min-height: 6em;
	resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
	outline: 2px solid var( --st-field-focus );
	outline-offset: 1px;
	border-color: var( --st-field-focus );
}

input::placeholder,
textarea::placeholder {
	color: var( --st-field-text );
	opacity: 0.55;
}

input:disabled,
textarea:disabled,
select:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Single-select: hide the native arrow and draw our swappable SVG caret. */
select:not( [multiple] ) {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 2.25em;
	background-image: var( --st-select-arrow );
	background-repeat: no-repeat;
	background-position: right 0.85em center;
	background-size: 0.7em;
}

/* Multi-select: keep it as a scrollable list box (no caret). */
select[multiple] {
	padding-right: var( --st-field-pad-x );
	min-height: 6em;
}
select[multiple] option {
	padding: 0.2em 0.1em;
}

/* Checkboxes & radios: modest sizing + accent color. */
input[type="checkbox"],
input[type="radio"] {
	accent-color: var( --st-field-focus );
	width: 1.1em;
	height: 1.1em;
	vertical-align: -0.15em;
}

/* Labels + simple field grouping helpers (optional but handy). */
label {
	display: inline-block;
	margin-bottom: 0.25em;
	font-weight: 600;
}

/* Gravity Forms — Main Layout */
form#gform_1 {
	display: flex;
	flex-flow: row wrap;
	justify-content: center;
	gap: 0.9375em; 
}

/* Form Fields */
.gform-theme--foundation .gfield .ginput_password.large,
.gform-theme--foundation .gfield input.large,
.gform-theme--foundation .gfield select.large {
	display: inline-block;
	min-width: 14.375em; 
	padding: 0.625em; 

	color: #302724;
	background: rgba(255, 255, 255, 0.6);
	border: 0;

	text-align: center;
	font-style: normal;
	font-weight: 400;
	letter-spacing: 0.05625em; 
	text-transform: uppercase;
	font-family: "Lato", sans-serif;
}

.gform-theme--foundation .gform_fields {
	row-gap: 0.9375em;
}

/* Submit Button */
.gform-theme.gform-theme--framework.gform_wrapper
.gform_footer input.gform_button.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	margin: 0;
	padding: 0 2em; 

	gap: 0.625em; 

	color: rgba(248, 247, 240, 0.78);
	border: 0;

	text-align: center;
	font-style: normal;
	font-weight: 600;
	line-height: normal;
	letter-spacing: 0.05625em; 
	text-transform: uppercase;
	font-family: "Lato", sans-serif;
}

/* Form Footer */
.gform-theme.gform-theme--framework.gform_wrapper .gform_footer {
	margin: 0;
}