/* Travelight Core: contact form layout. Colors and inputs follow the active theme. */

.tl-form-wrap {
	margin: 1.5em 0;
}

.tl-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 20px;
}

.tl-form__field {
	margin: 0 0 18px;
}

.tl-form__field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.tl-form__field input,
.tl-form__field textarea {
	box-sizing: border-box;
	width: 100%;
}

.tl-form__required {
	color: #b42318;
}

.tl-form__optional {
	font-weight: 400;
	opacity: 0.7;
}

.tl-form__about {
	margin: 0 0 18px;
	padding: 12px 16px;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.04);
	font-weight: 600;
}

.tl-form__error {
	margin: 6px 0 0;
	color: #b42318;
	font-size: 0.9em;
}

.tl-form [aria-invalid="true"] {
	border-color: #b42318;
}

.tl-form__notice {
	margin-bottom: 20px;
	padding: 14px 18px;
	border-left: 4px solid;
	border-radius: 6px;
}

.tl-form__notice--success {
	border-color: #1f7a4d;
	background: #ecf7f0;
	color: #14532d;
}

.tl-form__notice--error {
	border-color: #b42318;
	background: #fdeceb;
	color: #7a1a12;
}

.tl-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tl-form__submit {
	margin: 0;
}

@media (max-width: 600px) {
	.tl-form__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}
