/* E2Web contact form (e2web/contact-form block). Values follow the site's HTML design tokens. */
.e2-contact-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem 1.875rem;
	margin: 0;
	padding: 1.875rem;
	border-radius: 12px;
	background: #e3f2ff;
	color: #444444;
	font-family: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.e2-contact-form p { margin: 0; }
.e2-contact-form__field { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.e2-contact-form__field--full,
.e2-contact-form__submit { grid-column: 1 / -1; }
.e2-contact-form__field label {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .01em;
	color: #444444;
}
/* ".e2-contact-form" prefix: beats the theme's own input styles, which load later */
.e2-contact-form .e2-contact-form__field input,
.e2-contact-form .e2-contact-form__field textarea {
	width: 100%;
	max-width: none;
	height: 2.75rem;
	margin: 0;
	padding: .5rem .75rem;
	border: 1px solid #b1d3f0;
	border-radius: 5px;
	background: transparent;
	box-shadow: none;
	font: inherit;
	font-size: 16px;
	line-height: 1.5;
	color: #111111;
	transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.e2-contact-form .e2-contact-form__field textarea { height: 8.75rem; resize: vertical; }
.e2-contact-form .e2-contact-form__field input:hover,
.e2-contact-form .e2-contact-form__field textarea:hover { border-color: #7fb9e6; }
.e2-contact-form .e2-contact-form__field input:focus,
.e2-contact-form .e2-contact-form__field textarea:focus {
	outline: none;
	border-color: #0588ca;
	background: rgba(255, 255, 255, .5);
	box-shadow: 0 0 0 3px rgba(5, 136, 202, .15);
}
.e2-contact-form .e2-contact-form__field :is(input, textarea):user-invalid { border-color: #d64545; }

.e2-contact-form__submit { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.e2-contact-form__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .625rem;
	height: 3.375rem;
	padding: 0 1.125rem 0 1.625rem;
	border: 1px solid transparent;
	border-radius: 100px;
	background-color: #2362aa;
	color: #ffffff;
	font: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .01em;
	white-space: nowrap;
	cursor: pointer;
}
.e2-contact-form__btn .gb-shape svg { width: 30px; height: 30px; padding: .25rem; }
.e2-contact-form__btn:disabled { cursor: progress; opacity: .8; }
.e2-contact-form__btn:focus-visible { outline: 2px solid #0588ca; outline-offset: 3px; }
/* after a click GeneratePress paints focused buttons dark grey; keep the button blue */
.e2-contact-form .e2-contact-form__btn:focus:not(:focus-visible):not(:hover) { background-color: #2362aa; color: #ffffff; }

.e2-contact-form__status { font-size: 14px; font-weight: 600; line-height: 1.4; color: #2362aa; }
.e2-contact-form__status.is-ok { color: #13795b; }
.e2-contact-form__status.is-error { color: #c62828; }

/* Resume upload (job application form): the dashed box is the file input itself, so click or drop works */
.e2-contact-form__drop {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 3.25rem;
	padding: .75rem 1rem;
	border: 1px dashed #7fb9e6;
	border-radius: 5px;
	text-align: center;
	transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.e2-contact-form .e2-contact-form__drop input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}
.e2-contact-form__drop-text { font-size: 16px; line-height: 1.4; color: #444444; overflow-wrap: anywhere; pointer-events: none; }
.e2-contact-form__drop:hover { border-color: #0588ca; background: rgba(255, 255, 255, .35); }
.e2-contact-form__drop:focus-within { border-color: #0588ca; border-style: solid; background: rgba(255, 255, 255, .5); box-shadow: 0 0 0 3px rgba(5, 136, 202, .15); }
.e2-contact-form__drop.has-file { border-style: solid; border-color: #0588ca; }
.e2-contact-form__drop.has-file .e2-contact-form__drop-text { color: #111111; font-weight: 600; }
.e2-contact-form__drop.is-bad { border-color: #d64545; }

/* Spam trap, never visible */
.e2-contact-form__trap { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* In the editor the form is a preview only */
.editor-styles-wrapper .e2-contact-form { pointer-events: none; }

@media (max-width: 767px) {
	.e2-contact-form { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 1.25rem; }
	.e2-contact-form__btn { height: 3rem; font-size: 16px; }
	.e2-contact-form__drop-text { font-size: 14px; }
}
