/* Request a Quote form + page layout */

.jbs-quote-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.75fr);
	gap: 40px 48px;
	align-items: start;
}

.jbs-quote-layout__rail {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.jbs-quote-rail-card {
	margin: 0;
}

.jbs-quote-hours {
	margin: 0;
	padding-left: 1.1em;
}

.jbs-quote-hours li {
	margin: 0.25em 0;
}

.jbs-quote-form {
	position: relative;
	margin-top: 8px;
}

.jbs-quote-form__fields {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.jbs-quote-form__row--2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.jbs-quote-form__field label,
.jbs-quote-form__fieldset legend {
	display: block;
	margin-bottom: 6px;
	color: var(--jbs-navy, #010131);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.jbs-quote-form__field input,
.jbs-quote-form__field textarea {
	width: 100%;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid var(--jbs-gray, #d4d4d4);
	border-radius: 10px;
	background: #fff;
	color: var(--jbs-navy, #010131);
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	transition: border-color 220ms ease, box-shadow 220ms ease;
}

.jbs-quote-form__field textarea {
	resize: vertical;
	min-height: 88px;
}

.jbs-quote-form__field input:focus,
.jbs-quote-form__field textarea:focus {
	outline: none;
	border-color: var(--jbs-royal, #050090);
	box-shadow: 0 0 0 3px rgba(5, 0, 144, 0.12);
}

.jbs-quote-form__fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.jbs-quote-form__radios {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.jbs-quote-form__radio {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border: 1px solid var(--jbs-gray, #d4d4d4);
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	color: var(--jbs-navy, #010131);
	cursor: pointer;
	transition: border-color 220ms ease, background 220ms ease;
}

.jbs-quote-form__radio:has(input:checked) {
	border-color: var(--jbs-royal, #050090);
	background: #f0f0fa;
}

.jbs-quote-form__radio input {
	margin: 0;
	accent-color: var(--jbs-royal, #050090);
}

.jbs-quote-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.jbs-quote-form__error {
	margin: 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: #fde8e8;
	color: #8f0105;
	font-size: 14px;
	font-weight: 600;
}

.jbs-quote-form__submit {
	align-self: flex-start;
	border: 0;
	cursor: pointer;
}

.jbs-quote-form__submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

.jbs-quote-form__fineprint {
	margin: 0;
	color: #4b5563;
	font-size: 13px;
	font-weight: 500;
}

.jbs-quote-form__fineprint a {
	color: var(--jbs-red, #b20106);
	font-weight: 700;
	text-decoration: none;
}

.jbs-quote-form__fineprint a:hover {
	text-decoration: underline;
}

.jbs-quote-form.is-sent .jbs-quote-form__fields {
	display: none;
}

.jbs-quote-form__success {
	padding: 28px 24px;
	border: 1px solid var(--jbs-gray, #d4d4d4);
	border-radius: 16px;
	background: #f7f8fa;
}

.jbs-quote-form__success h3 {
	margin: 0 0 8px;
	color: var(--jbs-navy, #010131);
	font-size: 22px;
}

.jbs-quote-form__success p {
	margin: 0 0 10px;
	color: #4b5563;
}

.jbs-quote-form__success[hidden] {
	display: none !important;
}

.jbs-quote-calc-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

@media (max-width: 900px) {
	.jbs-quote-layout {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.jbs-quote-layout__rail {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 14px;
	}
}

@media (max-width: 640px) {
	.jbs-quote-form__row--2 {
		grid-template-columns: 1fr;
	}

	.jbs-quote-layout__rail {
		grid-template-columns: 1fr;
	}

	.jbs-quote-calc-cta {
		flex-direction: column;
		align-items: flex-start;
	}
}
