/* Lightning ProABD Quote Form. Change --lctq-accent in plugin settings. */
.lctq {
	--lctq-accent: #1e5bd8;
	--lctq-text: #1d2327;
	--lctq-muted: #5f6b76;
	--lctq-border: #cfd6dd;
	--lctq-bg: #ffffff;
	--lctq-soft: #f4f6f8;
	--lctq-radius: 10px;
	box-sizing: border-box;
	max-width: 440px;
	margin: 0 auto;
	padding: 24px;
	background: var(--lctq-bg);
	color: var(--lctq-text);
	border: 1px solid var(--lctq-border);
	border-radius: 14px;
	box-shadow: 0 6px 24px rgba(16, 24, 40, .07);
	font-size: 16px;
	line-height: 1.45;
	scroll-margin-top: 90px;
}
.lctq *, .lctq *::before, .lctq *::after { box-sizing: border-box; }
.lctq.is-busy { cursor: progress; }

.lctq-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lctq fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.lctq [hidden] { display: none !important; }

/* Step header */
.lctq-head { margin: 0 0 22px; }
.lctq .lctq-head-step { margin: 0 0 4px; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--lctq-accent); }
.lctq .lctq-head-title { margin: 0; font-size: 21px; font-weight: 800; line-height: 1.25; color: var(--lctq-text); white-space: nowrap; overflow: hidden; }
.lctq-head-track { height: 4px; margin-top: 14px; border-radius: 2px; background: var(--lctq-border); overflow: hidden; }
.lctq-head-bar { height: 100%; border-radius: 2px; background: var(--lctq-accent); transition: width .3s ease; }

/* Layout */
.lctq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 14px; }
.lctq-row-4 { grid-template-columns: 1fr 1fr; margin-bottom: 0; }
.lctq-row-email { grid-template-columns: 1fr; }
.lctq input[type=date] { cursor: pointer; }
.lctq-field { display: flex; flex-direction: column; min-width: 0; }
.lctq-field + .lctq-field { margin-top: 0; }
.lctq > form > fieldset > .lctq-field { margin-bottom: 14px; }

.lctq label, .lctq-label { display: block; margin: 0 0 6px; line-height: 1.3; font-size: 14px; font-weight: 600; color: var(--lctq-text); }
.lctq-opt { font-weight: 400; color: var(--lctq-muted); }

.lctq input[type=text], .lctq input[type=email], .lctq input[type=tel], .lctq input[type=date],
.lctq select, .lctq textarea {
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 10px 12px;
	font: inherit;
	color: var(--lctq-text);
	background: #fff;
	border: 1px solid var(--lctq-border);
	border-radius: var(--lctq-radius);
	box-shadow: none;
}
.lctq textarea { min-height: 70px; resize: vertical; }
/* Same height for every input, dropdown and the Open/Enclosed toggle, whatever the theme sets. */
.lctq input[type=text], .lctq input[type=email], .lctq input[type=tel], .lctq input[type=date], .lctq select { height: 46px; line-height: 1.3; }
.lctq-row-end { align-items: end; }

/* Searchable dropdowns (Make / Model) */
.lctq-combo { position: relative; }
.lctq select, .lctq .lctq-combo input {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 34px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231d2327' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	cursor: pointer;
}
.lctq select { cursor: pointer; }
.lctq .lctq-combo input:focus { cursor: text; }
.lctq .lctq-loc .lctq-city { padding-right: 30px; background-position: right 10px center; }
.lctq-combo-list {
	position: absolute; z-index: 50; top: calc(100% + 4px); left: 0; right: 0;
	max-height: 240px; overflow-y: auto;
	margin: 0; padding: 4px; list-style: none;
	background: #fff; border: 1px solid var(--lctq-border); border-radius: var(--lctq-radius);
	box-shadow: 0 8px 24px rgba(16, 24, 40, .12);
}
.lctq-combo-opt { margin: 0; padding: 8px 10px; font-size: 15px; border-radius: 6px; cursor: pointer; }
.lctq-combo-opt:hover, .lctq-combo-opt.is-active { background: #eef0f2; }
.lctq input:focus, .lctq select:focus, .lctq textarea:focus {
	outline: none;
	border-color: var(--lctq-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--lctq-accent) 22%, transparent);
}

.lctq-loc { min-height: 20px; margin-top: 5px; font-size: 13px; color: var(--lctq-muted); }
.lctq-loc.is-warn { color: #b32d2e; }
.lctq-loc .lctq-city { min-height: 36px; padding: 6px 8px; font-size: 14px; }

/* Vehicles */
.lctq-vehicle { margin: 0 0 12px; padding: 14px; background: var(--lctq-soft); border-radius: var(--lctq-radius); }
.lctq-vehicle-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--lctq-border); }
.lctq-vehicle-title { grid-column: 2; font-weight: 700; font-size: 15px; text-align: center; }
.lctq-vehicle-head .lctq-remove { grid-column: 3; justify-self: end; }

/* Segmented control */
.lctq-seg { display: flex; height: 46px; border: 1px solid var(--lctq-border); border-radius: var(--lctq-radius); overflow: hidden; }
.lctq .lctq-seg label { flex: 1; height: 100%; margin: 0; padding: 0; position: relative; cursor: pointer; line-height: 1; }
.lctq-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lctq-seg span { display: flex; align-items: center; justify-content: center; height: 100%; padding: 0 10px; font-weight: 600; font-size: 15px; color: var(--lctq-muted); transition: background .15s, color .15s; }
.lctq-seg label + label span { border-left: 1px solid var(--lctq-border); }
.lctq-seg input:checked + span { background: var(--lctq-accent); color: #fff; }
.lctq-seg input:focus-visible + span { box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .6); }

/* Buttons */
.lctq-actions { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 10px; margin-top: 18px; }
.lctq-actions .lctq-btn { width: 100%; }
.lctq-actions .lctq-link { align-self: center; margin: 0; }
.lctq-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 50px; padding: 12px 28px;
	font: inherit; font-weight: 700; font-size: 17px; letter-spacing: .01em;
	color: #fff; background: var(--lctq-accent);
	border: 0; border-radius: var(--lctq-radius); cursor: pointer;
	transition: filter .15s, transform .05s;
}
.lctq-btn:active { transform: translateY(1px); }
.lctq-btn:disabled { opacity: .65; cursor: progress; }
.lctq button.lctq-btn:focus { background: var(--lctq-accent); color: #fff; }
.lctq-link { padding: 4px 8px; margin: 0 -8px; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 600; color: var(--lctq-accent); background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.lctq-add { margin: 0 0 16px -8px; }

/* Hover: light grey for every clickable button (overrides theme hover colours) */
.lctq button.lctq-btn:hover:not(:disabled),
.lctq button.lctq-btn:focus-visible { background: #e5e7eb; color: #1d2327; filter: none; box-shadow: none; }
.lctq button.lctq-link:hover,
.lctq button.lctq-link:focus,
.lctq button.lctq-link:focus-visible { background: #eef0f2; color: var(--lctq-text); box-shadow: none; border: 0; }
.lctq .lctq-seg label:hover input:not(:checked) + span { background: #eef0f2; color: var(--lctq-text); }
.lctq button:focus-visible { outline: 2px solid #9aa4ae; outline-offset: 2px; }

/* Rather talk? */
.lctq-talk { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--lctq-muted); }
.lctq-talk a { color: var(--lctq-text); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.lctq-talk a:hover { color: var(--lctq-muted); }

.lctq-fine { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--lctq-muted); }
.lctq-error { margin-top: 14px; padding: 10px 14px; background: #fcf0f1; color: #8a2424; border-radius: var(--lctq-radius); font-size: 15px; }
.lctq-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Result */
.lctq-result:focus { outline: none; }
.lctq-done { text-align: center; padding: 10px 0; }
.lctq-eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lctq-accent); }
.lctq-price { font-size: 46px; font-weight: 800; line-height: 1.1; margin: 0 0 6px; }
.lctq-thanks { font-size: 30px; font-weight: 800; margin: 0 0 6px; }
.lctq-meta, .lctq-route { margin: 0 0 4px; color: var(--lctq-muted); }
.lctq-route { font-weight: 600; color: var(--lctq-text); }
.lctq-msg { max-width: 520px; margin: 16px auto 8px; }
.lctq-qid { margin: 0 0 8px; font-size: 13px; color: var(--lctq-muted); }
.lctq-call a { font-weight: 700; color: var(--lctq-accent); }

@media (max-width: 480px) {
	.lctq { padding: 18px; border-radius: 10px; }
	.lctq-price { font-size: 42px; }
}
@media (max-width: 360px) {
	.lctq-row { grid-template-columns: 1fr; }
}
