/*
 * Main-site consultation form (Contact Form 7) – matches the site design
 * (square corners, navy / slate blue, DM Sans). Scoped to .jgp-site-form.
 */
.jgp-site-form {
	font-family: "DM Sans", sans-serif;
	color: #525b66;
}

.jgp-site-form .jgp-row {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, 1fr);
}

.jgp-site-form .jgp-field {
	display: grid;
	margin-bottom: 16px;
	gap: 6px;
}

.jgp-site-form .jgp-field > label {
	color: #2a507c;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

.jgp-site-form .wpcf7-form-control-wrap {
	display: block;
}

.jgp-site-form input[type="text"],
.jgp-site-form input[type="tel"],
.jgp-site-form input[type="email"],
.jgp-site-form select,
.jgp-site-form textarea {
	display: block;
	width: 100%;
	margin: 0;
	color: #333333;
	background: #ffffff;
	border: 1px solid #cccccc;
	border-radius: 0;
	box-shadow: none;
	font: inherit;
	font-size: 16px;
	transition: border-color 160ms ease;
}

.jgp-site-form input[type="text"],
.jgp-site-form input[type="tel"],
.jgp-site-form input[type="email"],
.jgp-site-form select {
	min-height: 48px;
	padding: 0 14px;
}

.jgp-site-form textarea {
	min-height: 120px;
	padding: 12px 14px;
	resize: vertical;
}

.jgp-site-form input:focus,
.jgp-site-form select:focus,
.jgp-site-form textarea:focus {
	border-color: #6a94c1;
	outline: 2px solid rgba(106, 148, 193, 0.35);
	outline-offset: 0;
}

/* Consent checkbox */
.jgp-site-form .jgp-consent {
	margin: 4px 0 20px;
}

.jgp-site-form .wpcf7-list-item {
	margin: 0;
}

.jgp-site-form .wpcf7-acceptance label {
	display: grid;
	align-items: start;
	cursor: pointer;
	font-size: 14px;
	gap: 10px;
	grid-template-columns: auto 1fr;
	line-height: 1.5;
}

.jgp-site-form .wpcf7-acceptance input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: #2a507c;
}

/* Submit – same look as the site's slate-blue buttons.
 * Extra specificity so it wins over Elementor's site-wide button style. */
.wpcf7 form.jgp-site-form input.wpcf7-submit {
	width: 100%;
	min-height: 54px;
	margin: 0 0 12px;
	padding: 16px 32px;
	color: #ffffff;
	background: #6a94c1;
	border: 2px solid #6a94c1;
	border-radius: 0;
	cursor: pointer;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	transition: background-color 0.3s ease-out, border-color 0.3s ease-out;
}

.wpcf7 form.jgp-site-form input.wpcf7-submit:hover {
	background: #2a507c;
	border-color: #2a507c;
}

/* CF7 keeps the button disabled until the consent box is ticked */
.wpcf7 form.jgp-site-form input.wpcf7-submit:disabled {
	cursor: not-allowed;
	opacity: 0.65;
}

.jgp-site-form .wpcf7-spinner {
	display: block;
	margin: 0 auto 8px;
}

/* Validation and response messages */
.jgp-site-form .wpcf7-not-valid {
	border-color: #b3261e;
}

.jgp-site-form .wpcf7-not-valid-tip {
	margin-top: 4px;
	color: #b3261e;
	font-size: 13px;
	font-weight: 700;
}

.jgp-site-form .wpcf7-response-output {
	margin: 6px 0 0;
	padding: 12px 14px;
	font-size: 14px;
}

@media (max-width: 767px) {
	.jgp-site-form .jgp-row {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

/* ------------------------------------------------------------------ *
 * Compact variant – homepage hero card
 * ------------------------------------------------------------------ */
.jgp-site-form.jgp-compact .jgp-row {
	gap: 12px;
}

.jgp-site-form.jgp-compact .jgp-field {
	margin-bottom: 12px;
	gap: 4px;
}

.jgp-site-form.jgp-compact .jgp-field > label {
	font-size: 13px;
}

.jgp-site-form.jgp-compact input[type="text"],
.jgp-site-form.jgp-compact input[type="tel"],
.jgp-site-form.jgp-compact input[type="email"],
.jgp-site-form.jgp-compact select {
	min-height: 42px;
	padding: 0 12px;
	font-size: 15px;
}

.jgp-site-form.jgp-compact .jgp-consent {
	margin: 2px 0 14px;
}

.jgp-site-form.jgp-compact .wpcf7-acceptance label {
	font-size: 12.5px;
}

.wpcf7 form.jgp-site-form.jgp-compact input.wpcf7-submit {
	min-height: 48px;
	padding: 12px 24px;
	margin-bottom: 4px;
}
