/* Inquiry form section. */

.form-section {
	padding: 96px 80px;
	background: var(--navy-nav);

	.section-label {
		color: var(--gold-mid);
	}

	.section-headline {
		color: var(--white);
	}

	.section-sub {
		margin-bottom: 40px;
		color: rgb(255 255 255 / 65%);
	}

	@media (max-width: 1279.98px) {
		padding: 80px 48px;
	}

	@media (max-width: 767.98px) {
		padding: 56px 16px;
	}
}

.form-inner {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.33fr);
	gap: 80px;
	align-items: start;

	@media (max-width: 1279.98px) {
		grid-template-columns: 1fr;
		gap: 40px;
	}
}

.form-qualifiers {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;

	li {
		display: flex;
		align-items: flex-start;
		gap: 8px;
		color: rgb(255 255 255 / 75%);
		font-size: 15px;
		line-height: 1.6;
	}

	span {
		flex: 0 0 16px;
		margin-top: 4px;
		color: var(--gold-mid);
	}
}

.form-fields {
	display: grid;
	gap: 20px;
}

.form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;

	@media (max-width: 767.98px) {
		grid-template-columns: 1fr;
	}
}

.form-group {
	display: grid;
	gap: 8px;

	label {
		color: rgb(255 255 255 / 65%);
		font-size: 11px;
		font-weight: 600;
		letter-spacing: 0.08em;
		line-height: 1.6;
		text-transform: uppercase;
	}

	input,
	textarea {
		width: 100%;
		padding: 12px 16px;
		border: 1px solid rgb(255 255 255 / 12%);
		border-radius: 0;
		background: rgb(255 255 255 / 6%);
		color: var(--white);
		font-size: 15px;
		font-weight: 600;
		line-height: 1.6;
		transition: border-color 0.2s ease, background-color 0.2s ease;
	}

	input:hover,
	textarea:hover {
		background: rgb(255 255 255 / 12%);
	}

	input:not(:placeholder-shown),
	textarea:not(:placeholder-shown) {
		border-color: rgb(255 255 255 / 65%);
		background: rgb(255 255 255 / 25%);
	}

	input:focus,
	textarea:focus {
		border-color: rgb(255 255 255 / 35%);
		background: rgb(255 255 255 / 12%);
	}

	input:user-invalid,
	textarea:user-invalid {
		border-color: rgb(247 59 59 / 65%);
	}

	input::placeholder,
	textarea::placeholder {
		color: rgb(255 255 255 / 50%);
	}

	input:focus::placeholder,
	textarea:focus::placeholder {
		color: rgb(255 255 255 / 75%);
	}

	textarea {
		min-height: 120px;
		resize: vertical;
	}
}

.form-group small {
	color: rgb(255 255 255 / 55%);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.form-submit {
	justify-self: start;
	margin-top: 8px;

	&::after {
		margin-left: 8px;
		content: "→";
	}

	&:disabled {
		cursor: not-allowed;
		opacity: 0.55;
	}
}

.honeypot {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-status {
	margin: 18px 0 0;
	color: var(--white);
	font-weight: 600;
}

.inquiry-form.is-complete .form-fields {
	display: none;
}
