/**
 * Contact form page styles.
 */

.c-contact-form {
	width: min(100%, 960px);
	margin-right: auto;
	margin-left: auto;
}

.c-form-row {
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr);
	gap: 32px;
	align-items: center;
	margin-bottom: 38px;
}

.c-form-label,
.c-form-privacy-title {
	display: flex;
	gap: 12px;
	align-items: center;
	white-space: nowrap;
	min-height: 46px;
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.05em;
}

.c-required {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	padding: 2px;
	color: #fff;
	background-color: #111;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: 0.02em;
}

.c-form-field,
.c-form-field .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.c-form-name {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.c-form-name p {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
}

.c-form-name br {
	display: none;
}

.c-form-name .wpcf7-form-control-wrap {
	min-width: 0;
}

.c-contact-form input[type="text"],
.c-contact-form input[type="email"],
.c-contact-form input[type="tel"],
.c-contact-form select,
.c-contact-form textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 46px;
	padding: 12px 16px;
	color: #111;
	background-color: rgba(255, 255, 255, 0.72);
	border: 1px solid #ddd;
	border-radius: 4px;
	font: inherit;
	font-size: 15px;
	line-height: 1.5;
	letter-spacing: 0.05em;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.c-contact-form select {
	appearance: none;
	padding-right: 44px;
	background-image: linear-gradient(45deg, transparent 50%, #c7c7c7 50%), linear-gradient(135deg, #c7c7c7 50%, transparent 50%);
	background-repeat: no-repeat;
	background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
	background-size: 6px 6px, 6px 6px;
}

.c-contact-form textarea {
	min-height: 104px;
	resize: vertical;
}

.c-contact-form input::placeholder,
.c-contact-form textarea::placeholder {
	color: #c9c9c9;
	opacity: 1;
}

.c-contact-form input:focus,
.c-contact-form select:focus,
.c-contact-form textarea:focus {
	border-color: #74c8d6;
	outline: 0;
	box-shadow: 0 0 0 2px rgba(116, 200, 214, 0.22);
}

.c-form-privacy {
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	margin-top: 44px;
}

.c-form-privacy-title {
	min-height: auto;
}

.c-form-privacy-box {
	max-height: 104px;
	padding: 20px 18px;
	overflow-y: auto;
	background-color: rgba(255, 255, 255, 0.72);
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.8;
	letter-spacing: 0.04em;
}

.c-form-privacy-box strong {
	display: inline-block;
	margin-bottom: 10px;
	font-size: 14px;
}

.c-form-acceptance {
	grid-column: 1 / -1;
	margin-top: 28px;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.c-form-acceptance .wpcf7-list-item {
	margin: 0;
}

.c-form-acceptance label {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	cursor: pointer;
}

.c-form-acceptance input[type="checkbox"] {
	width: 10px;
	height: 10px;
	margin: 0;
	accent-color: #111;
}

.c-form-submit {
	position: relative;
	margin-top: 36px;
	text-align: center;
}

.c-form-submit .wpcf7-spinner {
	position: absolute;
	top: 50%;
	left: calc(50% + 123px);
	margin: 0;
	transform: translateY(-50%);
}

.c-contact-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 230px;
	min-height: 58px;
	padding: 0 64px 0 40px;
	color: #fff;
	background-color: #111;
	background-image: url("../../img/icon_arrow.svg");
	background-repeat: no-repeat;
	background-position: right 28px center;
	background-size: 18px 18px;
	border: 0;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.c-contact-form input[type="submit"]:hover {
	opacity: 0.8;
}

.c-contact-form .wpcf7-not-valid-tip {
	margin-top: 8px;
	font-size: 12px;
}

.c-contact-form .wpcf7-response-output {
	margin: 28px 0 0;
	padding: 14px 18px;
	font-size: 13px;
}

@media (max-width: 767px) {
	.c-contact-form {
		width: 100%;
	}

	.c-contact-form p {
		margin-top: 0;
		margin-bottom: 10px;
	}

	.c-form-row {
		display: block;
		margin-bottom: 18px;
	}

	.c-form-label,
	.c-form-privacy-title {
		gap: 8px;
		min-height: 0;
		margin-bottom: 4px;
		font-size: 13px;
		line-height: 1.45;
	}

	.c-required {
		min-width: 30px;
		padding: 2px;
		font-size: 11px;
	}

	.c-form-name {
		gap: 8px;
	}

	.c-form-name p {
		gap: 8px;
	}

	.c-contact-form input[type="text"],
	.c-contact-form input[type="email"],
	.c-contact-form input[type="tel"],
	.c-contact-form select,
	.c-contact-form textarea {
		min-height: 48px;
		padding: 13px 14px;
		font-size: 16px;
	}

	.c-contact-form textarea {
		min-height: 96px;
	}

	.c-form-privacy {
		display: block;
		margin-top: 28px;
	}

	.c-form-privacy-box {
		max-height: 112px;
		padding: 18px 14px;
		border-radius: 8px;
		font-size: 12px;
	}

	.c-form-privacy-box strong {
		margin-bottom: 12px;
		font-size: 12px;
	}

	.c-form-acceptance {
		margin-top: 22px;
		font-size: 12px;
	}

	.c-form-submit {
		margin-top: 22px;
	}

	.c-form-submit .wpcf7-spinner {
		left: calc(50% + 96px);
	}

	.c-contact-form input[type="submit"] {
		width: min(100%, 176px);
		min-width: 0;
		min-height: 46px;
		padding: 0 42px 0 24px;
		background-position: right 22px center;
		background-size: 14px 14px;
		border-radius: 4px;
		font-size: 12px;
		letter-spacing: 0.06em;
	}
}
