/**
 * IBC Smart Quote Form
 * Scoped so the Elementor page and other site components remain untouched.
 */

.ibc-quote {
	--ibc-blue: #0553cd;
	--ibc-teal: #043033;
	--ibc-lime: #88de13;
	--ibc-ink: #143437;
	--ibc-muted: #53666a;
	--ibc-border: #69727d;
	--ibc-soft-border: #d9e2e2;
	--ibc-soft: #f5f8f8;
	--ibc-error: #a2202e;
	--ibc-success: #17763d;
	box-sizing: border-box;
	max-width: 710px;
	margin: 0 auto;
	color: var(--ibc-ink);
	font-family: Inter, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

.ibc-quote *,
.ibc-quote *::before,
.ibc-quote *::after {
	box-sizing: border-box;
}

.ibc-quote [hidden] {
	display: none !important;
}

.ibc-quote__intro {
	margin: 0 0 26px;
}

.ibc-quote__eyebrow {
	margin: 0 0 7px;
	color: var(--ibc-blue);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-transform: uppercase;
}

.ibc-quote .ibc-quote__title {
	margin: 0 0 10px;
	color: var(--ibc-teal);
	font-size: clamp(30px, 3vw, 38px);
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1.08;
}

.ibc-quote__intro > p:last-child {
	max-width: 620px;
	margin: 0;
	color: var(--ibc-muted);
	font-size: 1rem;
}

.ibc-quote__form {
	display: grid;
	gap: 18px;
}

.ibc-quote__wizard {
	border: 1px solid #d8e4e5;
	border-radius: 16px;
	background: #f7fafa;
	padding: 13px 16px 15px;
}

.ibc-quote__wizard-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 9px;
}

.ibc-quote__wizard-meta p {
	margin: 0;
	color: var(--ibc-muted);
	font-size: 13px;
	font-weight: 650;
	line-height: 1.35;
}

.ibc-quote__wizard-meta p:first-child {
	color: var(--ibc-teal);
}

.ibc-quote__progress {
	height: 7px;
	overflow: hidden;
	border-radius: 999px;
	background: #dfe9e9;
}

.ibc-quote__progress-bar {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--ibc-blue), #1674df);
	transition: width 220ms ease;
}

.ibc-quote__step--submit {
	display: grid;
	gap: 18px;
}

.ibc-quote__wizard-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	padding-top: 2px;
}

.ibc-quote__wizard-actions .ibc-quote__wizard-back {
	margin: 0 auto 0 0;
	padding: 11px 21px;
	text-decoration: none;
}

.ibc-quote__section,
.ibc-quote__service-group {
	min-inline-size: 0;
	margin: 0;
	border: 1px solid var(--ibc-soft-border);
	border-radius: 24px;
	background: #fff;
	padding: 26px;
}

.ibc-quote .ibc-quote__section > legend {
	width: auto;
	float: none;
	margin: 0 0 8px;
	padding: 0;
	color: var(--ibc-teal);
	font-size: clamp(20px, 1.5vw, 24px);
	font-weight: 650;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

.ibc-quote [data-form-step] > legend[tabindex="-1"]:focus,
.ibc-quote [data-form-step] > h2[tabindex="-1"]:focus,
.ibc-quote [data-form-step] > h3[tabindex="-1"]:focus {
	outline: none;
}

.ibc-quote__section-note {
	margin: 0 0 20px;
	color: var(--ibc-muted);
	font-size: 0.9rem;
}

.ibc-quote__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 15px 16px;
}

.ibc-quote__field,
.ibc-quote__field-span {
	min-width: 0;
}

.ibc-quote__field--wide,
.ibc-quote__field-span {
	grid-column: 1 / -1;
}

.ibc-quote__field label,
.ibc-quote__checkbox-set > legend,
.ibc-quote__conditional > legend,
.ibc-quote__consent-label {
	display: block;
	margin: 0 0 7px;
	color: var(--ibc-teal);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
}

.ibc-quote__optional {
	color: var(--ibc-muted);
	font-size: 0.8125rem;
	font-weight: 500;
	white-space: nowrap;
}

.ibc-quote__field-help {
	margin: 6px 0 0;
	color: var(--ibc-muted);
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.4;
}

.ibc-quote input:not([type="checkbox"]),
.ibc-quote select,
.ibc-quote textarea {
	display: block;
	width: 100%;
	min-height: 47px;
	margin: 0;
	border: 1px solid var(--ibc-border);
	border-radius: 18px;
	background: #fff;
	color: var(--ibc-teal);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.35;
	padding: 11px 15px;
	transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.ibc-quote input[type="date"],
.ibc-quote input[type="number"] {
	padding-inline-end: 10px;
}

.ibc-quote textarea {
	min-height: 94px;
	resize: vertical;
}

.ibc-quote input::placeholder,
.ibc-quote textarea::placeholder {
	color: #758386;
	font-weight: 400;
	opacity: 1;
}

.ibc-quote input:not([type="checkbox"]):focus,
.ibc-quote select:focus,
.ibc-quote textarea:focus,
.ibc-quote button:focus-visible,
.ibc-quote a:focus-visible {
	outline: 0;
	border-color: var(--ibc-blue);
	box-shadow: 0 0 0 3px rgb(5 83 205 / 17%);
}

.ibc-quote input[aria-invalid="true"],
.ibc-quote select[aria-invalid="true"],
.ibc-quote textarea[aria-invalid="true"] {
	border-color: var(--ibc-error);
	box-shadow: 0 0 0 3px rgb(162 32 46 / 12%);
}

.ibc-quote__service-groups {
	display: grid;
	gap: 13px;
}

.ibc-quote__service-group {
	border-color: #dce5e5;
	border-radius: 19px;
	background: var(--ibc-soft);
	padding: 17px;
}

.ibc-quote .ibc-quote__service-group > legend {
	float: none;
	width: auto;
	margin: 0 0 11px;
	padding: 0;
	color: var(--ibc-teal);
	font-size: clamp(13px, 0.8vw, 14px);
	font-weight: 700;
	letter-spacing: 0.045em;
	line-height: 1.2;
	text-transform: uppercase;
}

.ibc-quote__service-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
}

.ibc-quote__service-tile {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 50px;
	border: 1px solid #cbd6d6;
	border-radius: 14px;
	background: #fff;
	color: var(--ibc-teal);
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
	padding: 10px 12px;
	transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, background-color 160ms ease;
}

.ibc-quote__service-tile:hover {
	border-color: var(--ibc-blue);
}

.ibc-quote__service-tile.is-selected,
.ibc-quote__service-tile:has(input:checked) {
	border-color: var(--ibc-blue);
	background: #eef4ff;
	box-shadow: inset 0 0 0 1px var(--ibc-blue);
	color: #033b94;
}

.ibc-quote input[type="checkbox"] {
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	margin: 0;
	accent-color: var(--ibc-blue);
	cursor: pointer;
}

.ibc-quote__service-block {
	border-color: #a7c6c9;
	background: linear-gradient(180deg, #fbfefe 0%, #fff 100%);
}

.ibc-quote .ibc-quote__subheading {
	margin: 26px 0 13px;
	color: var(--ibc-teal);
	font-size: clamp(18px, 1.25vw, 21px);
	font-weight: 650;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.ibc-quote__subheading:first-of-type {
	margin-top: 0;
}

.ibc-quote__conditional {
	min-inline-size: 0;
	margin: 0;
	border: 0;
	padding: 0;
}

.ibc-quote__checkbox-set {
	min-inline-size: 0;
	margin: 22px 0;
	border: 1px solid #d4e0e0;
	border-radius: 17px;
	background: #fbfdfd;
	padding: 17px;
}

.ibc-quote__checkbox-set > legend,
.ibc-quote__conditional > legend {
	float: none;
	width: auto;
	padding: 0;
}

.ibc-quote__check-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 16px;
}

.ibc-quote__check-grid label {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	color: var(--ibc-ink);
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.3;
}

.ibc-quote__check-grid label span {
	padding-top: 1px;
}

.ibc-quote__repeater-section {
	margin-top: 28px;
	border-top: 1px solid #d9e5e6;
	padding-top: 23px;
}

.ibc-quote__repeater-section--first {
	margin-top: 10px;
	border-top: 0;
	padding-top: 0;
}

.ibc-quote__repeater-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin: 0 0 15px;
}

.ibc-quote .ibc-quote__repeater-heading h3 {
	margin: 0 0 5px;
	color: var(--ibc-teal);
	font-size: clamp(18px, 1.25vw, 21px);
	font-weight: 650;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.ibc-quote__repeater-heading p {
	margin: 0;
	color: var(--ibc-muted);
	font-size: 0.875rem;
	line-height: 1.4;
}

.ibc-quote__count-field {
	flex: 0 0 145px;
}

.ibc-quote__repeater {
	display: grid;
	gap: 13px;
}

.ibc-quote__repeater-card {
	border: 1px solid #c9d8d9;
	border-radius: 18px;
	background: #fff;
	padding: 18px;
}

.ibc-quote__repeater-card-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 15px;
}

.ibc-quote .ibc-quote__repeater-card-heading h4 {
	margin: 0;
	color: var(--ibc-teal);
	font-size: clamp(17px, 1vw, 19px);
	font-weight: 650;
	line-height: 1.25;
}

.ibc-quote__text-button,
.ibc-quote__secondary-button {
	border: 0;
	background: transparent;
	color: var(--ibc-blue);
	cursor: pointer;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.ibc-quote__text-button[disabled] {
	cursor: default;
	opacity: 0.45;
}

.ibc-quote__secondary-button {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	margin-top: 13px;
	border: 1px solid var(--ibc-blue);
	border-radius: 999px;
	background: #fff;
	padding: 9px 15px;
	text-decoration: none;
	transition: background-color 160ms ease, color 160ms ease;
}

.ibc-quote__secondary-button:hover {
	background: #eef4ff;
}

.ibc-quote__secondary-button[disabled] {
	cursor: not-allowed;
	opacity: 0.5;
}

.ibc-quote__safe-note,
.ibc-quote__privacy-note {
	margin: 0 0 20px;
	border-inline-start: 4px solid var(--ibc-lime);
	border-radius: 0 12px 12px 0;
	background: #f6fbed;
	padding: 13px 15px;
}

.ibc-quote .ibc-quote__safe-note h3 {
	margin: 0 0 5px;
	color: var(--ibc-teal);
	font-size: clamp(20px, 1.5vw, 24px);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.ibc-quote__safe-note p,
.ibc-quote__privacy-note p {
	margin: 0;
	color: #25484b;
	font-size: 0.9rem;
	line-height: 1.45;
}

.ibc-quote__privacy-note {
	margin: 0;
	background: #f2f8f8;
}

.ibc-quote__consent {
	border: 1px solid #d7e4e5;
	border-radius: 18px;
	background: #fff;
	padding: 18px;
}

.ibc-quote__consent-label {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin: 0;
	color: var(--ibc-ink);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.48;
}

.ibc-quote__consent-label input {
	margin-top: 2px !important;
}

.ibc-quote__consent-label a,
.ibc-quote__notice-link {
	color: var(--ibc-blue);
	font-weight: 700;
}

.ibc-quote__recaptcha {
	display: flex;
	justify-content: flex-start;
	min-height: 78px;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 2px;
}

.ibc-quote__recaptcha-widget--error {
	max-width: 520px;
	border: 1px solid #e1adb4;
	border-radius: 12px;
	background: #fff4f5;
	color: var(--ibc-error);
	font-size: 14px;
	line-height: 1.45;
	padding: 13px 15px;
}

.ibc-quote__thank-you {
	border: 1px solid #c8dcda;
	border-radius: 24px;
	background: linear-gradient(145deg, #f7fbf5 0%, #f4f8ff 100%);
	box-shadow: 0 16px 42px rgb(4 48 51 / 8%);
	padding: clamp(34px, 7vw, 62px) clamp(22px, 5vw, 46px);
	text-align: center;
}

.ibc-quote__thank-you-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin: 0 0 17px;
	border-radius: 50%;
	background: var(--ibc-lime);
	color: var(--ibc-teal);
	font-size: 28px;
	font-weight: 800;
	line-height: 1;
}

.ibc-quote__thank-you .ibc-quote__eyebrow {
	margin-bottom: 9px;
}

.ibc-quote__thank-you .ibc-quote__title {
	margin-bottom: 13px;
}

.ibc-quote__thank-you-message {
	max-width: 520px;
	margin: 0 auto;
	color: var(--ibc-muted);
	font-size: 17px;
	line-height: 1.55;
}

.ibc-quote__thank-you .ibc-quote__reference {
	margin: 18px 0 0 !important;
	color: var(--ibc-teal);
}

.ibc-quote__thank-you .ibc-quote__notice-link {
	display: inline-block;
	margin-top: 18px;
}

.ibc-quote__submit-row {
	padding: 4px 0 0;
}

.ibc-quote__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 49px;
	border: 1px solid var(--ibc-teal);
	border-radius: 999px;
	background: var(--ibc-teal);
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	padding: 16px 31px 14px;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ibc-quote__submit:hover {
	border-color: var(--ibc-blue);
	background: var(--ibc-blue);
	transform: translateY(-1px);
}

.ibc-quote__submit:disabled {
	cursor: progress;
	opacity: 0.75;
	transform: none;
}

.ibc-quote__submit-row p {
	max-width: 600px;
	margin: 12px 0 0;
	color: var(--ibc-muted);
	font-size: 0.8125rem;
	line-height: 1.45;
}

.ibc-quote__notice,
.ibc-quote__error-summary {
	margin: 0 0 18px;
	border: 1px solid;
	border-radius: 18px;
	padding: 15px 17px;
}

.ibc-quote__notice p,
.ibc-quote__error-summary p,
.ibc-quote__error-summary ul {
	margin: 0;
}

.ibc-quote__notice-details {
	margin: 9px 0 0;
	padding-inline-start: 22px;
}

.ibc-quote__notice-details li + li {
	margin-top: 4px;
}

.ibc-quote__notice--success {
	border-color: #90cfaa;
	background: #effaf2;
	color: #145d31;
}

.ibc-quote__notice--error,
.ibc-quote__error-summary {
	border-color: #e1adb4;
	background: #fff4f5;
	color: #8b1f2d;
}

.ibc-quote__reference {
	margin-top: 7px !important;
	font-size: 0.9rem;
}

.ibc-quote__error-summary ul {
	padding-inline-start: 21px;
}

.ibc-quote__error-summary li + li {
	margin-top: 4px;
}

.ibc-quote__honeypot {
	position: absolute !important;
	inline-size: 1px !important;
	block-size: 1px !important;
	overflow: hidden !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

.ibc-quote .screen-reader-text {
	position: absolute !important;
	inline-size: 1px !important;
	block-size: 1px !important;
	overflow: hidden !important;
	clip: rect(1px, 1px, 1px, 1px) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

@media (max-width: 767px) {
	.ibc-quote__section,
	.ibc-quote__service-group {
		border-radius: 20px;
		padding: 20px;
	}

	.ibc-quote__grid,
	.ibc-quote__service-grid,
	.ibc-quote__check-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.ibc-quote__field--wide,
	.ibc-quote__field-span {
		grid-column: auto;
	}

	.ibc-quote__repeater-heading {
		align-items: stretch;
		flex-direction: column;
	}

	.ibc-quote__count-field {
		flex-basis: auto;
		max-width: 180px;
	}

	.ibc-quote__wizard-actions {
		align-items: stretch;
		flex-direction: column-reverse;
	}

	.ibc-quote__wizard-actions .ibc-quote__wizard-back {
		justify-content: center;
		width: 100%;
		margin: 0;
	}

	.ibc-quote__submit {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ibc-quote *,
	.ibc-quote *::before,
	.ibc-quote *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
