/***********************************************************
    BAHAR AVIATION - Get a Quote form (Contact Form 7)
    Works together with your existing .contact-form-7 styles.
************************************************************/

.bahar-quote-form [hidden] {
	display: none !important;
}

.bahar-quote-form fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.bahar-quote-form .bqf-legend {
	display: block;
	width: 100%;
	padding: 0;
	margin: 0 0 18px;
	font-size: 1.25rem;
	font-weight: 700;
	color: #0c3f6b;
}

.bahar-quote-form .bqf-req {
	color: #c00;
}

.bahar-quote-form .bqf-label {
	font-weight: 500;
	margin-bottom: 5px;
	display: block;
	font-size: 0.9rem;
	color: #000;
}

.bahar-quote-form .bqf-help {
	margin: -4px 0 14px;
	font-size: 0.8rem;
	color: #666;
}

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

/* Honeypot: invisible to people, visible to bots. */
.bqf-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* ---------- Progress ---------- */
.bahar-quote-form .bqf-progress {
	display: flex;
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
}

.bahar-quote-form .bqf-progress li {
	flex: 1;
	position: relative;
	text-align: center;
	font-size: 0.75rem;
	line-height: 1.3;
	color: #777;
	margin: 0;
}

.bahar-quote-form .bqf-progress li::before {
	content: attr(data-n);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
	width: 32px;
	height: 32px;
	margin: 0 auto 6px;
	border-radius: 50%;
	background: #e3e7ec;
	color: #555;
	font-size: 0.9rem;
	font-weight: 700;
}

.bahar-quote-form .bqf-progress li::after {
	content: "";
	position: absolute;
	top: 15px;
	left: calc(50% + 16px);
	width: calc(100% - 32px);
	height: 2px;
	background: #e3e7ec;
}

.bahar-quote-form .bqf-progress li:last-child::after {
	display: none;
}

.bahar-quote-form .bqf-progress li.is-active {
	color: #0c3f6b;
	font-weight: 700;
}

.bahar-quote-form .bqf-progress li.is-active::before {
	background: #0c3f6b;
	color: #fff;
}

.bahar-quote-form .bqf-progress li.is-done::before {
	content: "\2713";
	background: #98242a;
	color: #fff;
}

.bahar-quote-form .bqf-progress li.is-done::after {
	background: #98242a;
}

/* ---------- Steps ---------- */
.bahar-quote-form.bqf-js .bqf-step {
	display: none;
}

.bahar-quote-form.bqf-js .bqf-step.is-active {
	display: block;
	animation: bqf-fade 0.25s ease;
}

.bahar-quote-form .bqf-step:focus {
	outline: none;
}

@keyframes bqf-fade {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bahar-quote-form.bqf-js .bqf-step.is-active {
		animation: none;
	}
}

.bahar-quote-form.bqf-done .bqf-step,
.bahar-quote-form.bqf-done .bqf-nav,
.bahar-quote-form.bqf-done .bqf-progress {
	display: none !important;
}

/* ---------- Checkboxes ---------- */
.bahar-quote-form .wpcf7-checkbox {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 8px 16px;
	margin-bottom: 14px;
}

.bahar-quote-form .wpcf7-list-item {
	display: block;
	margin: 0;
}

.bahar-quote-form .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-weight: 400;
	cursor: pointer;
}

.bahar-quote-form input[type="checkbox"],
.bahar-quote-form input[type="radio"] {
	width: auto;
	margin: 0;
	flex: 0 0 auto;
}

.bahar-quote-form .bqf-consent {
	margin: 6px 0 4px;
	padding: 14px 16px;
	background: #f5f7fa;
	border-radius: 5px;
}

.bahar-quote-form .bqf-consent .wpcf7-list-item label {
	align-items: flex-start;
	font-size: 0.85rem;
	line-height: 1.5;
}

.bahar-quote-form .bqf-consent input[type="checkbox"] {
	margin-top: 4px;
}

/* ---------- Alerts / notices ---------- */
.bahar-quote-form .bqf-alert {
	margin: 0 0 16px;
	padding: 12px 16px;
	background: #fdf0f0;
	border-left: 4px solid #98242a;
	border-radius: 4px;
	font-size: 0.9rem;
	color: #333;
}

.bahar-quote-form .bqf-alert .bqf-phone-link {
	color: #98242a;
	font-weight: 700;
	white-space: nowrap;
}

/* ---------- Errors ---------- */
.bahar-quote-form .bqf-error,
.bahar-quote-form .wpcf7-not-valid-tip {
	display: block;
	margin: -6px 0 10px;
	font-size: 0.8rem;
	color: #b32d2e;
}

.bahar-quote-form .bqf-invalid,
.bahar-quote-form .wpcf7-not-valid {
	border-color: #b32d2e !important;
}

/* ---------- Navigation ---------- */
.bahar-quote-form .bqf-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 22px;
}

.bahar-quote-form .bqf-nav .bqf-btn-next,
.bahar-quote-form .bqf-nav .bqf-submit {
	margin-left: auto;
}

.bahar-quote-form .bqf-btn {
	display: inline-block;
	padding: 12px 28px;
	border: 1px solid #0c3f6b;
	border-radius: 5px;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.bahar-quote-form .bqf-btn-prev {
	background: transparent;
	color: #0c3f6b;
}

.bahar-quote-form .bqf-btn-prev:hover {
	background: #0c3f6b;
	color: #fff;
}

.bahar-quote-form .bqf-btn-next {
	background: #0c3f6b;
	color: #fff;
}

.bahar-quote-form .bqf-btn-next:hover {
	background: #98242a;
	border-color: #98242a;
}

.bahar-quote-form .bqf-nav .wpcf7-submit {
	width: auto;
	padding: 12px 28px;
	margin: 0;
	border-radius: 5px;
}

/* Without JavaScript the form is one long page: hide step buttons. */
.bahar-quote-form:not(.bqf-js) .bqf-btn,
.bahar-quote-form:not(.bqf-js) .bqf-progress {
	display: none;
}

/* ---------- Emergency banner ([bahar_emergency_banner]) ---------- */
.bqf-emergency {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0 0 24px;
	padding: 18px 24px;
	background: #98242a;
	color: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.bqf-emergency__text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	flex: 1 1 280px;
	font-size: 0.95rem;
}

.bqf-emergency__title {
	font-size: 1.2rem;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.bqf-emergency__call {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 10px 22px;
	background: #fff;
	color: #98242a;
	border-radius: 6px;
	text-decoration: none;
	line-height: 1.2;
}

.bqf-emergency__label {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.bqf-emergency__number {
	font-size: 1.4rem;
	font-weight: 800;
}

.bqf-emergency__call:hover,
.bqf-emergency__call:focus {
	background: #0c3f6b;
	color: #fff;
}

/* ---------- Response message ---------- */
.wpcf7 form.bqf-form-sent .wpcf7-response-output,
.wpcf7 form.sent .wpcf7-response-output {
	padding: 14px 18px !important;
	border-radius: 5px;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
	.bahar-quote-form .form-row {
		flex-direction: column;
		gap: 0;
	}

	.bahar-quote-form .bqf-progress li span {
		display: none;
	}

	.bahar-quote-form .bqf-progress li.is-active span {
		display: block;
	}

	.bahar-quote-form .bqf-nav {
		flex-wrap: wrap;
	}

	.bahar-quote-form .bqf-btn,
	.bahar-quote-form .bqf-nav .wpcf7-submit {
		flex: 1 1 auto;
	}

	.bahar-quote-form .bqf-nav .bqf-submit {
		flex: 1 1 auto;
	}

	.bqf-emergency {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}
}
