/*
 * Epoca Contact Form 7 styles
 * The site-wide form parts of the old /themes/hello-elementor/join.css (recovered
 * from the Wayback Machine). The #join slide-out popup styles are left out since
 * that form is being removed.
 *
 * Font note: the old file used "Eina 01 W05 Regular", a Monotype web font that was
 * loaded from header.php and went away with the theme update. "Eina" (the Elementor
 * custom font) is listed as the fallback so forms still get the brand font.
 */

.wpcf7-form input {
	border: 1px solid #B4B4B4;
	border-radius: 3px;
	margin-top: 15px;
	font-size: 14px;
	outline: none;
	padding: 6px;
	font-family: "Eina 01 W05 Regular", "Eina", sans-serif;
	font-weight: normal;
	font-style: normal;
	color: #000;
}

.wpcf7-form .checkbox-container {
	margin-top: 20px;
}
.wpcf7-form .checkbox-container .wpcf7-form-control-wrap {
	margin-top: 14px;
	display: block;
}
.wpcf7-form .wpcf7-list-item {
	margin: 0;
}

.wpcf7-form .wpcf7-submit {
	width: 100%;
	height: 38px;
	padding: 0;
	background-color: #F65058;
	color: #fff;
	border: none;
	border-radius: 3px;
	font-family: "Eina 01 W05 Regular", "Eina", sans-serif;
	font-weight: normal;
	font-style: normal;
	font-size: 14px;
	cursor: pointer;
	line-height: 1;
	letter-spacing: 1.05px;
	text-transform: uppercase;
	margin: 20px 0 10px 0;
}

.wpcf7-form ::-webkit-input-placeholder {
	color: #000;
}
.wpcf7-form ::-moz-placeholder {
	color: #000 !important;
	opacity: 1;
}
.wpcf7-form :-ms-input-placeholder {
	color: #000;
}

/* ---------- Custom checkboxes ---------- */
/* epoca.js adds <span class="checkmark"> after interests[] checkboxes */

.checkbox-container .wpcf7-list-item {
	display: block;
	position: relative;
	padding-left: 28px;
	margin-bottom: 8px;
	cursor: pointer;
	font-size: unset;
	text-transform: uppercase;
	line-height: 1;
	user-select: none;
}
.checkbox-container input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}
.checkmark {
	position: absolute;
	top: 1px;
	left: 0;
	height: 18px;
	width: 18px;
	background-color: #F65058;
	border-radius: 3px;
}
.checkbox-container:hover input ~ .checkmark,
.checkbox-container input:checked ~ .checkmark {
	background-color: #F65058;
}
.checkmark:after {
	content: "";
	position: absolute;
	display: none;
}
.checkbox-container input:checked ~ .checkmark:after {
	display: block;
}
.checkbox-container .checkmark:after {
	left: 6px;
	top: 2px;
	width: 7px;
	height: 12px;
	border: solid #FF9C76;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
/* Keyboard users still need to see focus on the hidden checkbox */
.checkbox-container input:focus-visible ~ .checkmark {
	outline: 2px solid #303636;
	outline-offset: 2px;
}

/* ---------- Messages ---------- */

.wpcf7-spinner {
	display: block;
	background-color: #F65058;
	margin: 0 auto;
}
.wpcf7-not-valid-tip {
	color: #F65058;
	font-size: 13px;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
	border-color: #F65058;
	font-size: 16px;
}
.wpcf7 form .wpcf7-response-output {
	margin: 2em 0 1em;
	padding: 1em;
}
.wpcf7 form.sent .wpcf7-response-output {
	border-color: #346E6A;
	font-size: 13px;
}

p.form-disclaimer {
	font-family: "Eina 01 W05 Regular", "Eina", sans-serif;
	font-weight: normal;
	font-style: normal;
	font-size: 11px;
	color: #000000;
	line-height: 18px;
	margin: 0;
}

/* ---------- Accessibility ---------- */

.visuallyhidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
}

/* ---------- SMS field (country code + phone) ---------- */

#sms-fields {
	display: flex;
	align-items: flex-start;
}
#sms-field-code {
	width: 75px;
}
select#calling_code {
	font-size: 14px;
	font-family: "Eina 01 W05 Regular", "Eina", sans-serif;
	padding: 6px 10px 6px 6px;
	margin-top: 15px;
	border: 1px solid #B4B4B4;
	border-right: 0;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	height: 35px;
}
select#calling_code:focus {
	border-color: #333;
}
#sms-field-number {
	flex-grow: 1;
}
input#your-phone {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

/* ---------- Spacing ---------- */
/* CF7 wraps fields in <p> and adds <br> after the hidden labels. Kill those so the
   input margin alone sets the rhythm, and keep error tips tight under their field. */

.wpcf7-form br {
	display: none;
}
.wpcf7-form p {
	margin: 0;
}
.wpcf7-form .wpcf7-form-control-wrap {
	display: block;
}
.wpcf7-form input:not([type="checkbox"]):not([type="submit"]) {
	width: 100%;
	margin-top: 12px;
}
.wpcf7-form .wpcf7-not-valid-tip {
	display: block;
	margin-top: 3px;
	font-size: 12px;
	line-height: 1.2;
}
.wpcf7-form p.form-disclaimer {
	margin-top: 12px;
}
