/* YWD Quick Quote – multi-step quote form */
.ywqf {
	--f-navy: #0d274e;
	--f-navy-2: #1a3a6b;
	--f-orange: #fd8d14;
	--f-orange-soft: #fff3e6;
	--f-green: #149145;
	--f-ink: #13213a;
	--f-muted: #5b6577;
	--f-line: #dde2ea;
	--f-soft: #f4f6f9;
	--f-red: #c4320a;
	max-width: 860px;
	margin: 0 auto;
	color: var(--f-ink);
	font-size: 16px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}
.ywqf *, .ywqf *::before, .ywqf *::after { box-sizing: border-box; }
.ywqf [hidden] { display: none !important; }
.ywqf svg { display: block; width: 100%; height: 100%; }
.ywqf p { padding: 0; }

/* ---------- intro ---------- */
.ywqf-intro { text-align: center; margin-bottom: 26px; }
.ywqf .ywqf-title { margin: 0 0 8px; padding: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.1; font-weight: 800; color: var(--f-navy); letter-spacing: -.02em; }
.ywqf .ywqf-sub { margin: 0; font-size: 17px; color: var(--f-muted); }

/* ---------- card ---------- */
.ywqf-card {
	position: relative;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 1px 2px rgba(13, 39, 78, .06), 0 18px 50px -12px rgba(13, 39, 78, .22);
	padding: 26px 34px 30px;
	overflow: hidden;
}
@media (max-width: 600px) {
	.ywqf-card { padding: 20px 18px 22px; border-radius: 20px; }
}

.ywqf-top { margin-bottom: 18px; }
.ywqf-top.is-done .ywqf-meta { visibility: hidden; }
.ywqf-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; font-size: 13px; font-weight: 600; color: var(--f-muted); }
.ywqf-count b { color: var(--f-navy); }
.ywqf-time::before { content: "⏱ "; }
.ywqf-progress { height: 6px; border-radius: 99px; background: var(--f-soft); overflow: hidden; }
.ywqf-progress span { display: block; height: 100%; width: 10%; border-radius: 99px; background: linear-gradient(90deg, var(--f-orange), #ffb055); transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.ywqf.is-done .ywqf-progress span { background: var(--f-green); }

.ywqf .ywqf-summary {
	margin: -4px 0 16px;
	padding: 8px 12px;
	border-radius: 10px;
	background: var(--f-soft);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--f-navy-2);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---------- steps ---------- */
.ywqf-form { margin: 0; }
.ywqf-step { border: 0; margin: 0; padding: 0; min-width: 0; animation: ywqf-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes ywqf-in { from { opacity: 0; transform: translateX(14px); } }
.ywqf .ywqf-q {
	display: block;
	float: none;
	width: 100%;
	margin: 0 0 6px;
	padding: 0;
	font-size: clamp(22px, 3vw, 28px);
	line-height: 1.2;
	font-weight: 800;
	color: var(--f-navy);
	letter-spacing: -.015em;
	outline: none;
}
.ywqf .ywqf-hint { margin: 0 0 20px; color: var(--f-muted); font-size: 15px; }

/* ---------- tiles ---------- */
.ywqf-tiles { display: grid; gap: 12px; }
.ywqf-tiles--vehicles { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.ywqf-tiles--when { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) {
	.ywqf-tiles { gap: 9px; }
	.ywqf-tiles--vehicles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ywqf-tiles--when { grid-template-columns: 1fr; }
}

.ywqf-tile { position: relative; display: block; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ywqf-tile input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.ywqf-tile__in {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 100%;
	min-height: 122px;
	padding: 16px 10px 14px;
	border: 2px solid var(--f-line);
	border-radius: 16px;
	background: #fff;
	text-align: center;
	transition: border-color .15s, background-color .15s, transform .15s, box-shadow .15s;
}
.ywqf-tile__icon {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	padding: 9px;
	border-radius: 16px;
	background: var(--f-orange-soft);
	color: var(--f-orange);
	transition: background-color .15s, color .15s;
}
.ywqf-tile__label { font-size: 14.5px; font-weight: 700; line-height: 1.2; color: var(--f-navy); }
.ywqf-tile__sub { display: block; font-size: 13px; color: var(--f-muted); font-weight: 500; margin-top: 2px; }
.ywqf-tile__tick {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 22px;
	height: 22px;
	padding: 4px;
	border-radius: 50%;
	background: var(--f-navy);
	color: #fff;
	opacity: 0;
	transform: scale(.5);
	transition: opacity .15s, transform .2s cubic-bezier(.3, 1.6, .5, 1);
}
.ywqf-tile__tick svg { stroke-width: 6; }

@media (hover: hover) {
	.ywqf-tile:hover .ywqf-tile__in { border-color: #b9c3d3; transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(13, 39, 78, .35); }
	.ywqf-tile:hover .ywqf-tile__icon { background: #ffe6c9; }
}
.ywqf-tile:active .ywqf-tile__in { transform: scale(.97); }
.ywqf-tile input:checked + .ywqf-tile__in { border-color: var(--f-navy); background: #f3f6fb; }
.ywqf-tile input:checked + .ywqf-tile__in .ywqf-tile__icon { background: var(--f-navy); color: #fff; }
.ywqf-tile input:checked + .ywqf-tile__in .ywqf-tile__tick { opacity: 1; transform: none; }
.ywqf-tile input:focus-visible + .ywqf-tile__in { outline: 3px solid var(--f-orange); outline-offset: 2px; }

@media (max-width: 600px) {
	.ywqf-tile__in { min-height: 104px; padding: 12px 6px 10px; gap: 7px; border-radius: 14px; }
	.ywqf-tile__icon { width: 48px; height: 48px; padding: 8px; border-radius: 13px; }
	.ywqf-tile__label { font-size: 13px; }
	.ywqf-tile__tick { top: 6px; right: 6px; width: 18px; height: 18px; padding: 3px; }
}

/* Row-style tiles (timing) */
.ywqf-tile--row .ywqf-tile__in { flex-direction: row; justify-content: flex-start; text-align: left; min-height: 84px; padding: 14px 16px; gap: 14px; }
.ywqf-tile--row .ywqf-tile__icon { width: 50px; height: 50px; flex: none; }
.ywqf-tile--row .ywqf-tile__label { font-size: 16px; }
@media (max-width: 600px) { .ywqf-tile--row .ywqf-tile__in { min-height: 72px; } }

/* ---------- fields ---------- */
.ywqf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .ywqf-row { grid-template-columns: 1fr; gap: 0; } }
.ywqf-field { display: block; margin: 0 0 16px; }
.ywqf-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--f-ink); }
.ywqf-label em { font-style: normal; font-weight: 500; color: var(--f-muted); }
.ywqf .ywqf-field input,
.ywqf .ywqf-field textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0 16px;
	height: 56px;
	border: 2px solid var(--f-line);
	border-radius: 14px;
	background: #fff;
	color: var(--f-ink);
	font: inherit;
	font-size: 17px; /* ≥16px: no iOS zoom */
	box-shadow: none;
	transition: border-color .15s, box-shadow .15s;
	-webkit-appearance: none;
	appearance: none;
}
.ywqf .ywqf-field textarea { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; line-height: 1.45; }
.ywqf .ywqf-field input::placeholder, .ywqf .ywqf-field textarea::placeholder { color: #9aa3b2; opacity: 1; }
.ywqf .ywqf-field input:focus,
.ywqf .ywqf-field textarea:focus { outline: none; border-color: var(--f-navy); box-shadow: 0 0 0 4px rgba(13, 39, 78, .1); }
.ywqf .ywqf-field.is-invalid input,
.ywqf .ywqf-field.is-invalid textarea { border-color: var(--f-red); box-shadow: 0 0 0 4px rgba(196, 50, 10, .1); }
.ywqf-field.is-invalid .ywqf-label { color: var(--f-red); }
.ywqf-field.shake { animation: ywqf-shake .4s; }
@keyframes ywqf-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.ywqf-input-wrap { position: relative; display: block; }
.ywqf-in-icon { position: absolute; left: 14px; top: 50%; width: 24px; height: 24px; margin-top: -12px; color: var(--f-orange); pointer-events: none; }
.ywqf .ywqf-field--icon input { padding-left: 48px; }
.ywqf-route { position: relative; }
.ywqf-route__line { display: none; }
@media (min-width: 601px) {
	.ywqf-route { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: end; }
	.ywqf-route__line { display: block; height: 2px; margin: 0 2px 43px; background: repeating-linear-gradient(90deg, var(--f-orange) 0 6px, transparent 6px 11px); }
}

/* ---------- buttons ---------- */
.ywqf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 58px;
	margin: 6px 0 0;
	padding: 0 24px;
	border: 0;
	border-radius: 14px;
	background: var(--f-orange);
	color: var(--f-navy) !important;
	font: inherit;
	font-size: 17px;
	font-weight: 800;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: 0 8px 20px -8px rgba(253, 141, 20, .7);
	transition: transform .12s, filter .15s, box-shadow .15s;
}
.ywqf-btn svg { width: 20px; height: 20px; stroke-width: 3.2; flex: none; transition: transform .2s; }
.ywqf-btn:hover { filter: brightness(1.04); box-shadow: 0 12px 24px -8px rgba(253, 141, 20, .75); }
.ywqf-btn:hover svg { transform: translateX(3px); }
.ywqf-btn:active { transform: scale(.98); }
.ywqf-btn:focus-visible { outline: 3px solid var(--f-navy); outline-offset: 3px; }
.ywqf-btn[disabled] { cursor: wait; opacity: .75; }
.ywqf-btn.is-loading svg { animation: ywqf-nudge .7s infinite alternate; }
@keyframes ywqf-nudge { to { transform: translateX(6px); } }
@media (min-width: 601px) { .ywqf-step:not(.ywqf-done) > .ywqf-btn { width: auto; min-width: 220px; } }

.ywqf-btn--wa { background: var(--f-green); color: #fff !important; box-shadow: 0 8px 20px -8px rgba(20, 145, 69, .7); width: auto; }
.ywqf-btn--wa svg { width: 22px; height: 22px; }
.ywqf-btn--wa:hover { box-shadow: 0 12px 24px -8px rgba(20, 145, 69, .75); }
.ywqf-btn--wa:hover svg { transform: none; }

.ywqf-nav { margin-top: 14px; min-height: 0; }
.ywqf-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 4px;
	border: 0;
	background: none;
	color: var(--f-muted);
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
}
.ywqf-back svg { width: 16px; height: 16px; stroke-width: 3.2; }
.ywqf-back:hover { color: var(--f-navy); }

.ywqf .ywqf-err { margin: 0 0 10px; padding: 10px 14px; border-radius: 10px; background: #fdeee9; color: var(--f-red); font-size: 14.5px; font-weight: 600; }
.ywqf .ywqf-legal { margin: 12px 0 0; font-size: 13px; color: var(--f-muted); text-align: center; }
@media (min-width: 601px) { .ywqf .ywqf-legal { text-align: left; } }

/* honeypot */
.ywqf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- done ---------- */
.ywqf-done { text-align: center; padding: 10px 0 6px; }
.ywqf-done__icon {
	display: grid;
	place-items: center;
	width: 76px;
	height: 76px;
	margin: 0 auto 16px;
	padding: 18px;
	border-radius: 50%;
	background: #e3f6ea;
	color: var(--f-green);
	animation: ywqf-pop .5s cubic-bezier(.3, 1.5, .5, 1);
}
.ywqf-done__icon svg { stroke-width: 4; }
@keyframes ywqf-pop { from { transform: scale(.3); opacity: 0; } }
.ywqf .ywqf-ref { margin: -8px 0 22px; font-size: 14px; color: var(--f-muted); }
.ywqf .ywqf-ref b { color: var(--f-navy); letter-spacing: .03em; }
.ywqf-done__wa { max-width: 480px; margin: 0 auto; padding: 18px; border-radius: 16px; background: var(--f-soft); }
.ywqf-done__wa p { margin: 0 0 12px; font-size: 15px; }

/* ---------- trust row ---------- */
.ywqf-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 20px 0 0; padding: 0; list-style: none; }
.ywqf-trust li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; font-size: 14px; font-weight: 600; color: var(--f-navy-2); }
.ywqf-trust li::before { display: none; }
.ywqf-trust svg { width: 22px; height: 22px; color: var(--f-orange); }

@media (prefers-reduced-motion: reduce) {
	.ywqf *, .ywqf-step { animation: none !important; transition: none !important; }
}
