/* =====================================================================
   EduCBT Pro quote request form.
   Self-contained: it borrows the theme's tokens when they exist and falls
   back to the same values when the theme is different, so the form looks
   the same on any DeOdevs site.
   ===================================================================== */

.educbt-quote {
	--eq-brand: var(--brand, #0a84ff);
	--eq-brand-press: var(--brand-press, #0066d6);
	--eq-brand-soft: var(--brand-soft, rgba(10, 132, 255, .14));
	--eq-surface: var(--surface, #181818);
	--eq-surface-2: var(--surface-2, #1f1f1f);
	--eq-line: var(--separator, rgba(255, 255, 255, .12));
	--eq-text: var(--text, #ffffff);
	--eq-text-2: var(--text-2, #d6d6d6);
	--eq-text-3: var(--text-3, #9b9b9b);
	--eq-danger: #ff6b5e;
	--eq-radius: 20px;
	--eq-radius-sm: 12px;
	--eq-font: var(--font, "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif);
	--eq-ease: cubic-bezier(.22, 1, .36, 1);

	background: var(--eq-surface);
	border: 1px solid var(--eq-line);
	border-radius: var(--eq-radius);
	padding: clamp(20px, 3vw, 36px);
	color: var(--eq-text-2);
	font-family: var(--eq-font);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .24), 0 18px 48px rgba(0, 0, 0, .28);
}

.educbt-quote [hidden] { display: none !important; }

.educbt-quote__noscript {
	margin: 0 0 18px;
	padding: 12px 14px;
	border-radius: var(--eq-radius-sm);
	background: var(--eq-surface-2);
	font-size: 14px;
}

/* ---------------- Progress ---------------- */
.educbt-quote__progress {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	margin: 0 0 clamp(20px, 3vw, 30px);
	padding: 0;
}
.educbt-quote__progress-item {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 0;
	min-width: 0;
	padding-right: 8px;
	font-size: 13px;
	font-weight: 500;
	color: var(--eq-text-3);
	position: relative;
}
.educbt-quote__progress-item::after {
	content: "";
	position: absolute;
	right: 4px;
	top: 50%;
	width: 12px;
	height: 1px;
	background: var(--eq-line);
}
.educbt-quote__progress-item:last-child::after { display: none; }
.educbt-quote__progress-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border-radius: 999px;
	border: 1px solid var(--eq-line);
	background: transparent;
	font-size: 12px;
	font-weight: 600;
	color: var(--eq-text-3);
	transition: background .25s var(--eq-ease), color .25s var(--eq-ease), border-color .25s var(--eq-ease);
}
.educbt-quote__progress-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.educbt-quote__progress-item.is-current { color: var(--eq-text); }
.educbt-quote__progress-item.is-current .educbt-quote__progress-num {
	background: var(--eq-brand);
	border-color: var(--eq-brand);
	color: #fff;
}
.educbt-quote__progress-item.is-done { color: var(--eq-text-2); }
.educbt-quote__progress-item.is-done .educbt-quote__progress-num {
	background: var(--eq-brand-soft);
	border-color: transparent;
	color: var(--eq-brand);
}

/* ---------------- Steps ---------------- */
.educbt-quote__step {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}
.educbt-quote__legend {
	display: block;
	padding: 0;
	margin: 0 0 20px;
}
.educbt-quote__legend-title {
	display: block;
	font-size: 20px;
	line-height: 28px;
	font-weight: 600;
	color: var(--eq-text);
	letter-spacing: -0.01em;
}
.educbt-quote__legend-title:focus { outline: none; }
.educbt-quote__legend-hint {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	line-height: 20px;
	color: var(--eq-text-3);
}

.educbt-quote__row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 16px;
}

/* The honeypot is for bots only: never visible, never focusable, never read. */
.educbt-honeypot {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* ---------------- Fields ---------------- */
.educbt-field {
	display: grid;
	gap: 6px;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	min-width: 0;
}
.educbt-field--choice .educbt-field__label { margin-bottom: 2px; }
.educbt-field__label {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	font-size: 13px;
	line-height: 18px;
	font-weight: 600;
	color: var(--eq-text-2);
	padding: 0;
}
.educbt-field__req { color: var(--eq-brand); font-weight: 600; }
.educbt-field__tag {
	font-size: 12px;
	line-height: 16px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--eq-text-3);
	background: var(--eq-surface-2);
	border-radius: 999px;
	padding: 2px 8px;
}
.educbt-field__hint,
.educbt-field__meta {
	margin: 0;
	font-size: 12px;
	line-height: 16px;
	color: var(--eq-text-3);
}
.educbt-field__error {
	margin: 0;
	font-size: 13px;
	line-height: 18px;
	font-weight: 500;
	color: var(--eq-danger);
}

.educbt-quote input[type="text"],
.educbt-quote input[type="email"],
.educbt-quote input[type="url"],
.educbt-quote input[type="tel"],
.educbt-quote select,
.educbt-quote textarea {
	width: 100%;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 16px;
	line-height: 24px;
	color: var(--eq-text);
	background: var(--eq-surface-2);
	border: 1px solid var(--eq-line);
	border-radius: var(--eq-radius-sm);
	transition: border-color .2s var(--eq-ease), box-shadow .2s var(--eq-ease), background .2s var(--eq-ease);
	appearance: none;
	-webkit-appearance: none;
}
.educbt-quote textarea { min-height: 96px; resize: vertical; }
.educbt-quote input::placeholder,
.educbt-quote textarea::placeholder { color: var(--eq-text-3); opacity: 1; }

.educbt-quote input:hover,
.educbt-quote select:hover,
.educbt-quote textarea:hover { border-color: rgba(255, 255, 255, .24); }

.educbt-quote input:focus,
.educbt-quote select:focus,
.educbt-quote textarea:focus {
	outline: none;
	border-color: var(--eq-brand);
	box-shadow: 0 0 0 3px var(--eq-brand-soft);
}

.educbt-quote [aria-invalid="true"] {
	border-color: var(--eq-danger) !important;
	box-shadow: 0 0 0 3px rgba(255, 107, 94, .18);
}

.educbt-quote input:disabled,
.educbt-quote select:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.educbt-select { position: relative; }
.educbt-select::after {
	content: "";
	position: absolute;
	right: 14px;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -6px;
	border-right: 1.5px solid var(--eq-text-3);
	border-bottom: 1.5px solid var(--eq-text-3);
	transform: rotate(45deg);
	pointer-events: none;
}
.educbt-select select { padding-right: 38px; cursor: pointer; }
.educbt-select option { background: var(--eq-surface); color: var(--eq-text); }

/* Choice chips */
.educbt-choices {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
	gap: 8px;
}
.educbt-choice {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 46px;
	padding: 11px 14px;
	border: 1px solid var(--eq-line);
	border-radius: var(--eq-radius-sm);
	background: var(--eq-surface-2);
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	color: var(--eq-text-2);
	cursor: pointer;
	transition: border-color .2s var(--eq-ease), background .2s var(--eq-ease), color .2s var(--eq-ease);
}
.educbt-choice input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
}
.educbt-choice:hover { border-color: rgba(255, 255, 255, .28); color: var(--eq-text); }
.educbt-choice:has(input:checked) {
	border-color: var(--eq-brand);
	background: var(--eq-brand-soft);
	color: var(--eq-text);
}
.educbt-choice:has(input:focus-visible) {
	outline: 2px solid var(--eq-brand);
	outline-offset: 2px;
}

/* Phone: code and number on one line */
.educbt-phone {
	display: grid;
	grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
	gap: 8px;
}
.educbt-select--code select { font-size: 14px; }

/* Switch */
.educbt-toggle {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	margin: 4px 0 18px;
	padding: 14px;
	border: 1px solid var(--eq-line);
	border-radius: var(--eq-radius-sm);
	background: var(--eq-surface-2);
	cursor: pointer;
	font-size: 14px;
	line-height: 20px;
	color: var(--eq-text-2);
}
.educbt-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.educbt-toggle__track {
	position: relative;
	width: 40px;
	height: 24px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .18);
	transition: background .2s var(--eq-ease);
}
.educbt-toggle__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform .2s var(--eq-ease);
}
.educbt-toggle:has(input:checked) { border-color: var(--eq-brand); background: var(--eq-brand-soft); }
.educbt-toggle:has(input:checked) .educbt-toggle__track { background: var(--eq-brand); }
.educbt-toggle:has(input:checked) .educbt-toggle__track::after { transform: translateX(16px); }
.educbt-toggle:has(input:focus-visible) { outline: 2px solid var(--eq-brand); outline-offset: 2px; }

/* Consent */
.educbt-consent {
	margin-top: 4px;
	padding-top: 16px;
	border-top: 1px solid var(--eq-line);
}
.educbt-check {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	font-size: 14px;
	line-height: 21px;
	color: var(--eq-text-2);
	cursor: pointer;
	margin-bottom: 12px;
}
.educbt-check input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	accent-color: var(--eq-brand);
	cursor: pointer;
}
.educbt-check--quiet { color: var(--eq-text-3); margin-bottom: 0; }
.educbt-check a { color: var(--eq-brand); text-decoration: underline; text-underline-offset: 2px; }

.educbt-quote__note {
	margin: -4px 0 16px;
	font-size: 12px;
	line-height: 18px;
	color: var(--eq-text-3);
	max-width: 60ch;
}

/* ---------------- Navigation ---------------- */
.educbt-quote__nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--eq-line);
}
.educbt-quote__status {
	margin: 12px 0 0;
	min-height: 20px;
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	color: var(--eq-text-2);
}
.educbt-quote__status:empty { min-height: 0; }

.educbt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: inherit;
	font-size: 15px;
	line-height: 20px;
	font-weight: 600;
	letter-spacing: -0.01em;
	cursor: pointer;
	text-decoration: none;
	transition: background .2s var(--eq-ease), color .2s var(--eq-ease), border-color .2s var(--eq-ease), transform .15s var(--eq-ease);
}
.educbt-btn--primary {
	background: var(--eq-brand);
	color: #fff;
	box-shadow: 0 1px 2px rgba(10, 132, 255, .3), 0 8px 20px rgba(10, 132, 255, .18);
}
.educbt-btn--primary:hover { background: var(--eq-brand-press); color: #fff; }
.educbt-btn--quiet {
	background: transparent;
	border-color: var(--eq-line);
	color: var(--eq-text);
}
.educbt-btn--quiet:hover { background: var(--eq-surface-2); color: var(--eq-text); }
.educbt-btn:active { transform: scale(.985); }
.educbt-btn:disabled { opacity: .55; cursor: default; transform: none; }
.educbt-btn:focus-visible { outline: 2px solid var(--eq-brand); outline-offset: 3px; }
.educbt-quote__nav [data-submit] { margin-left: auto; }

/* ---------------- Review ---------------- */
.educbt-review { display: grid; gap: 12px; }
.educbt-review__block {
	border: 1px solid var(--eq-line);
	border-radius: var(--eq-radius-sm);
	padding: 16px 18px;
	background: var(--eq-surface-2);
}
.educbt-review__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}
.educbt-review__head h3 {
	margin: 0;
	font-size: 13px;
	line-height: 18px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--eq-text-3);
}
.educbt-review__edit {
	border: 0;
	background: none;
	padding: 2px 4px;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--eq-brand);
	cursor: pointer;
	border-radius: 6px;
}
.educbt-review__edit:hover { text-decoration: underline; text-underline-offset: 2px; }
.educbt-review__edit:focus-visible { outline: 2px solid var(--eq-brand); outline-offset: 2px; }
.educbt-review__list { margin: 0; display: grid; }
.educbt-review__row {
	display: grid;
	grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
	gap: 12px;
	padding: 7px 0;
	border-top: 1px solid var(--eq-line);
}
.educbt-review__row:first-child { border-top: 0; padding-top: 0; }
.educbt-review__row dt { font-size: 13px; line-height: 19px; color: var(--eq-text-3); }
.educbt-review__row dd {
	margin: 0;
	font-size: 14px;
	line-height: 19px;
	font-weight: 500;
	color: var(--eq-text);
	overflow-wrap: anywhere;
	white-space: pre-wrap;
}

/* ---------------- Success ---------------- */
.educbt-quote__success {
	text-align: center;
	padding: clamp(12px, 3vw, 28px) 0;
}
.educbt-quote__success:focus { outline: none; }
.educbt-quote__success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 16px;
	border-radius: 999px;
	background: var(--eq-brand-soft);
	color: var(--eq-brand);
}
.educbt-quote__success-icon svg { width: 26px; height: 26px; }
.educbt-quote__success h2 {
	margin: 0 0 10px;
	font-size: 24px;
	line-height: 32px;
	font-weight: 600;
	color: var(--eq-text);
	letter-spacing: -0.01em;
}
.educbt-quote__success p {
	margin: 0 auto 16px;
	max-width: 58ch;
	font-size: 15px;
	line-height: 24px;
	color: var(--eq-text-2);
}
.educbt-quote__reference {
	display: inline-flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 22px;
	border: 1px solid var(--eq-line);
	border-radius: var(--eq-radius-sm);
	background: var(--eq-surface-2);
	margin-bottom: 20px !important;
}
.educbt-quote__reference span {
	font-size: 11px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--eq-text-3);
}
.educbt-quote__reference strong {
	font-size: 18px;
	line-height: 24px;
	letter-spacing: .02em;
	color: var(--eq-text);
}
.educbt-quote__success-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin: 0 !important;
}

/* ---------------- Small screens ---------------- */
@media (max-width: 640px) {
	.educbt-quote__row { grid-template-columns: 1fr; }
	.educbt-quote__nav { flex-wrap: wrap; }
	.educbt-quote__nav .educbt-btn { flex: 1 1 auto; }
	.educbt-quote__nav [data-submit] { margin-left: 0; }
	.educbt-quote__progress-label { display: none; }
	.educbt-quote__progress-item { flex: 0 0 auto; padding-right: 0; }
	.educbt-quote__progress-item::after { position: static; width: 16px; margin: 0 6px; }
	.educbt-quote__progress { justify-content: center; gap: 0; }
	.educbt-review__row { grid-template-columns: 1fr; gap: 2px; }
	.educbt-phone { grid-template-columns: minmax(0, 120px) minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.educbt-quote *,
	.educbt-quote *::before,
	.educbt-quote *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}
