/**
 * Contact Form 7 – Quaddro theme overrides.
 * Enqueued after CF7 plugin styles so these win.
 */

/* Form layout: name + email side by side */
.wpcf7-form,
.wpcf7 .wpcf7-form {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 0 1rem !important;
}
.wpcf7-form > p,
.wpcf7 .wpcf7-form > p {
	flex: 1 1 100% !important;
	margin: 0 0 1rem 0 !important;
}
.wpcf7-form > p:nth-of-type(1),
.wpcf7-form > p:nth-of-type(2),
.wpcf7 .wpcf7-form > p:nth-of-type(1),
.wpcf7 .wpcf7-form > p:nth-of-type(2) {
	flex: 1 1 calc(50% - 0.5rem) !important;
	min-width: 0 !important;
}

/* Labels: captions format, #1C1C1E */
.wpcf7 label,
.wpcf7-form label {
	font-size: 15px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	letter-spacing: 0.01em !important;
	color: #1C1C1E !important;
	display: block !important;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

/* Space between label and its input/textarea (on the wrap, so it’s reliable) */
.wpcf7 .wpcf7-form-control-wrap,
.wpcf7-form .wpcf7-form-control-wrap {
	display: block !important;
	margin-top: 0.5em !important;
	margin-bottom: 0 !important;
}

/* Text/email inputs: 40px height; no outline, background #F5F5F7 */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"] {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	height: 40px !important;
	min-height: 40px !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background-color: #F5F5F7 !important;
	padding: 0 1rem !important;
	font-family: inherit !important;
	font-size: 17px !important;
	line-height: 1 !important;
	color: #1C1C1E !important;
}
/* Textarea: message box */
.wpcf7 textarea.wpcf7-form-control,
.wpcf7-form textarea.wpcf7-form-control {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background-color: #F5F5F7 !important;
	padding: 0.75rem 1rem !important;
	font-family: inherit !important;
	font-size: 17px !important;
	color: #1C1C1E !important;
	min-height: 120px !important;
	resize: vertical !important;
}

/* Submit = secondary button style; extra space above and below */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit,
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
	box-sizing: border-box !important;
	height: 40px !important;
	min-height: 40px !important;
	max-height: 40px !important;
	padding: 0 1.5em !important;
	margin-top: 1rem !important;
	margin-bottom: 1rem !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	border-radius: 20px !important;
	border: none !important;
	cursor: pointer !important;
	color: #F5F5F7 !important;
	background-color: #667488 !important;
	box-shadow: 0 0 3px 0.5px rgba(0, 0, 0, 0.15) !important;
	transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
}
.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover,
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
	color: #F5F5F7 !important;
	background-color: #1C1C1E !important;
	box-shadow: none !important;
}
.wpcf7 input[type="submit"]:active,
.wpcf7 .wpcf7-submit:active,
.wpcf7-form input[type="submit"]:active,
.wpcf7-form .wpcf7-submit:active {
	color: #F5F5F7 !important;
	background-color: #1C1C1E !important;
	box-shadow: inset 0 0 3px 0.5px rgba(0, 0, 0, 0.15) !important;
}
.wpcf7 input[type="submit"]:focus,
.wpcf7 input[type="submit"]:focus-visible,
.wpcf7 .wpcf7-submit:focus,
.wpcf7 .wpcf7-submit:focus-visible,
.wpcf7-form input[type="submit"]:focus,
.wpcf7-form input[type="submit"]:focus-visible,
.wpcf7-form .wpcf7-submit:focus,
.wpcf7-form .wpcf7-submit:focus-visible {
	outline: none !important;
	box-shadow: none !important;
}
