/* ================================================================
   Reuveni Capital — Contact Form 7 markup overlay
   Maps CF7's .wpcf7-* wrappers onto the theme's form vocabulary
   (.form-grid, .field, .consent-group, .checkbox-row). Loaded only
   when CF7 is active, AFTER base.css.
   ================================================================ */

/* Inputs inherit `.field input/textarea` (element selectors); make CF7's
   wrapper span block so the input fills the .field cell. */
.wpcf7-form .field .wpcf7-form-control-wrap { display: block; width: 100%; }
.wpcf7-form .field input.wpcf7-form-control,
.wpcf7-form .field textarea.wpcf7-form-control { width: 100%; }

/* Consent rows: each CF7 [acceptance] sits in a .checkbox-row.
   Flatten its wrappers and render the <label> as the theme's row grid. */
.checkbox-row .wpcf7-form-control-wrap,
.checkbox-row .wpcf7-acceptance,
.checkbox-row .wpcf7-acceptance .wpcf7-list-item { display: block; margin: 0; width: 100%; }
.checkbox-row .wpcf7-list-item label {
	display: grid;
	grid-template-columns: 20px 1fr;
	gap: 12px;
	align-items: start;
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	cursor: pointer;
}
.checkbox-row .wpcf7-list-item input[type="checkbox"] { width: 18px; height: 18px; margin-top: 5px; }
.checkbox-row .wpcf7-list-item-label a { text-decoration: underline; }

/* Validation tips → theme's .field-error feel. */
.wpcf7-form .wpcf7-not-valid-tip { display: block; margin-top: 4px; color: #b23b3b; font-size: 13px; }
.wpcf7-form .wpcf7-not-valid { border-bottom-color: #b23b3b !important; }

/* CF7 response banner → align with .form-status. */
.wpcf7-form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(0,0,0,.18); font-size: 14px; }
.wpcf7-form.sent .wpcf7-response-output { border-color: #2f6d43; color: #2f6d43; }
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output { border-color: #b23b3b; color: #b23b3b; }

.wpcf7-form .wpcf7-spinner { margin: 0 0 0 10px; }
.wpcf7-form.submitting .button { opacity: .6; pointer-events: none; }
