/* Свържете се с нас: заглавието „Имате въпроси…“ на 3 реда — лявата колона е по-широка, формата взима остатъка. */
@media (min-width: 1400px) {
	.elementor-39 [data-id="361e1cd1"] {
		flex: 0 0 600px !important;
		width: 600px !important;
		max-width: 600px !important;
	}

	.elementor-39 [data-id="45047bec"] {
		flex: 1 1 auto !important;
		min-width: 0 !important;
	}
}

@media (min-width: 1025px) and (max-width: 1399px) {
	.elementor-39 [data-id="361e1cd1"] {
		flex: 0 0 calc(50% - 24px) !important;
		width: calc(50% - 24px) !important;
		max-width: none !important;
	}

	.elementor-39 [data-id="45047bec"] {
		flex: 1 1 auto !important;
		min-width: 0 !important;
	}

	.elementor-39 [data-id="60dfe2b4"] {
		font-size: clamp(26px, calc(3vw - 5px), 36px) !important;
		line-height: 1.2 !important;
	}
}

/* Телефон: заглавието над зеленото каре, върху бял фон, в тъмния цвят на заглавията. */
@media (max-width: 767px) {
	.elementor-39 .htp-contact-heading--out {
		width: 100% !important;
		margin: 0 0 24px !important;
		color: #2e384d !important;
		text-align: left;
	}
}

/* QA (тесни телефони): бюлетинът — полето на цяла ширина, бутонът под него (иначе подсказката се реже). */
@media (max-width: 430px) {
	.elementor-39 form:has(input[name="newsletter-email"]) {
		flex-direction: column !important;
		align-items: stretch !important;
		gap: 10px !important;
	}

	.elementor-39 form:has(input[name="newsletter-email"]) > input,
	.elementor-39 form:has(input[name="newsletter-email"]) > button {
		flex: 0 0 auto !important;
		width: 100% !important;
	}
}

/* Таблет/малък лаптоп (1025–1399px): формата взима повече място — инфо колоната е ~38%. */
@media (min-width: 1025px) and (max-width: 1399px) {
	.elementor-39 [data-id="361e1cd1"] {
		flex: 0 0 38% !important;
		width: 38% !important;
	}

	.elementor-39 [data-id="60dfe2b4"] {
		font-size: clamp(24px, calc(1.6vw + 6px), 30px) !important;
	}
}

/* 1025–1279px: две колони правят формата твърде тясна — един под друг, като на таблет. */
@media (min-width: 1025px) and (max-width: 1279px) {
	.elementor-39 [data-id="577dbc35"] {
		flex-direction: column !important;
		align-items: stretch !important;
	}

	.elementor-39 [data-id="361e1cd1"],
	.elementor-39 [data-id="45047bec"] {
		flex: 1 1 auto !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.elementor-39 [data-id="60dfe2b4"] {
		font-size: 32px !important;
	}
}

/* Телефон: зеленото каре е на цялата ширина на екрана и стига до следващата секция;
   в бял контейнер остава само формата. */
@media (max-width: 767px) {
	.elementor-39 [data-id="28b670d2"] {
		padding-bottom: 0 !important;
	}

	.elementor-39 [data-id="577dbc35"] {
		align-self: stretch !important;
		box-sizing: border-box !important;
		width: calc(100% + 32px) !important;
		max-width: none !important;
		margin-inline: -16px !important;
		border-radius: 0 !important;
		padding: 32px 16px 48px !important;
	}

	.elementor-39 [data-id="361e1cd1"],
	.elementor-39 [data-id="45047bec"] {
		box-sizing: border-box !important;
		width: 100% !important;
		max-width: 100% !important;
		margin-inline: 0 !important;
	}
}

/* Първа стъпка: избор на тема с боксове (виж kontakti.js). */
.elementor-39 .htp-cf-choice,
.elementor-39 .htp-cf-back {
	display: none;
}

.elementor-39 .htp-cf-choosing > .htp-cf-choice {
	display: block;
}

.elementor-39 .htp-cf-choosing > form[data-form-name="contact"] {
	display: none !important;
}

.elementor-39 :not(.htp-cf-choosing) > .htp-cf-back {
	display: inline-block;
	align-self: flex-start;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	background: none;
	font: 500 14px/1.4 Raleway, sans-serif;
	color: #008990;
	cursor: pointer;
}

.elementor-39 .htp-cf-back:hover {
	text-decoration: underline;
}

.elementor-39 .htp-cf-choice__label {
	margin: 0 0 12px;
	font: 500 14px/1.4 Raleway, sans-serif;
	color: #2e384d;
}

.elementor-39 .htp-cf-choice__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.elementor-39 .htp-cf-choice__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-height: 128px;
	padding: 20px 48px 20px 20px;
	border: 1px solid #d1d7e5;
	border-radius: 8px;
	background: #fff;
	font-family: Raleway, sans-serif;
	text-align: left;
	text-decoration: none;
	color: #2e384d;
	cursor: pointer;
	transition: border-color .2s, box-shadow .2s, background-color .2s, color .2s;
}

.elementor-39 .htp-cf-choice__item:hover,
.elementor-39 .htp-cf-choice__item:focus,
.elementor-39 .htp-cf-choice__item:focus-visible,
.elementor-39 .htp-cf-choice__item:active {
	border-color: #00b0b5;
	box-shadow: 0 0 0 1px #00b0b5;
	outline: none;
	background: #eaf5f4;
	color: #2e384d;
}

/* „Друго“ е <button> — без розовия hover/фон на темата за бутони. */
.elementor-39 button.htp-cf-choice__item,
.elementor-39 button.htp-cf-back {
	text-transform: none;
	letter-spacing: normal;
}

.elementor-39 button.htp-cf-back:hover,
.elementor-39 button.htp-cf-back:focus {
	background: none;
	color: #008990;
}

/* Формата след избора — подравнена с „← Обратно към избора“ и с боксовете. */
.elementor-39 .htp-cf-back ~ form[data-form-name="contact"] {
	padding-inline: 0 !important;
}

.elementor-39 .htp-cf-choice__title {
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}

.elementor-39 .htp-cf-choice__text {
	font-size: 14px;
	line-height: 1.45;
	color: #5b6478;
}

.elementor-39 .htp-cf-choice__arrow {
	position: absolute;
	right: 20px;
	bottom: 18px;
	display: flex;
	line-height: 1;
	color: #008990;
	transition: transform .2s;
}

@media (max-width: 767px) {
	.elementor-39 .htp-cf-choice__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.elementor-39 .htp-cf-choice__item {
		min-height: 0;
	}
}

.elementor-39 [data-id="45047bec"] {
	scroll-margin-top: 120px;
}
