/* YWD Quick Quote on WhatsApp */
.ywqq {
	--ywqq-green: #149145;
	--ywqq-green-dark: #0f7a39;
	--ywqq-live: #5cf08f;
	--ywqq-navy: #0d274e;
	--ywqq-orange: #fd8d14;
	--ywqq-ink: #13213a;
	--ywqq-muted: #5b6577;
	--ywqq-line: #dfe3ea;
	--ywqq-bg: #ffffff;
	--ywqq-soft: #f3f5f8;
	--ywqq-radius: 14px;
	font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--ywqq-ink);
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}
.ywqq *, .ywqq *::before, .ywqq *::after { box-sizing: border-box; }
.ywqq [hidden] { display: none !important; }
.ywqq p, .ywqq pre { padding: 0; }

/* ---------- Sticky bar ---------- */
.ywqq-bar {
	position: fixed;
	z-index: 99990;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	border: 0;
	cursor: pointer;
	color: #fff;
	background: var(--ywqq-green);
	text-align: left;
	font: inherit;
	-webkit-tap-highlight-color: transparent;
	transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background-color .15s;
}
.ywqq-bar:hover { background: var(--ywqq-green-dark); }
.ywqq-bar:focus-visible { outline: 3px solid var(--ywqq-orange); outline-offset: 3px; }
.ywqq-bar__icon {
	flex: none;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	color: var(--ywqq-green);
}
.ywqq-bar__text { display: flex; flex-direction: column; min-width: 0; }
.ywqq-bar__title { font-weight: 800; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.ywqq-bar__sub { display: flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: .95; white-space: nowrap; }
.ywqq-bar__arrow { margin-left: auto; font-size: 20px; font-weight: 700; padding-right: 4px; }

.ywqq-dot {
	position: relative;
	flex: none;
	display: inline-block;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--ywqq-live);
	box-shadow: 0 0 0 0 rgba(92, 240, 143, .7);
	animation: ywqq-pulse 2s infinite;
}
.ywqq-head .ywqq-dot { background: #22c55e; }
@keyframes ywqq-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(92, 240, 143, .65); }
	70%  { box-shadow: 0 0 0 8px rgba(92, 240, 143, 0); }
	100% { box-shadow: 0 0 0 0 rgba(92, 240, 143, 0); }
}

/* Mobile: full-width bar pinned to the bottom */
@media (max-width: 767px) {
	.ywqq-bar {
		left: 0;
		right: 0;
		bottom: var(--ywqq-cookie, 0px); /* sits on top of a cookie banner while it's visible */
		width: 100%;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		border-radius: 16px 16px 0 0;
		box-shadow: 0 -6px 24px rgba(13, 39, 78, .25);
	}
	.ywqq-bar:active { transform: scale(.985); }
	body.ywqq-has-bar { padding-bottom: calc(68px + env(safe-area-inset-bottom)) !important; }
	.ywqq--no-mobile .ywqq-bar { display: none; }
}

/* Desktop: floating pill in the bottom-right corner */
@media (min-width: 768px) {
	.ywqq-bar {
		right: 24px;
		bottom: max(var(--ywqq-desktop-bottom, 96px), calc(var(--ywqq-cookie, 0px) + 16px));
		padding: 10px 22px 10px 10px;
		border-radius: 999px;
		box-shadow: 0 10px 30px rgba(13, 39, 78, .28), 0 2px 6px rgba(13, 39, 78, .15);
		animation: ywqq-in .5s .6s cubic-bezier(.2,.8,.2,1) both;
	}
	.ywqq-bar:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(13, 39, 78, .32), 0 2px 6px rgba(13, 39, 78, .15); }
	.ywqq-bar__arrow { display: none; }
	.ywqq--no-desktop .ywqq-bar { display: none; }
}
@keyframes ywqq-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.ywqq.is-open .ywqq-bar { visibility: hidden; pointer-events: none; }

/* ---------- Sheet ---------- */
.ywqq-overlay {
	position: fixed;
	inset: 0;
	z-index: 99991;
	background: rgba(9, 20, 40, .5);
	animation: ywqq-fade .2s ease-out;
}
@keyframes ywqq-fade { from { opacity: 0; } }

.ywqq-sheet {
	position: fixed;
	z-index: 99992;
	display: flex;
	flex-direction: column;
	background: var(--ywqq-bg);
	box-shadow: 0 20px 60px rgba(9, 20, 40, .35);
	overflow: hidden;
}
@media (max-width: 767px) {
	.ywqq-sheet {
		left: 0; right: 0; bottom: 0;
		max-height: 92vh;
		max-height: 92dvh;
		border-radius: 20px 20px 0 0;
		padding-bottom: env(safe-area-inset-bottom);
		animation: ywqq-up .28s cubic-bezier(.2,.8,.2,1);
	}
}
@media (min-width: 768px) {
	.ywqq-sheet {
		/* Centred modal */
		top: 0; right: 0; bottom: 0; left: 0;
		margin: auto;
		width: min(580px, calc(100vw - 48px));
		height: fit-content;
		max-height: calc(100vh - 48px);
		border-radius: 22px;
		animation: ywqq-pop .22s cubic-bezier(.2,.8,.2,1);
		transform-origin: center;
	}
}
@keyframes ywqq-up { from { transform: translateY(100%); } }
@keyframes ywqq-pop { from { opacity: 0; transform: scale(.94) translateY(10px); } }

.ywqq-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 16px 14px 18px;
	background: var(--ywqq-navy);
	color: #fff;
}
.ywqq-head__logo { height: 34px; width: auto; max-width: 120px; flex: none; object-fit: contain; }
@media (max-width: 380px) { .ywqq-head__logo { display: none; } }
.ywqq-head__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ywqq-head__txt strong { font-size: 17px; font-weight: 800; }
.ywqq-head__txt span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #c9d4e6; }
.ywqq-close {
	margin-left: auto;
	flex: none;
	width: 36px; height: 36px;
	border: 0; border-radius: 50%;
	background: rgba(255,255,255,.12);
	color: #fff; font-size: 24px; line-height: 1;
	cursor: pointer;
}
.ywqq-close:hover { background: rgba(255,255,255,.22); }

.ywqq-progress { height: 4px; background: var(--ywqq-soft); }
.ywqq-progress span { display: block; height: 100%; width: 33%; background: var(--ywqq-orange); transition: width .3s ease; }

.ywqq-form { padding: 18px 18px 6px; overflow-y: auto; }
.ywqq-q { margin: 0 0 12px; font-size: 18px; font-weight: 800; color: var(--ywqq-navy); }
.ywqq-hint { margin: -6px 0 12px; font-size: 14px; color: var(--ywqq-muted); }

.ywqq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ywqq-chip { position: relative; cursor: pointer; }
.ywqq-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ywqq-chip span {
	display: inline-block;
	padding: 9px 14px;
	border: 1.5px solid var(--ywqq-line);
	border-radius: 999px;
	font-size: 14.5px;
	font-weight: 600;
	background: #fff;
	transition: border-color .15s, background-color .15s, color .15s;
}
.ywqq-chip input:checked + span { border-color: var(--ywqq-navy); background: var(--ywqq-navy); color: #fff; }
.ywqq-chip input:focus-visible + span { outline: 3px solid var(--ywqq-orange); outline-offset: 2px; }

.ywqq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 359px) { .ywqq-row { grid-template-columns: 1fr; } }
.ywqq-field { display: block; margin-bottom: 14px; }
.ywqq-field > span { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 700; color: var(--ywqq-ink); }
.ywqq-field em { font-style: normal; font-weight: 400; color: var(--ywqq-muted); }
.ywqq .ywqq-field input,
.ywqq .ywqq-field select {
	display: block;
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 12px;
	border: 1.5px solid var(--ywqq-line);
	border-radius: 10px;
	background: #fff;
	color: var(--ywqq-ink);
	font: inherit;
	font-size: 16px; /* prevents iOS zoom */
	box-shadow: none;
}
.ywqq .ywqq-field input:focus,
.ywqq .ywqq-field select:focus { outline: none; border-color: var(--ywqq-navy); box-shadow: 0 0 0 3px rgba(13, 39, 78, .12); }
.ywqq .ywqq-field input[aria-invalid="true"] { border-color: #d92d20; }
.ywqq-err { margin: -4px 0 12px; color: #b42318; font-size: 13.5px; font-weight: 600; }

.ywqq-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 50px;
	padding: 0 18px;
	border: 0;
	border-radius: 12px;
	background: var(--ywqq-orange);
	color: var(--ywqq-navy);
	font: inherit;
	font-size: 16px;
	font-weight: 800;
	text-decoration: none !important;
	cursor: pointer;
	transition: filter .15s, transform .1s;
}
.ywqq-btn:hover { filter: brightness(.95); }
.ywqq-btn:active { transform: scale(.98); }
.ywqq-btn:focus-visible { outline: 3px solid var(--ywqq-navy); outline-offset: 2px; }
.ywqq-btn--wa { background: var(--ywqq-green); color: #fff !important; }

.ywqq-actions { display: flex; gap: 10px; align-items: center; }
.ywqq-actions .ywqq-btn { flex: 1; }
.ywqq-actions--center { justify-content: center; margin-top: 6px; }
.ywqq-back {
	flex: none;
	min-height: 50px;
	padding: 0 14px;
	border: 0;
	background: none;
	color: var(--ywqq-muted);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}
.ywqq-back:hover { color: var(--ywqq-navy); text-decoration: underline; }

.ywqq-preview {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 12px 12px 12px 4px;
	background: #e7f8ee;
	border: 1px solid #c8eed7;
	color: var(--ywqq-ink);
	font: inherit;
	font-size: 14px;
	white-space: pre-wrap;
	word-break: break-word;
	max-height: 220px;
	overflow: auto;
}

.ywqq-direct {
	display: block;
	padding: 10px 18px 16px;
	text-align: center;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ywqq-muted) !important;
	text-decoration: underline !important;
}
.ywqq-direct:hover { color: var(--ywqq-green) !important; }

/* Larger modal on desktop (kept last so it wins the cascade) */
@media (min-width: 768px) {
	.ywqq-head { padding: 22px 22px 20px 26px; gap: 16px; }
	.ywqq-head__logo { height: 42px; max-width: 150px; }
	.ywqq-head__txt strong { font-size: 21px; }
	.ywqq-head__txt span { font-size: 14px; }
	.ywqq-form { padding: 28px 30px 8px; }
	.ywqq-q { font-size: 22px; margin-bottom: 16px; }
	.ywqq-hint { font-size: 15px; }
	.ywqq-chips { gap: 10px; margin-bottom: 22px; }
	.ywqq-chip span { padding: 11px 18px; font-size: 15.5px; }
	.ywqq-row { gap: 14px; }
	.ywqq-field { margin-bottom: 18px; }
	.ywqq-field > span { font-size: 14px; }
	.ywqq .ywqq-field input, .ywqq .ywqq-field select { height: 50px; }
	.ywqq-btn { min-height: 54px; font-size: 17px; }
	.ywqq-preview { font-size: 15px; max-height: 260px; }
	.ywqq-direct { padding: 12px 30px 22px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.ywqq *, .ywqq-bar, .ywqq-sheet, .ywqq-overlay { animation: none !important; transition: none !important; }
}
