/*
 * Constant Contact signup forms. The plugin's own stylesheet uses selectors
 * like `.ctct-form-wrapper .ctct-submit`, so these start from the wrapper too.
 * Its green check and red border for valid and invalid emails still apply.
 */

.wp-site-blocks .ctct-form-wrapper .ctct-form-field {
	margin: 0 0 0.75rem;
}

.wp-site-blocks .ctct-form-wrapper .ctct-form-field-submit {
	margin-bottom: 0;
}

/* Labels sit just above their input, smaller and a little faded. */
.wp-site-blocks .ctct-form-wrapper .ctct-label-top label {
	display: block;
	margin-bottom: 0.375rem;
	color: color-mix(in srgb, currentColor 80%, transparent);
	font-size: 0.875rem;
	line-height: 1.4;
}

.wp-site-blocks .ctct-form-wrapper :is(input[type="email"], input[type="text"], input[type="tel"], textarea) {
	box-sizing: border-box;
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--wp--preset--color--light-gray);
	border-radius: 0.5rem;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--text);
	font-family: var(--wp--preset--font-family--source-sans);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
}

.wp-site-blocks .ctct-form-wrapper .ctct-submit {
	padding: 0.5rem 1.75rem;
	border: 0;
	border-radius: 0.5rem;
	background: var(--wp--preset--color--teal);
	color: var(--wp--preset--color--white);
	font-family: var(--wp--preset--font-family--futura);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
}

.wp-site-blocks .ctct-form-wrapper .ctct-submit:hover {
	background: var(--wp--preset--color--gray);
}

/* On the teal footer, flip the button to white with teal text. */
.wp-site-blocks footer .ctct-form-wrapper .ctct-submit {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--teal);
}

.wp-site-blocks footer .ctct-form-wrapper .ctct-submit:hover {
	background: var(--wp--preset--color--sand);
}
