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

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

/* Category checkboxes: CF7 [checkbox*] inside .check-grid → the theme's
   two-column grid of .check tiles. */
.check-grid .wpcf7-form-control-wrap,
.check-grid .wpcf7-checkbox { display: block; width: 100%; }
.check-grid .wpcf7-checkbox { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.check-grid .wpcf7-list-item { margin: 0; }
.check-grid .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 13px 14px;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	cursor: pointer;
}
.check-grid .wpcf7-list-item label:hover { border-color: var(--line-strong); }
.check-grid .wpcf7-list-item input { margin: 2px 0 0; accent-color: var(--amber-deep); flex-shrink: 0; }
.check-grid .wpcf7-list-item-label { font-size: 15px; color: var(--slate-700); }

/* Consent rows: each CF7 [acceptance] sits in a .consent-item inside
   .consent-list. Render its label as a checkbox + text row. */
.consent-item .wpcf7-form-control-wrap,
.consent-item .wpcf7-acceptance,
.consent-item .wpcf7-acceptance .wpcf7-list-item { display: block; margin: 0; width: 100%; }
.consent-item .wpcf7-list-item label {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 11px;
	align-items: start;
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	cursor: pointer;
}
.consent-item .wpcf7-list-item input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--amber-deep); }
.consent-item .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: #b0352a; font-size: 13px; }

/* CF7 response banner → align with the theme's .form-status. */
.wpcf7-form .wpcf7-response-output { margin: 18px 0 0; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line-strong); font-size: 14px; }
.wpcf7-form.sent .wpcf7-response-output { border-color: #1f7a46; color: #1f7a46; }
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output { border-color: #b0352a; color: #b0352a; }

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