/*
Theme Name: honesty
Theme URI: https://www.honesty.co.il/
Author: LM Web Solutions
Author URI: https://www.lm-studio.co.il/
Description: HONESTY — ביטוח. פיננסים. תכנון העתיד. Styles: css/main.css (compiled from html/scss). This file: WordPress / Contact Form 7 integration only.
Version: 1.0
Text Domain: lm
*/

/* ---------- Contact Form 7 (form markup from html/, styles in css/main.css) ---------- */
.wpcf7 form .wpcf7-response-output {
	margin: 12px 0 0;
	padding: 0;
	border: 0;
	font-weight: 600;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
	color: var(--error);
}

.wpcf7 form.sent .wpcf7-response-output {
	color: var(--success);
}

.wpcf7-not-valid-tip {
	display: block;
	margin-top: 4px;
	font-size: .88rem;
	font-weight: 400;
	color: var(--error);
}

.wpcf7-not-valid-tip::before {
	content: "! ";
	font-weight: 700;
}

.form__field .wpcf7-not-valid {
	border-color: var(--error);
}

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

.form__field--check .wpcf7-form-control-wrap {
	display: contents;
}

.form__field--check .wpcf7-list-item {
	margin: 0;
}

.form__field--check .wpcf7-not-valid-tip {
	order: 5;
	flex-basis: 100%;
	margin-top: 0;
}

/* The prototype reserves a line under each required field for its error (span.form__error, min-height 1.2em).
   CF7 prints its own tip inside the control wrap, so the reserved line is hidden while a tip is shown. */
.form__field:has(.wpcf7-not-valid-tip) > .form__error {
	display: none;
}

/* Keep the empty response line in the initial state, like the prototype's .form__status (margin-top 12px). */
.wpcf7 form.wpcf7-form.init .wpcf7-response-output {
	display: block;
}

.wpcf7-spinner {
	display: none;
}

.wpcf7 form.submitting .form__submit .btn {
	opacity: .7;
	pointer-events: none;
}

/* ---------- WordPress ---------- */
@media screen and (max-width: 1200px) {
	#wpadminbar {
		position: fixed;
		overflow: hidden;
	}
}
