@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap");

#ofs-quote-root,
#ofs-quote-root * {
	font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
	box-sizing: border-box;
}
#ofs-quote-root h2.ofs-q-brand-title {
	font-size: 20px !important;
	font-weight: 800 !important;
	letter-spacing: 0.06em !important;
	line-height: 1.2 !important;
	margin: 0 !important;
	color: #1b7340 !important;
	text-transform: uppercase !important;
}
#ofs-quote-root .ofs-q-panel h3,
#ofs-quote-root .ofs-q-thanks-title {
	font-size: 24px !important;
	font-weight: 800 !important;
	letter-spacing: -0.03em !important;
	margin: 0 0 8px !important;
	color: #1e293b !important;
}
#ofs-quote-root .ofs-q-btn {
	font-family: inherit !important;
	text-transform: none !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	letter-spacing: 0 !important;
}
#ofs-quote-root .ofs-q-btn-secondary,
#ofs-quote-root .ofs-q-btn-secondary:hover,
#ofs-quote-root .ofs-q-btn-secondary:focus,
#ofs-quote-root .ofs-q-btn-secondary:active,
#ofs-quote-root .ofs-q-btn-secondary:visited {
	color: #111111 !important;
	background: #ffffff !important;
	border: 1.5px solid #d1d5db !important;
	box-shadow: none !important;
}
#ofs-quote-root .ofs-q-btn-secondary:hover,
#ofs-quote-root .ofs-q-btn-secondary:focus {
	background: #f3f4f6 !important;
	border-color: #9ca3af !important;
	color: #111111 !important;
}
#ofs-quote-root .ofs-q-btn-primary,
#ofs-quote-root .ofs-q-btn-primary:hover,
#ofs-quote-root .ofs-q-btn-primary:focus,
#ofs-quote-root .ofs-q-btn-primary:active,
#ofs-quote-root a.ofs-q-btn-primary {
	color: #ffffff !important;
}

:root {
	--ofs-q-green: #1b7340;
	--ofs-q-green-deep: #145a32;
	--ofs-q-green-soft: #eaf5ee;
	--ofs-q-ink: #1e293b;
	--ofs-q-muted: #6b7280;
	--ofs-q-line: #e5e7eb;
	--ofs-q-bg: #f5f5f5;
	--ofs-q-help: #eef6f1;
	--ofs-q-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.ofs-q-open { overflow: hidden; }
#ofs-quote-root[hidden] { display: none !important; }

#ofs-quote-root {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.ofs-q-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.42);
	backdrop-filter: blur(3px);
}

.ofs-q-dialog {
	position: relative;
	z-index: 1;
	width: min(560px, 100%);
	max-height: min(900px, calc(100vh - 48px));
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	color: var(--ofs-q-ink);
	animation: ofs-q-rise-in 0.3s var(--ofs-q-ease);
}

.ofs-q-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px 10px;
}

#ofs-quote-root .ofs-q-close {
	appearance: none !important;
	border: 0 !important;
	background: transparent !important;
	color: #111111 !important;
	width: 40px !important;
	height: 40px !important;
	border-radius: 10px !important;
	cursor: pointer;
	display: grid !important;
	place-items: center;
	padding: 0 !important;
	box-shadow: none !important;
	min-height: 0 !important;
}
#ofs-quote-root .ofs-q-close svg {
	width: 18px !important;
	height: 18px !important;
	stroke: #111111 !important;
	stroke-width: 2.4 !important;
	fill: none !important;
	stroke-linecap: round;
	stroke-linejoin: round;
	color: #111111 !important;
}
#ofs-quote-root .ofs-q-close:hover,
#ofs-quote-root .ofs-q-close:focus {
	background: #f3f4f6 !important;
	color: #111111 !important;
	border: 0 !important;
}
#ofs-quote-root .ofs-q-close:hover svg,
#ofs-quote-root .ofs-q-close:focus svg {
	stroke: #111111 !important;
	color: #111111 !important;
}

.ofs-q-context {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 22px 12px;
	padding: 12px 14px;
	background: #f1f5f9;
	border-radius: 10px;
}
.ofs-q-context[hidden] { display: none !important; }
.ofs-q-context-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	min-width: 0;
}
.ofs-q-context-label {
	font-size: 12px !important;
	color: var(--ofs-q-muted) !important;
	font-weight: 600 !important;
}
.ofs-q-context-value {
	font-size: 14px !important;
	font-weight: 800 !important;
	color: var(--ofs-q-ink) !important;
}
#ofs-quote-root .ofs-q-change {
	appearance: none !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--ofs-q-green) !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	text-decoration: underline !important;
	cursor: pointer;
	white-space: nowrap;
	padding: 0 !important;
	min-height: 0 !important;
	border-radius: 0 !important;
	line-height: 1.3 !important;
}

.ofs-q-progress { padding: 0 22px 14px; }
.ofs-q-progress-track {
	height: 28px;
	border-radius: 8px;
	background: #ececec;
	overflow: hidden;
}
.ofs-q-progress-fill {
	height: 100%;
	min-width: 110px;
	background: var(--ofs-q-green);
	border-radius: 8px;
	display: flex;
	align-items: center;
	padding: 0 14px;
	transition: width 0.3s var(--ofs-q-ease);
}
.ofs-q-progress-text {
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	white-space: nowrap;
}

.ofs-q-body {
	flex: 1 1 auto;
	overflow: auto;
	padding: 4px 22px 8px;
	-webkit-overflow-scrolling: touch;
}
.ofs-q-panel[hidden] { display: none !important; }
.ofs-q-panel.is-entering { animation: ofs-q-panel-in 0.25s var(--ofs-q-ease); }

.ofs-q-panel p.ofs-q-lead {
	margin: 0 0 18px;
	color: var(--ofs-q-muted);
	font-size: 14px;
	line-height: 1.45;
}

.ofs-q-field { margin-bottom: 16px; }
.ofs-q-field > .ofs-q-label,
.ofs-q-field label.ofs-q-label,
.ofs-q-nested > .ofs-q-label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
	color: #374151;
}

.ofs-q-grid { display: grid; gap: 10px; }
.ofs-q-grid-2 { grid-template-columns: 1fr 1fr; }
.ofs-q-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.ofs-q-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Range cards */
.ofs-q-range-grid { gap: 12px; margin-bottom: 14px; }
.ofs-q-range { position: relative; min-width: 0; cursor: pointer; }
.ofs-q-range input { position: absolute; opacity: 0; pointer-events: none; }
.ofs-q-range-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 54px;
	padding: 14px 14px 14px 16px;
	border: 1.5px solid #d8d8d8;
	border-radius: 10px;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ofs-q-range-name {
	font-size: 14.5px !important;
	font-weight: 700 !important;
	color: #1f2937 !important;
}
.ofs-q-range-check {
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: transparent;
	color: #fff;
	display: grid;
	place-items: center;
	opacity: 0;
	transform: scale(0.85);
	flex: 0 0 auto;
	transition: all 0.15s ease;
}
.ofs-q-range-check svg { width: 12px; height: 12px; }
.ofs-q-range input:checked + .ofs-q-range-card {
	border-color: var(--ofs-q-green);
	border-width: 2px;
	box-shadow: 0 0 0 1px var(--ofs-q-green);
	padding: 13.5px 13.5px 13.5px 15.5px;
}
.ofs-q-range input:checked + .ofs-q-range-card .ofs-q-range-check {
	opacity: 1;
	transform: scale(1);
	background: var(--ofs-q-green);
}

/* Colour panel */
.ofs-q-colour-panel {
	background: #f5f5f5;
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 6px;
}
.ofs-q-colour-panel[hidden] { display: none !important; }
.ofs-q-colour-label {
	font-size: 14px !important;
	font-weight: 700 !important;
	margin-bottom: 12px;
	color: #374151 !important;
}
.ofs-q-colour-list { display: flex; flex-wrap: wrap; gap: 10px; }
.ofs-q-swatch-pill { position: relative; cursor: pointer; }
.ofs-q-swatch-pill input { position: absolute; opacity: 0; pointer-events: none; }
.ofs-q-swatch-pill span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px 8px 10px;
	border: 1.5px solid #d1d5db;
	border-radius: 999px;
	background: #fff;
	font-size: 14px !important;
	font-weight: 600 !important;
}
.ofs-q-swatch-pill input:checked + span {
	border-color: var(--ofs-q-green);
	box-shadow: 0 0 0 1px var(--ofs-q-green);
}
.ofs-q-dot {
	width: 16px;
	height: 16px;
	border-radius: 999px;
	border: 1px solid rgba(0,0,0,0.12);
}
.ofs-q-dot[data-c="Black"] { background: #111; }
.ofs-q-dot[data-c="Woodland Grey"] { background: #5b5e54; }
.ofs-q-dot[data-c="Monument"] { background: #3a3c3a; }
.ofs-q-dot[data-c="Surfmist"] { background: #e6e4d9; }
.ofs-q-colour-note {
	margin: 12px 0 0;
	font-size: 13px !important;
	color: var(--ofs-q-muted) !important;
}
.ofs-q-colour-note[hidden] { display: none !important; }

/* Choice buttons */
.ofs-q-choice { position: relative; min-width: 0; }
.ofs-q-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ofs-q-choice span {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 50px;
	padding: 12px 14px;
	border: 1.5px solid #d8d8d8;
	border-radius: 10px;
	background: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	text-align: left;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.ofs-q-choice .ofs-q-tick,
.ofs-q-choice .ofs-q-box {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	border-radius: 999px;
	border: 2px solid #c5c5c5;
	background: #fff;
	position: relative;
}
.ofs-q-choice .ofs-q-box { border-radius: 5px; }
.ofs-q-choice input:checked + span {
	border-color: var(--ofs-q-green);
	background: var(--ofs-q-green-soft);
	box-shadow: 0 0 0 1px var(--ofs-q-green);
	color: var(--ofs-q-green-deep);
}
.ofs-q-choice input:checked + span .ofs-q-tick,
.ofs-q-choice input:checked + span .ofs-q-box {
	border-color: var(--ofs-q-green);
	background: var(--ofs-q-green);
}
.ofs-q-choice input:checked + span .ofs-q-tick::after,
.ofs-q-choice input:checked + span .ofs-q-box::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 2px;
	width: 6px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.ofs-q-choice-stack span { align-items: flex-start; }

.ofs-q-nested {
	background: #f5f5f5;
	border-radius: 12px;
	padding: 14px;
	margin-bottom: 16px;
}
.ofs-q-nested[hidden] { display: none !important; }

/* Step 4 example */
.ofs-q-example {
	border: 1.5px solid #e8b07a;
	background: #fff8f1;
	border-radius: 12px;
	padding: 14px;
	margin-bottom: 16px;
	position: relative;
}
.ofs-q-example-tag {
	display: inline-block;
	background: #d17821;
	color: #fff !important;
	font-size: 10px !important;
	font-weight: 800 !important;
	letter-spacing: 0.06em;
	padding: 3px 8px;
	border-radius: 4px;
	margin-bottom: 10px;
}
.ofs-q-example-bar {
	display: flex;
	gap: 3px;
	align-items: stretch;
	min-height: 52px;
}
.ofs-q-ex-seg {
	border-radius: 4px;
	padding: 6px 4px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-width: 0;
}
.ofs-q-ex-a { background: #2c4a6e; color: #fff; }
.ofs-q-ex-b { background: #d17821; color: #fff; }
.ofs-q-ex-m {
	font-size: 11px !important;
	font-weight: 800 !important;
	color: inherit !important;
}
.ofs-q-ex-l {
	font-size: 9px !important;
	font-weight: 600 !important;
	opacity: 0.9;
	color: inherit !important;
	line-height: 1.2;
}
.ofs-q-example-bounds {
	display: flex;
	justify-content: space-between;
	margin-top: 8px;
	font-size: 11px !important;
	color: var(--ofs-q-muted) !important;
	border-top: 1px dashed #d4d4d4;
	padding-top: 6px;
}

.ofs-q-upload-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
.ofs-q-upload-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	border: 1.5px dashed #c5c5c5;
	border-radius: 10px;
	background: #fafafa;
	cursor: pointer;
	font-size: 13px;
	font-weight: 700;
}
.ofs-q-upload-btn input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}
.ofs-q-upload-hint {
	font-size: 12px !important;
	color: var(--ofs-q-muted) !important;
}

.ofs-q-input,
.ofs-q-textarea {
	width: 100%;
	border: 1.5px solid #d8d8d8;
	border-radius: 10px;
	padding: 12px 14px;
	font: inherit;
	font-size: 15px;
	background: #fff;
}
.ofs-q-input:focus,
.ofs-q-textarea:focus {
	outline: none;
	border-color: var(--ofs-q-green);
	box-shadow: 0 0 0 3px rgba(27, 115, 64, 0.14);
}
.ofs-q-textarea { min-height: 96px; resize: vertical; }

.ofs-q-error {
	display: none;
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
	font-size: 13px;
	font-weight: 700;
}
.ofs-q-error.is-visible { display: block; }

/* Nav */
.ofs-q-nav {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px 10px;
}
.ofs-q-nav[hidden] { display: none !important; }

#ofs-quote-root .ofs-q-btn {
	appearance: none !important;
	border-radius: 10px !important;
	padding: 15px 20px !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	cursor: pointer;
	min-height: 52px !important;
}
#ofs-quote-root .ofs-q-btn-secondary {
	background: #fff !important;
	color: #111111 !important;
	border: 1.5px solid #d1d5db !important;
	flex: 0 0 auto;
	min-width: 96px !important;
}
#ofs-quote-root .ofs-q-btn-primary {
	background: var(--ofs-q-green) !important;
	color: #ffffff !important;
	border: 0 !important;
	flex: 1 1 auto;
}
#ofs-quote-root .ofs-q-btn-primary:hover,
#ofs-quote-root .ofs-q-btn-primary:focus {
	background: var(--ofs-q-green-deep) !important;
	color: #ffffff !important;
}
#ofs-quote-root .ofs-q-btn-primary:disabled {
	opacity: 0.55;
	cursor: wait;
}

#ofs-quote-root .ofs-q-skip {
	appearance: none !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #374151 !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	text-decoration: underline !important;
	cursor: pointer;
	padding: 8px 4px !important;
	flex: 0 0 auto;
	min-height: 0 !important;
	border-radius: 0 !important;
	line-height: 1.3 !important;
}
#ofs-quote-root .ofs-q-skip[hidden] { display: none !important; }

.ofs-q-help {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 14px;
	padding: 14px 16px 16px;
	background: var(--ofs-q-help);
	color: #4b5563;
	font-size: 13px;
	font-weight: 600;
}
.ofs-q-help[hidden] { display: none !important; }
.ofs-q-help-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ofs-q-green) !important;
	text-decoration: underline !important;
	font-weight: 700 !important;
}
.ofs-q-help-link svg {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
}

/* Thanks */
.ofs-q-summary {
	background: #f2f2f2;
	border-radius: 12px;
	padding: 4px 16px;
	margin: 8px 0 18px;
}
.ofs-q-sum-row {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #e0e0e0;
}
.ofs-q-sum-row:last-child { border-bottom: 0; }
.ofs-q-sum-k {
	font-size: 13px !important;
	color: #6b7280 !important;
	font-weight: 600 !important;
}
.ofs-q-sum-v {
	font-size: 13px !important;
	color: #1e293b !important;
	font-weight: 800 !important;
	text-align: right;
}
.ofs-q-thanks-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 8px;
}
.ofs-q-thanks-actions .ofs-q-btn-primary { flex: 1 1 60%; text-align: center; }
.ofs-q-thanks-actions .ofs-q-btn-secondary { flex: 0 0 auto; }

/* Contact CTA */
.ofs-q-contact-cta-wrap {
	display: none;
	max-width: 520px;
	margin: 24px auto;
	padding: 32px 24px;
	text-align: center;
	background: var(--ofs-q-help);
	border-radius: 16px;
}
body.page-id-1407 .ofs-q-contact-cta-wrap,
body.page-slug-contact-us .ofs-q-contact-cta-wrap { display: block; }
body.page-id-1407 .elementor-widget-form,
body.page-slug-contact-us .elementor-widget-form { display: none !important; }
.ofs-q-contact-cta-wrap h2 {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 800;
}
.ofs-q-contact-cta-wrap p {
	margin: 0 0 18px;
	color: var(--ofs-q-muted);
}
.ofs-q-contact-cta-wrap .ofs-q-btn-primary {
	display: inline-flex;
	min-width: 200px;
	justify-content: center;
}

@keyframes ofs-q-rise-in {
	from { opacity: 0; transform: translateY(12px) scale(0.985); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ofs-q-panel-in {
	from { opacity: 0; transform: translateX(8px); }
	to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 767px) {
	#ofs-quote-root {
		padding: 0;
		align-items: stretch;
	}
	.ofs-q-dialog {
		width: 100%;
		max-height: none;
		height: 100%;
		border-radius: 0;
	}
	.ofs-q-header { padding-top: max(14px, env(safe-area-inset-top)); }
	.ofs-q-help { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
	.ofs-q-grid-3,
	.ofs-q-grid-4 {
		grid-template-columns: 1fr 1fr;
	}
	.ofs-q-sum-row {
		grid-template-columns: 1fr;
		gap: 2px;
	}
	.ofs-q-sum-v { text-align: left; }
	#ofs-quote-root .ofs-q-panel h3 {
		font-size: 22px !important;
	}
	.ofs-q-ex-l { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.ofs-q-dialog,
	.ofs-q-panel.is-entering { animation: none !important; }
}
