/* Homepage additions kept in the existing Cherry theme visual language. */
.carship-hero-trust {
	background: #fff;
	border-bottom: 1px solid #eaf2f6;
	border-top: 1px solid #eaf2f6;
	padding: 24px 15px 28px;
	text-align: center;
}
.carship-hero-trust__list {
	align-items: stretch;
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin: 0 auto;
	max-width: 1080px;
	padding: 0;
}
.carship-hero-trust__list li {
	color: #282e3e;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	padding: 8px 10px;
}
.carship-hero-trust__list li span { color: #e21f2f; margin-right: 4px; }
.carship-hero-trust__list li small { color: #525252; display: block; font-size: 12px; font-weight: 400; margin-top: 3px; }
.carship-hero-trust__cta { margin-top: 18px; }
.static-simple-slider1 .sp-layer h3 { margin: 18px auto 0; max-width: 900px; }
.static-simple-slider1 .sp-layer h3 small { display: inline; font-size: clamp(16px, 2vw, 24px); line-height: 1.35; }

.carship-quote-form {
	background: #fff;
	border: 1px solid #eaf2f6;
	box-shadow: 0 8px 26px rgba(40, 46, 62, .08);
	margin: 0 auto;
	max-width: 960px;
	padding: 34px 38px 38px;
	scroll-margin-top: 90px;
	transition: box-shadow .25s ease, border-color .25s ease;
}
.carship-quote-form.is-targeted { border-color: #e21f2f; box-shadow: 0 10px 30px rgba(226, 31, 47, .18); }
.carship-quote-form__heading { margin: 0 auto 26px; max-width: 720px; text-align: center; }
.carship-quote-form__heading h2 { letter-spacing: 1px; margin: 0 0 10px; }
.carship-quote-form__heading p { margin: 0; }
.carship-progress { align-items: center; display: flex; margin: 0 auto 28px; max-width: 650px; }
.carship-progress__item { align-items: center; color: #777; display: flex; flex-direction: column; font-size: 11px; gap: 6px; min-width: 78px; text-align: center; }
.carship-progress__item span { align-items: center; border: 2px solid #b7b7b7; border-radius: 50%; display: flex; height: 30px; justify-content: center; width: 30px; }
.carship-progress__item.is-active, .carship-progress__item.is-complete { color: #282e3e; }
.carship-progress__item.is-active span, .carship-progress__item.is-complete span { background: #e21f2f; border-color: #e21f2f; color: #fff; }
.carship-progress__line { background: #d9e3e8; flex: 1; height: 2px; }
.carship-form__step { border: 0; margin: 0; min-width: 0; padding: 0; }
.carship-form__step[hidden] { display: none; }
.carship-form__step legend { color: #282e3e; font-size: 24px; font-weight: 700; margin-bottom: 20px; padding: 0; }
.carship-form__fields { display: grid; gap: 18px; }
.carship-form__fields--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.carship-form__fields--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.carship-form__fields--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.carship-form label { color: #282e3e; display: block; font-weight: 700; }
.carship-form input, .carship-form select { background: #fff; border: 1px solid #ccd8e4; border-radius: 3px; box-sizing: border-box; color: #282e3e; display: block; height: 44px; margin-top: 7px; padding: 8px 10px; width: 100%; }
.carship-form select:disabled { background: #f3f6f8; color: #7a8792; cursor: not-allowed; }
.carship-form input:focus, .carship-form select:focus { border-color: #e21f2f; box-shadow: 0 0 0 2px rgba(226, 31, 47, .12); outline: 0; }
.carship-form input.is-invalid, .carship-form select.is-invalid, .carship-form__choice-group.has-error { border-color: #e21f2f; }
.carship-form__field-error { color: #a91522; display: block; font-size: 12px; font-weight: 400; line-height: 1.35; margin-top: 5px; min-height: 0; }
.carship-form__field-error:empty { display: none; }
.carship-form__choice-group { border: 1px solid transparent; border-radius: 3px; margin-top: 18px; padding: 8px 10px 5px; }
.carship-form__choice-label { display: block; font-weight: 700; margin-bottom: 7px; }
.carship-form__choice { align-items: center; display: inline-flex !important; font-weight: 400 !important; margin: 0 18px 0 0; }
.carship-form__choice input { display: inline-block; height: auto; margin: 0 6px 0 0; padding: 0; width: auto; }
.carship-form__step > label { margin-top: 18px; max-width: 300px; }
.carship-form__footer { align-items: center; display: flex; gap: 12px; justify-content: flex-end; margin-top: 25px; }
.carship-form__required { color: #777; font-size: 12px; margin-right: auto; }
.carship-form__consent { color: #777; font-size: 12px; line-height: 1.5; margin: 20px 0 0; }
.carship-form__consent--checkbox { align-items: flex-start; display: flex !important; font-weight: 400 !important; max-width: none !important; }
.carship-form__consent--checkbox input { flex: 0 0 auto; height: auto; margin: 2px 8px 0 0; width: auto; }
.carship-form__consent-error { margin-left: 22px; }
.carship-form__status { display: none; margin-top: 18px; padding: 12px; }
.carship-form__status.is-error { background: #fff0f1; color: #a91522; display: block; }
.carship-form__status.is-success { background: #eaf8ef; color: #126c35; display: block; }
.carship-form__status.is-loading { background: #f3f6f8; color: #282e3e; display: block; }
.carship-form__honeypot { height: 1px !important; left: -9999px; opacity: 0; position: absolute; top: -9999px; width: 1px !important; }
.carship-header-quote { background: #e21f2f; border: 2px solid #e21f2f; color: #fff !important; display: inline-block; font-size: 13px; font-weight: 700; margin: 12px 0 0; padding: 8px 14px; text-decoration: none !important; text-transform: uppercase; }
.carship-header-quote:hover, .carship-header-quote:focus { background: #282e3e; border-color: #282e3e; color: #fff !important; }
.carship-reference-block { border-top: 1px solid #eaf2f6; margin: 42px auto; max-width: 1170px; padding: 50px 15px 10px; scroll-margin-top: 90px; text-align: center; }
.carship-reference-block h2 { letter-spacing: 1px; margin: 0 0 12px; }
.carship-reference-block__intro { margin: 0 0 28px; }
.carship-reference-grid { display: grid; gap: 30px; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: left; }
.carship-reference-grid article { border-top: 3px solid #e21f2f; padding-top: 18px; }
.carship-reference-grid article > span { color: #e21f2f; font-size: 16px; font-weight: 700; }
.carship-reference-grid h3 { font-size: 20px; letter-spacing: 0; line-height: 1.25; margin: 12px 0 10px; }
.carship-reference-grid p { margin: 0; }
.carship-reference-block__cta { margin: 30px 0 0; }
.carship-reference-faq { max-width: 900px; }
.carship-reference-faq__list { border-top: 1px solid #d9e3e8; text-align: left; }
.carship-reference-faq details { border-bottom: 1px solid #d9e3e8; }
.carship-reference-faq summary {
	align-items: center;
	color: #282e3e;
	cursor: pointer;
	display: flex;
	font-weight: 700;
	justify-content: space-between;
	list-style: none;
	min-height: 58px;
	padding: 16px 48px 16px 4px;
	position: relative;
}
.carship-reference-faq summary::-webkit-details-marker { display: none; }
.carship-reference-faq summary::after {
	border-bottom: 2px solid #282e3e;
	border-right: 2px solid #282e3e;
	content: '';
	height: 9px;
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%) rotate(45deg);
	transition: border-color .2s ease, transform .2s ease;
	width: 9px;
}
.carship-reference-faq details[open] summary::after {
	transform: translateY(-50%) rotate(225deg);
}
.carship-reference-faq summary:hover,
.carship-reference-faq summary:focus-visible { color: #e21f2f; }
.carship-reference-faq summary:focus-visible {
	box-shadow: inset 0 0 0 2px rgba(226, 31, 47, .18);
	outline: 0;
}
.carship-reference-faq summary:hover::after,
.carship-reference-faq summary:focus-visible::after { border-color: #e21f2f; }
.carship-reference-faq p { margin: 0; padding: 0 48px 18px 4px; }
@media (min-width: 768px) {
	/* Keep the phone and CTA together instead of creating a second header row. */
	#header .sidebar-header { align-items: center; display: flex; gap: 10px; justify-content: flex-end; }
	#header .sidebar-header .widget { flex: 0 0 auto; margin: 0; }
	#header .sidebar-header .border-for-phone { margin-top: 0; }
	#header .carship-header-quote { flex: 0 0 auto; margin: 0; white-space: nowrap; }
}
@media (min-width: 992px) {
	/* Give the header CTA enough room to sit beside the phone widget. */
	#static-area-header-bottom > .container > .row {
		align-items: center;
		display: flex;
	}
	#header .static-header-menu { width: 50%; }
	#header .static-header-sidebar { width: 33.333333%; }
}
@media (min-width: 1200px) {
	/* On the full desktop header, keep all navigation labels on one line too. */
	#header .static-header-menu { width: 49%; }
	#header .static-header-sidebar { width: 34.333333%; }
}
@media (max-width: 767px) {
	/* The mobile menu is a separate fixed panel, so mirror the desktop
	 * phone/CTA pair there instead of relying on the hidden header sidebar. */
	.rd-mobilepanel > .site-title {
		box-sizing: border-box;
		margin: 0 0 0 60px;
		max-width: calc(100% - 170px);
		height: 56px;
		display: flex;
		align-items: center;
	}
	.rd-mobilepanel > .site-title img {
		display: block;
		height: auto;
		max-width: 100%;
	}
	/* The old three-dot sidebar toggle duplicates the mobile actions and
	 * leaves too little room for the CTA. */
	.rd-mobilepanel > .rd-button-toggle { display: none; }
	.mobile-header-actions {
		position: absolute;
		top: 0;
		right: 8px;
		height: 56px;
		display: flex;
		align-items: center;
		gap: 6px;
		white-space: nowrap;
	}
	.mobile-header-actions a {
		box-sizing: border-box;
		text-decoration: none !important;
	}
	.mobile-custom-link {
		position: relative;
		top: auto;
		right: auto;
		padding: 0 2px 0 22px;
		color: #fff !important;
		font-size: 12px;
		font-weight: 700;
		line-height: 28px;
	}
	.mobile-custom-link::before {
		top: 50%;
		left: 0;
		width: 18px;
		height: 18px;
		transform: translateY(-50%);
	}
	.mobile-quote-link {
		border: 1px solid #e21f2f;
		padding: 6px 8px;
		background: #e21f2f;
		color: #fff !important;
		font-size: 11px;
		font-weight: 700;
		line-height: 16px;
		text-transform: uppercase;
	}
	.mobile-quote-link:focus,
	.mobile-quote-link:hover {
		border-color: #fff;
		background: #fff;
		color: #282e3e !important;
	}
	.carship-hero-trust { padding: 20px 15px 24px; }
	.carship-hero-trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.carship-hero-trust__list li { font-size: 14px; padding: 7px 4px; }
	.carship-quote-form { padding: 25px 18px; }
	.carship-form__fields--two, .carship-form__fields--three, .carship-form__fields--four, .carship-reference-grid { grid-template-columns: 1fr; }
	.carship-form__choice-group { margin-top: 14px; }
	.carship-form__footer { align-items: stretch; flex-wrap: wrap; }
	.carship-form__required { flex: 1 1 100%; }
	.carship-form__footer .cherry-btn { flex: 1; }
	.carship-header-quote { display: block; margin: 10px 0 0; text-align: center; }
}
@media (max-width: 470px) {
	.rd-mobilepanel > .site-title { max-width: calc(100% - 158px); }
	.mobile-custom-link {
		width: 20px;
		padding: 0 0 0 20px;
		font-size: 0;
	}
	.mobile-quote-link { padding-left: 7px; padding-right: 7px; }
}
@media (max-width: 360px) {
	.rd-mobilepanel > .site-title { max-width: 100px; }
}
@media (min-width: 768px) and (max-width: 991px) {
	.carship-hero-trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.carship-form__fields--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) and (max-width: 1300px) {
	#menu-primary a { font-size: 17px; }
}

/* Keep the complete primary navigation on one line at medium desktop widths. */
@media (min-width: 768px) and (max-width: 1199px) {
	#menu-primary-items { white-space: nowrap; }
	#menu-primary-items .menu-item { margin-left: 0; }
	#menu-primary-items .menu-item a {
		font-size: 15px !important;
		letter-spacing: 0;
		padding-left: 3px !important;
		padding-right: 3px !important;
	}
}

/* Never let a desktop navigation item create a second row. */
@media (min-width: 768px) {
	#menu-primary-items {
		display: flex;
		flex-wrap: nowrap;
		white-space: nowrap;
	}
	#menu-primary-items .menu-item {
		float: none;
		flex: 0 0 auto;
		margin-left: 0;
	}
	#menu-primary-items .menu-item a { white-space: nowrap; }
}

@media (min-width: 768px) and (max-width: 1300px) {
	#menu-primary a { font-size: 15px !important; }
}

/* The base Cherry theme adds a top margin to adjacent buttons; it misaligns
 * the Back and Continue controls in the quote form. */
.carship-form__footer .cherry-btn + .cherry-btn { margin-top: 0; }
