/**
 * Contact Form 7: одна строка — имя, телефон, кнопка с иконкой самолётика.
 * Обёртка формы: class="cf7-one-line" на корневом элементе в шаблоне CF7.
 */

.wpcf7 .cf7-one-line {
	display: flex !important;
	flex-direction: row;
	align-items: stretch;
	flex-wrap: nowrap;
	gap: 0.75rem;
	width: 100%;
	max-width: 100%;
}

.wpcf7 .cf7-one-line .cf7-one-line__fields {
	display: flex !important;
	flex: 1 1 auto;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 0.75rem;
	min-width: 0;
}

.wpcf7 .cf7-one-line p {
	display: contents !important;
	margin: 0 !important;
	padding: 0 !important;
}

.wpcf7 .cf7-one-line .wpcf7-form-control-wrap {
	display: block !important;
	flex: 1 1 0;
	min-width: 0;
	margin: 0 !important;
}

.wpcf7 .cf7-one-line .cf7-one-line__input {
	width: 100% !important;
	height: 100% !important;
	min-height: 48px;
	padding: 0.65rem 1rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	font-size: 1rem;
	line-height: 1.3;
	box-sizing: border-box;
}

.wpcf7 .cf7-one-line .cf7-one-line__input:focus {
	outline: 2px solid rgba(0, 0, 0, 0.2);
	outline-offset: 1px;
}

.wpcf7 .cf7-one-line .cf7-one-line__submit {
	flex: 0 0 auto;
	width: 52px !important;
	min-width: 52px !important;
	height: 48px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 8px !important;
	cursor: pointer;
	background-color: #1a1a2e !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M2.01 21L23 12 2.01 3 2 10l15 2-15 2z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 22px 22px;
	color: transparent !important;
	text-indent: -9999px;
	overflow: hidden;
	white-space: nowrap;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.wpcf7 .cf7-one-line .cf7-one-line__submit:hover {
	background-color: #2d2d44 !important;
}

.wpcf7 .cf7-one-line .cf7-one-line__submit:active {
	transform: scale(0.96);
}

.wpcf7 .cf7-one-line .wpcf7-spinner {
	position: absolute;
}

@media (max-width: 600px) {
	.wpcf7 .cf7-one-line,
	.wpcf7 .cf7-one-line .cf7-one-line__fields {
		flex-wrap: wrap;
	}

	.wpcf7 .cf7-one-line .cf7-one-line__submit {
		width: 100% !important;
		min-width: 100% !important;
		height: 48px !important;
	}
}
