.wpcf7-form {
	font-family: var(--wp--preset--font-family--body);
	max-width: none;
}

@media (max-width: 600px) {
	.idemidem-form-row.two-col {
		flex-direction: column;
		gap: 18px;
	}
}


.idemidem-form-row {
	margin-bottom: 18px;
}

.idemidem-form-row.two-col {
	display: flex;
	gap: 16px;
}

.idemidem-form-row.two-col > span {
	flex: 1;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #D8D8D8;
	border-radius: 6px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.95rem;
	background: #fff;
	transition: border-color 0.2s ease;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
	outline: none;
	border-color: #1F7A82;
	box-shadow: 0 0 0 3px rgba(31, 122, 130, 0.25);
}

.wpcf7-form textarea {
	min-height: 130px;
	resize: vertical;
}

.wpcf7-form .wpcf7-submit {
	background: #2AA08F;
	color: #1A1A1A;
	border: none;
	padding: 14px 32px;
	border-radius: 4px;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 500;
	font-size: 0.95rem;
	cursor: pointer;
	transition: background 0.2s ease;
}

.wpcf7-form .wpcf7-submit:hover,
.wpcf7-form .wpcf7-submit:focus-visible {
	background: #5CE4C7;
	color: #1A1A1A;
}



.wpcf7-not-valid-tip {
	color: #B3261E;
	font-size: 0.875rem;
	font-weight: 500;
	margin-top: 6px;
}

.wpcf7-response-output {
	border-radius: 6px !important;
	font-size: 0.9rem;
	margin-top: 16px !important;
}

/* Field labels sit above their inputs */
.wpcf7-form label {
	display: block;
	font-weight: 500;
	font-size: 0.9rem;
	margin-bottom: 6px;
}

.wpcf7-form .wpcf7-form-control-wrap {
	display: block;
	margin-top: 6px;
}

/* Dropdown menus */
.wpcf7-form select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #D8D8D8;
	border-radius: 6px;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.95rem;
	background: #fff;
}

/* Checkboxes and the acknowledgment line: box on the left, text beside it */
.wpcf7-form .wpcf7-list-item {
	display: block;
	margin: 0;
}

.wpcf7-form .wpcf7-list-item label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-bottom: 0;
	font-weight: 400;
}

.wpcf7-form input[type="checkbox"] {
	flex-shrink: 0;
	width: auto;
	margin-top: 4px;
}

/* Keep every field inside the form's width (padding and border included) */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea,
.wpcf7-form select {
	box-sizing: border-box;
}

/* Address boxes only need a few lines */
.wpcf7-form textarea[rows="3"] {
	min-height: 90px;
}

/* Anti-bot trap field: kept off-screen, never shown to visitors */
.idemidem-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Fields with a problem get a matching red outline */
.wpcf7-form input.wpcf7-not-valid,
.wpcf7-form textarea.wpcf7-not-valid,
.wpcf7-form select.wpcf7-not-valid {
	border-color: #B3261E;
}

/* Two-column rows can also hold groups of choices */
.idemidem-form-row.two-col > div {
	flex: 1;
}

/* Groups of radio buttons or checkboxes, with a proper heading for each group */
.idemidem-fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.idemidem-fieldset legend {
	padding: 0;
	margin-bottom: 8px;
	font-weight: 500;
	font-size: 0.9rem;
}

.idemidem-fieldset .wpcf7-radio {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

.idemidem-fieldset .wpcf7-checkbox {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 24px;
}
@media (max-width: 600px) {
	.idemidem-fieldset .wpcf7-checkbox {
		grid-template-columns: 1fr;
	}
}

/* The privacy notice at the top of the form */
.idemidem-form-notice {
	margin-bottom: 22px;
	padding: 14px 16px;
	border-left: 4px solid #1F7A82;
	border-radius: 6px;
	background: #F3F8F8;
	font-size: 0.9rem;
	line-height: 1.5;
}

/* Submit button centered */
.idemidem-form-actions {
	display: flex !important;
	justify-content: center;
	align-items: center;
	margin-top: 8px;
	position: relative;
}
/* The "sending" spinner floats beside the button so it never pushes the button off-center */
.idemidem-form-actions .wpcf7-spinner {
	position: absolute !important;
	top: 50%;
	left: calc(50% + 90px);
	margin: -12px 0 0 0 !important;
}
.idemidem-form-actions .wpcf7-submit {
	margin: 0 !important;
	float: none !important;
}
/* Small helper lines */
.idemidem-form-hint {
	margin: 0 0 18px;
	font-size: 0.85rem;
	color: #4A4A4A;
}
.idemidem-field-hint {
	display: block;
	margin: 0 0 6px;
	font-size: 0.82rem;
	font-weight: 400;
	color: #4A4A4A;
}
.idemidem-fieldset .wpcf7-list-item label {
	font-size: 0.95rem;
}
.wpcf7-form select {
	width: 100%;
}
.idemidem-form-notice {
	margin-top: 4px;
	margin-bottom: 22px;
}

/* Send button looks faded while it is switched off (waiting for the consent box) */
.wpcf7-form .wpcf7-submit:disabled,
.wpcf7-form .wpcf7-submit:disabled:hover {
	background: #2AA08F;
	color: #1A1A1A;
	opacity: 0.45;
	cursor: not-allowed;
}
