.wpcf7 .cf7-confirm-step[hidden],
.wpcf7 .cf7-confirm-fallback[hidden],
.wpcf7 .cf7-confirm-button[hidden] {
	display: none !important;
}

.wpcf7 .cf7-confirm-step:focus {
	outline: none;
}

.wpcf7 .cf7-input-step,
.wpcf7 .cf7-confirm-step {
	box-sizing: border-box;
	width: 100%;
	max-width: 800px;
	margin-right: auto;
	margin-left: auto;
	font-size: 14px;
}

.wpcf7 .cf7-form-row {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	align-items: center;
	gap: 24px;
	margin: 0 0 22px;
}

.wpcf7 .cf7-form-row--textarea {
	align-items: start;
}

.wpcf7 .cf7-form-label {
	font-weight: 700;
}

.wpcf7 .cf7-required {
	color: #dc3232;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

.wpcf7 .cf7-required::before {
	content: "(";
}

.wpcf7 .cf7-required::after {
	content: ")";
}

.wpcf7 .cf7-form-row--textarea .cf7-form-label {
	padding-top: 16px;
}

.wpcf7 .cf7-form-row .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.wpcf7 .cf7-form-row input[type="text"],
.wpcf7 .cf7-form-row input[type="email"],
.wpcf7 .cf7-form-row input[type="tel"],
.wpcf7 .cf7-form-row input[type="url"],
.wpcf7 .cf7-form-row input[type="number"],
.wpcf7 .cf7-form-row input[type="date"],
.wpcf7 .cf7-form-row select,
.wpcf7 .cf7-form-row textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	border: 1px solid #b8b8b8;
	border-radius: 4px;
	background: #fff;
	font: inherit;
}

.wpcf7 .cf7-form-row input[type="text"],
.wpcf7 .cf7-form-row input[type="email"],
.wpcf7 .cf7-form-row input[type="tel"],
.wpcf7 .cf7-form-row input[type="url"],
.wpcf7 .cf7-form-row input[type="number"],
.wpcf7 .cf7-form-row input[type="date"],
.wpcf7 .cf7-form-row select {
	min-height: 56px;
	padding: 12px 16px;
}

.wpcf7 .cf7-form-row textarea {
	min-height: 180px;
	padding: 16px;
	resize: vertical;
}

.wpcf7 .cf7-form-row input:focus,
.wpcf7 .cf7-form-row select:focus,
.wpcf7 .cf7-form-row textarea:focus {
	border-color: #333;
	outline: 2px solid rgba(51, 51, 51, 0.18);
	outline-offset: 1px;
}

.wpcf7 .cf7-confirm-heading {
	margin: 0 0 24px;
	font-size: 22px;
	font-weight: 700;
	text-align: center;
}

.wpcf7 .cf7-confirm-list {
	margin: 0 0 32px;
	border-top: 1px solid #d4d4d4;
}

.wpcf7 .cf7-confirm-list__row {
	display: grid;
	grid-template-columns: minmax(140px, 28%) minmax(0, 1fr);
	margin: 0;
	border-bottom: 1px solid #d4d4d4;
}

.wpcf7 .cf7-confirm-list dt,
.wpcf7 .cf7-confirm-list dd {
	margin: 0;
	padding: 18px 20px;
}

.wpcf7 .cf7-confirm-list dt {
	background: #f5f5f5;
	font-weight: 700;
}

.wpcf7 .cf7-confirm-list dd {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.wpcf7 .cf7-confirm-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
	margin-top: 30px;
}

.wpcf7 .cf7-confirm-button,
.wpcf7 .cf7-confirm-back,
.wpcf7 .cf7-confirm-step .wpcf7-submit {
	box-sizing: border-box;
	min-width: 240px;
	min-height: 56px;
	padding: 12px 24px;
	border: 1px solid #333;
	border-radius: 0;
	cursor: pointer;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	transition: opacity 0.2s ease;
}

.wpcf7 .cf7-confirm-button,
.wpcf7 .cf7-confirm-step .wpcf7-submit {
	background: #333;
	color: #fff;
}

.wpcf7 .cf7-confirm-back {
	background: #fff;
	color: #333;
}

.wpcf7 .cf7-confirm-button:hover,
.wpcf7 .cf7-confirm-back:hover,
.wpcf7 .cf7-confirm-step .wpcf7-submit:hover {
	opacity: 0.7;
}

.wpcf7 .cf7-confirm-button:focus-visible,
.wpcf7 .cf7-confirm-back:focus-visible,
.wpcf7 .cf7-confirm-step .wpcf7-submit:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.wpcf7 .cf7-confirm-error,
.wpcf7 .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	color: #dc3232;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.6;
}

@media (max-width: 640px) {
	.wpcf7 .cf7-form-row {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
		margin-bottom: 20px;
	}

	.wpcf7 .cf7-form-row--textarea .cf7-form-label {
		padding-top: 0;
	}

	.wpcf7 .cf7-confirm-list__row {
		display: block;
	}

	.wpcf7 .cf7-confirm-list dt,
	.wpcf7 .cf7-confirm-list dd {
		padding: 14px 16px;
	}

	.wpcf7 .cf7-confirm-button,
	.wpcf7 .cf7-confirm-back,
	.wpcf7 .cf7-confirm-step .wpcf7-submit {
		width: 100%;
		min-width: 0;
	}
}
