/**
 * AIDE Subscribe form styles.
 *
 * Matched to the Avada form (fusion-form-8897) it replaces: white fields with
 * a thin yellow border, placeholder-style inputs, two fields per row for the
 * name + language/province pairs, and a purple pill-ish submit button.
 * Values captured from the live Avada form's computed styles. Scoped to
 * .asub-embed so nothing leaks into the theme.
 */
.asub-embed {
	--asub-purple: #5236b8;
	--asub-dark-purple: #6856e8;
	--asub-field-border: #ebbb49;
	--asub-field-text: #4c4c4d;
	--asub-white: #ffffff;

	max-width: 100%;
	font-family: "TT Norms", Helvetica, Arial, sans-serif;
	color: var(--asub-field-text);
}

.asub-form {
	background: transparent;
	padding: 0;
	margin: 0;
}

.asub-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0 26px;
}

.asub-field {
	flex: 1 1 0;
	min-width: 0;
	margin-bottom: 17px;
}

.asub-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.asub-field input[type="email"],
.asub-field input[type="text"],
.asub-field select {
	display: block;
	width: 100%;
	box-sizing: border-box;
	height: 35px;
	padding: 0 15px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: normal;
	color: var(--asub-field-text);
	background: var(--asub-white);
	border: 1px solid var(--asub-field-border);
	border-radius: 6px;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.asub-field input::placeholder {
	color: var(--asub-field-text);
	opacity: 0.7;
}

.asub-field input:focus,
.asub-field select:focus {
	outline: none;
	border-color: var(--asub-purple);
	box-shadow: 0 0 0 2px rgba(82, 54, 184, 0.15);
}

.asub-field select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235236b8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 34px;
}

.asub-hp {
	position: absolute;
	left: -5000px;
}

.asub-submit {
	display: flex;
	justify-content: flex-end;
	margin-top: 3px;
}

.asub-button {
	display: inline-block;
	cursor: pointer;
	height: 54px;
	padding: 12px 32px;
	font-family: "TT Norms Medium", "TT Norms", Helvetica, Arial, sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 24px;
	text-align: center;
	color: var(--asub-white);
	background: var(--asub-purple);
	border: 3px solid var(--asub-purple);
	border-radius: 4px;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.asub-button:hover,
.asub-button:focus {
	background: var(--asub-dark-purple);
	border-color: var(--asub-dark-purple);
	color: var(--asub-white);
}

.asub-button:focus-visible {
	outline: 3px solid rgba(82, 54, 184, 0.3);
	outline-offset: 2px;
}

.asub-asterisk {
	color: var(--asub-field-border);
}

@media (max-width: 640px) {
	.asub-row {
		gap: 0;
	}

	.asub-field {
		flex-basis: 100%;
	}
}
