/* SearchEV Leads — front-end styles
 * Scoped under .sev- prefixes so they won't clash with the theme/Elementor.
 * Accent colour is driven by the --sev-primary CSS variable (set per-element).
 */

.sev-cta-group,
.sev-inline,
.sev-modal,
.sev-sticky-bar,
.sev-dealers {
	--sev-primary: #0a7d3c;
	--sev-primary-dark: #086a33;
	--sev-text: #1a1f24;
	--sev-muted: #5b6670;
	--sev-border: #d8dee4;
	--sev-bg: #ffffff;
	--sev-radius: 12px;
	--sev-shadow: 0 18px 50px rgba(0, 0, 0, .22);
	font-family: inherit;
	box-sizing: border-box;
}

.sev-cta-group *,
.sev-inline *,
.sev-modal *,
.sev-sticky-bar *,
.sev-dealers * { box-sizing: border-box; }

/* ---------- Buttons ---------- */
.sev-cta-group {
	display: inline-flex;
	gap: 10px;
	flex-wrap: wrap;
}

.sev-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	padding: 13px 22px;
	border-radius: var(--sev-radius);
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .08s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
	text-decoration: none;
	-webkit-appearance: none;
	appearance: none;
}
.sev-btn:active { transform: translateY(1px); }

.sev-btn--primary {
	background: var(--sev-primary);
	color: #fff;
	border-color: var(--sev-primary);
}
.sev-btn--primary:hover { background: var(--sev-primary-dark); border-color: var(--sev-primary-dark); color: #fff; }

.sev-btn--outline {
	background: #fff;
	color: var(--sev-primary);
	border-color: var(--sev-primary);
}
.sev-btn--outline:hover { background: var(--sev-primary); color: #fff; }

.sev-btn--block { width: 100%; padding: 15px 22px; font-size: 16px; }
.sev-btn[disabled] { opacity: .6; cursor: not-allowed; }

/* ---------- Modal ---------- */
.sev-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.sev-modal.is-open { display: flex; }
.sev-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(13, 18, 22, .55);
	backdrop-filter: blur(2px);
}
.sev-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: 92vh;
	overflow-y: auto;
	background: var(--sev-bg);
	border-radius: 16px;
	box-shadow: var(--sev-shadow);
	animation: sevPop .18s ease;
}
@keyframes sevPop {
	from { opacity: 0; transform: translateY(12px) scale(.98); }
	to   { opacity: 1; transform: none; }
}
.sev-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 34px;
	height: 34px;
	border: none;
	background: #f1f3f5;
	border-radius: 50%;
	font-size: 22px;
	line-height: 1;
	color: #555;
	cursor: pointer;
	z-index: 2;
}
.sev-modal__close:hover { background: #e6e9ec; }
.sev-modal__body { padding: 26px 24px 22px; }
.sev-modal__pane { display: none; }
.sev-modal__pane.is-active { display: block; }

/* ---------- Form ---------- */
.sev-form__head { margin-bottom: 16px; }
.sev-form__title { margin: 0 0 4px; font-size: 21px; font-weight: 800; color: var(--sev-text); }
.sev-form__sub { margin: 0; font-size: 13.5px; color: var(--sev-muted); line-height: 1.45; }

/* One field per row — always full width (no two-column layout). */
.sev-row { display: block; }
.sev-row .sev-field { width: 100%; min-width: 0; }
.sev-field { margin-bottom: 13px; }
.sev-field > label {
	display: block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--sev-text);
	margin-bottom: 5px;
}

.sev-field input[type="text"],
.sev-field input[type="tel"],
.sev-field input[type="email"],
.sev-field input[type="date"],
.sev-field select {
	width: 100%;
	padding: 11px 12px;
	font-size: 15px;
	color: var(--sev-text);
	background: #fff;
	border: 1.5px solid var(--sev-border);
	border-radius: 10px;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.sev-field input:focus,
.sev-field select:focus {
	border-color: var(--sev-primary);
	box-shadow: 0 0 0 3px rgba(10, 125, 60, .12);
}
.sev-field input.sev-error,
.sev-field select.sev-error { border-color: #d63638; box-shadow: 0 0 0 3px rgba(214, 54, 56, .12); }

.sev-field--vehicle {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.sev-field--vehicle > label { margin-bottom: 0; }

.sev-vehicle-pill {
	display: inline-block;
	padding: 8px 14px;
	background: rgba(10, 125, 60, .08);
	color: var(--sev-primary);
	font-weight: 700;
	border-radius: 8px;
	font-size: 14px;
}

.sev-phone { display: flex; align-items: stretch; }
.sev-phone__cc {
	display: flex;
	align-items: center;
	padding: 0 11px;
	background: #f1f3f5;
	border: 1.5px solid var(--sev-border);
	border-right: none;
	border-radius: 10px 0 0 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--sev-muted);
}
.sev-phone input { border-radius: 0 10px 10px 0 !important; }

.sev-consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12.5px;
	color: var(--sev-muted);
	line-height: 1.45;
	font-weight: 400;
	cursor: pointer;
}
.sev-consent input { margin-top: 2px; }

.sev-hint { display: block; font-size: 12px; color: var(--sev-muted); margin-top: 4px; }

.sev-foot-note {
	margin: 10px 0 0;
	font-size: 11.5px;
	color: var(--sev-muted);
	text-align: center;
}

/* Honeypot — visually hidden but present for bots */
.sev-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Status / success */
.sev-form__status { margin-top: 12px; font-size: 14px; }
.sev-form__status.is-error {
	color: #b32d2e;
	background: #fcebea;
	border: 1px solid #f3c2c2;
	padding: 10px 12px;
	border-radius: 8px;
}
.sev-form.is-success .sev-form__status {
	display: block;
}
.sev-success {
	text-align: center;
	padding: 8px 4px 4px;
}
.sev-success__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: rgba(10, 125, 60, .12);
	color: var(--sev-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	font-weight: 700;
}
.sev-success__title { font-size: 19px; font-weight: 800; margin: 0 0 6px; color: var(--sev-text); }
.sev-success__msg { font-size: 14px; color: var(--sev-muted); margin: 0; line-height: 1.5; }

/* ---------- Inline form card ---------- */
.sev-inline .sev-form {
	background: #fff;
	border: 1px solid var(--sev-border);
	border-radius: 16px;
	padding: 24px 22px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
	max-width: 460px;
}

/* ---------- Sticky bar ---------- */
.sev-sticky-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9998;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px;
	background: #fff;
	border-top: 1px solid var(--sev-border);
	box-shadow: 0 -6px 24px rgba(0, 0, 0, .08);
}
.sev-sticky-bar__name { font-weight: 800; font-size: 15px; color: var(--sev-text); }
.sev-sticky-bar__btns { display: flex; gap: 8px; }
.sev-sticky-bar .sev-btn { padding: 11px 16px; font-size: 14px; }

@media (max-width: 600px) {
	.sev-row { flex-direction: column; gap: 0; }
	.sev-sticky-bar { flex-direction: column; gap: 8px; padding: 10px; }
	.sev-sticky-bar__name { display: none; }
	.sev-sticky-bar__btns { width: 100%; }
	.sev-sticky-bar__btns .sev-btn { flex: 1; }
	.sev-modal__body { padding: 24px 18px 18px; }
}

/* ============================================================
 * Multi-step forms
 * ============================================================ */

/* Steps: only the active one is visible. */
.sev-step { display: none; animation: sevStepIn .22s ease; }
.sev-step.is-active { display: block; }
@keyframes sevStepIn {
	from { opacity: 0; transform: translateX(8px); }
	to   { opacity: 1; transform: none; }
}

/* Progress indicator */
.sev-progress {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
	list-style: none;
	margin: 4px 0 20px;
	padding: 0;
}
.sev-progress__step {
	position: relative;
	flex: 0 0 auto;
	width: 118px;          /* fixed slot keeps the stepper compact + left-aligned */
	text-align: left;
	font-size: 11.5px;
	color: var(--sev-muted);
	cursor: default;
}
.sev-progress__step:last-child { width: auto; }
.sev-progress__step.is-done { cursor: pointer; }
/* Connector runs to the RIGHT of each dot (skipped on the last step). */
.sev-progress__step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 14px;
	left: 30px;
	width: calc(100% - 34px);
	height: 2px;
	background: var(--sev-border);
	z-index: 0;
}
.sev-progress__step.is-done::after { background: var(--sev-primary); }
.sev-progress__dot {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	margin: 0 0 6px;       /* left aligned (no auto centring) */
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--sev-border);
	font-weight: 700;
	font-size: 13px;
	color: var(--sev-muted);
	transition: all .18s ease;
}
.sev-progress__step.is-active .sev-progress__dot {
	border-color: var(--sev-primary);
	color: var(--sev-primary);
	box-shadow: 0 0 0 4px rgba(10, 125, 60, .12);
}
.sev-progress__step.is-done .sev-progress__dot {
	background: var(--sev-primary);
	border-color: var(--sev-primary);
	color: #fff;
	font-size: 0;
}
.sev-progress__step.is-done .sev-progress__dot::after { content: "\2713"; font-size: 15px; }
.sev-progress__label { display: block; line-height: 1.2; }
.sev-progress__step.is-active .sev-progress__label { color: var(--sev-text); font-weight: 700; }

/* Step navigation buttons */
.sev-nav {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
}
.sev-nav .sev-back { margin-right: auto; }
.sev-nav .sev-next,
.sev-nav .sev-submit { margin-left: auto; min-width: 150px; }
.sev-btn--ghost {
	background: transparent;
	color: var(--sev-muted);
	border-color: var(--sev-border);
}
.sev-btn--ghost:hover { background: #f1f3f5; color: var(--sev-text); }

/* Quick-pick date chips */
.sev-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sev-chip {
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 999px;
	border: 1.5px solid var(--sev-border);
	background: #fff;
	color: var(--sev-text);
	cursor: pointer;
	transition: all .12s ease;
}
.sev-chip:hover { border-color: var(--sev-primary); color: var(--sev-primary); }
.sev-chip.is-active {
	background: var(--sev-primary);
	border-color: var(--sev-primary);
	color: #fff;
}

/* Time-slot selector */
.sev-slots { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.sev-slot {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 52px;
	padding: 8px 6px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--sev-text);
	background: #fff;
	border: 1.5px solid var(--sev-border);
	border-radius: 10px;
	cursor: pointer;
	transition: all .12s ease;
}
.sev-slot input { position: absolute; opacity: 0; pointer-events: none; }
.sev-slot:hover { border-color: var(--sev-primary); }
.sev-slot.is-selected {
	border-color: var(--sev-primary);
	background: rgba(10, 125, 60, .08);
	color: var(--sev-primary);
	box-shadow: 0 0 0 3px rgba(10, 125, 60, .1);
}
.sev-slots.sev-error { outline: 2px solid rgba(214, 54, 56, .35); outline-offset: 4px; border-radius: 12px; }

/* ============================================================
 * Dealer directory  [sev_dealers]
 * ============================================================ */
.sev-dealers { font-family: inherit; color: var(--sev-text); }
.sev-dealers__title { font-size: 24px; font-weight: 800; margin: 0 0 16px; }

.sev-dealers__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	padding: 16px;
	margin-bottom: 22px;
	background: #f7f9fa;
	border: 1px solid var(--sev-border);
	border-radius: 14px;
}
.sev-ddl { display: flex; flex-direction: column; gap: 5px; min-width: 180px; flex: 1; }
.sev-ddl label { font-size: 12px; font-weight: 700; color: var(--sev-muted); text-transform: uppercase; letter-spacing: .03em; }
.sev-filter {
	width: 100%;
	padding: 11px 12px;
	font-size: 15px;
	color: var(--sev-text);
	background: #fff;
	border: 1.5px solid var(--sev-border);
	border-radius: 10px;
	outline: none;
	cursor: pointer;
}
.sev-filter:focus { border-color: var(--sev-primary); box-shadow: 0 0 0 3px rgba(10, 125, 60, .12); }

.sev-dealers__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	transition: opacity .15s ease;
}
.sev-dealers__grid[data-cols="1"] { grid-template-columns: 1fr; }
.sev-dealers__grid[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.sev-dealers__grid[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.sev-dealers__grid.is-loading { opacity: .45; pointer-events: none; }
.sev-dealers__empty {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--sev-muted);
	padding: 36px 12px;
	font-size: 15px;
}

.sev-dealer-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: #fff;
	border: 1px solid var(--sev-border);
	border-radius: 14px;
	padding: 18px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
	transition: transform .12s ease, box-shadow .15s ease;
}
.sev-dealer-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .1); }
.sev-dealer-card__head { display: flex; flex-direction: column; gap: 8px; }
.sev-dealer-card__name { font-size: 17px; font-weight: 800; margin: 0; color: var(--sev-text); line-height: 1.3; }
.sev-dealer-card__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.sev-badge {
	font-size: 11px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 999px;
	background: rgba(10, 125, 60, .1);
	color: var(--sev-primary);
	text-transform: capitalize;
}
.sev-badge--scooter { background: #eef2ff; color: #4f46e5; }
.sev-badge--bike { background: #fff1e6; color: #c2410c; }
.sev-badge--car { background: rgba(10, 125, 60, .1); color: var(--sev-primary); }
.sev-dealer-card__brands { font-size: 13px; color: var(--sev-muted); margin: 0; font-weight: 600; }
.sev-dealer-card__loc,
.sev-dealer-card__time {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	font-size: 13px;
	color: var(--sev-muted);
	margin: 0;
	line-height: 1.4;
}
.sev-ic { flex-shrink: 0; }
.sev-dealer-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.sev-btn--sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; flex: 1; min-width: 84px; }

@media (max-width: 900px) {
	.sev-dealers__grid,
	.sev-dealers__grid[data-cols="3"],
	.sev-dealers__grid[data-cols="4"] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.sev-dealers__grid,
	.sev-dealers__grid[data-cols="2"],
	.sev-dealers__grid[data-cols="3"],
	.sev-dealers__grid[data-cols="4"] { grid-template-columns: 1fr; }
	.sev-ddl { min-width: 100%; }
	.sev-slots { grid-template-columns: 1fr; }
	.sev-progress__label { font-size: 10.5px; }
	.sev-progress__step { width: 92px; }
	.sev-progress__step:last-child { width: auto; }
	.sev-nav { flex-wrap: wrap; }
	.sev-nav .sev-next, .sev-nav .sev-submit { width: 100%; min-width: 0; }
}

/* ============================================================
 * Full-width CTA buttons + full-width inline form (shortcode opts)
 * ============================================================ */
.sev-cta-group--full {
	display: flex;
	width: 100%;
	gap: 10px;
}
.sev-cta-group--full .sev-btn { flex: 1 1 0; width: 100%; }
/* A single full-width button shortcode (div wrapper). */
div.sev-cta-group--full { display: flex; }

/* Inline form stretched to its container. */
.sev-inline--full .sev-form { max-width: none; width: 100%; }

/* Allow the inline form's primary buttons to take a custom text colour. */
.sev-inline .sev-btn--primary { color: var(--sev-btn-color, #fff); }

@media (max-width: 600px) {
	.sev-cta-group--full { flex-direction: column; }
	.sev-cta-group--full .sev-btn { width: 100%; }
}
