/**
 * Push Start Driving — front-end components.
 *
 * Mobile-first and scoped under .pushstart-app so it never leaks into the
 * theme. Minimal and high-contrast: thick borders carry the structure, there
 * are no decorative effects, and nothing here exists that does not help a
 * visitor understand the service or schedule a lesson.
 */

.pushstart-app {
	font-family: var(--ps-font);
	font-weight: var(--ps-fw-normal);
	font-size: var(--ps-fs-200);
	line-height: 1.55;
	color: var(--ps-ink);
	background: var(--ps-surface);
	-webkit-font-smoothing: antialiased;
}

.pushstart-app *,
.pushstart-app *::before,
.pushstart-app *::after {
	box-sizing: border-box;
}

.pushstart-app img {
	max-width: 100%;
	height: auto;
}

.ps-container {
	width: 100%;
	max-width: var(--ps-container);
	margin-inline: auto;
	padding-inline: var(--ps-space-5);
}

.ps-section {
	padding-block: var(--ps-space-8);
}

/* ---------- Typography ---------- */

.pushstart-app h1,
.pushstart-app h2,
.pushstart-app h3,
.pushstart-app h4 {
	font-family: var(--ps-font-display);
	font-weight: var(--ps-fw-black);
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--ps-ink);
	margin: 0 0 var(--ps-space-4);
	text-wrap: balance;
}

.pushstart-app h1 { font-size: var(--ps-fs-600); }
.pushstart-app h2 { font-size: var(--ps-fs-500); }
.pushstart-app h3 { font-size: var(--ps-fs-400); }
.pushstart-app h4 { font-size: var(--ps-fs-300); }

.pushstart-app p {
	max-width: var(--ps-measure);
}

.ps-eyebrow {
	display: block;
	font-size: var(--ps-fs-100);
	font-weight: var(--ps-fw-bold);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ps-ink-soft);
	margin-bottom: var(--ps-space-3);
}

.ps-lead {
	font-size: var(--ps-fs-400);
	line-height: 1.45;
	color: var(--ps-ink);
}

.ps-muted {
	color: var(--ps-ink-soft);
}

/* ---------- Section heads ---------- */

.ps-section__head {
	max-width: var(--ps-measure);
	margin-bottom: var(--ps-space-6);
}

.ps-empty {
	color: var(--ps-ink-soft);
}

/* ---------- Cards ---------- */

.ps-card {
	background: var(--ps-surface);
	border: var(--ps-border-width) solid var(--ps-line);
	border-radius: var(--ps-radius);
	padding: var(--ps-space-6);
}

.ps-card__media {
	display: block;
	border: var(--ps-border-width) solid var(--ps-line);
	border-radius: var(--ps-radius-sm);
	overflow: hidden;
	margin-bottom: var(--ps-space-5);
	background: var(--ps-surface-2);
}

.ps-card__media img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* ---------- Buttons ---------- */

.ps-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--ps-space-2);
	font: inherit;
	font-size: var(--ps-fs-200);
	font-weight: var(--ps-fw-bold);
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	padding: 0.9em 1.75em;
	min-height: 44px;
	border: var(--ps-border-width) solid var(--ps-line);
	border-radius: var(--ps-radius-pill);
	background: var(--ps-surface);
	color: var(--ps-ink);
	transition: background var(--ps-transition), color var(--ps-transition);
}

.ps-btn:hover,
.ps-btn:focus-visible {
	background: var(--ps-ink);
	color: var(--ps-surface);
}

.ps-btn--primary {
	background: var(--ps-ink);
	color: var(--ps-surface);
}

.ps-btn--primary:hover,
.ps-btn--primary:focus-visible {
	background: var(--ps-accent);
	border-color: var(--ps-accent);
	color: var(--ps-accent-ink);
}

.ps-btn--block {
	display: flex;
	width: 100%;
}

.ps-actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ps-space-3);
}

/* ---------- Grid ---------- */

.ps-grid {
	display: grid;
	gap: var(--ps-space-5);
	grid-template-columns: 1fr;
}

/* ---------- Lists ---------- */

.ps-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--ps-space-3);
	max-width: var(--ps-measure);
}

.ps-list li {
	display: flex;
	align-items: flex-start;
	gap: var(--ps-space-3);
}

.ps-list li::before {
	content: "";
	flex: none;
	width: 0.55rem;
	height: 0.55rem;
	margin-top: 0.6em;
	border-radius: 50%;
	background: var(--ps-ink);
}

/* Numbered process steps. */
.ps-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: ps-step;
	display: grid;
	gap: var(--ps-space-4);
}

.ps-steps li {
	counter-increment: ps-step;
	display: flex;
	align-items: flex-start;
	gap: var(--ps-space-4);
	font-size: var(--ps-fs-300);
}

.ps-steps li::before {
	content: counter( ps-step );
	flex: none;
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	border: var(--ps-border-width) solid var(--ps-line);
	border-radius: 50%;
	font-weight: var(--ps-fw-black);
	font-size: var(--ps-fs-200);
	line-height: 1;
}

/* ---------- Pricing ---------- */

.ps-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.4em;
	margin: 0 0 var(--ps-space-4);
}

.ps-price__amount {
	font-family: var(--ps-font-display);
	font-weight: var(--ps-fw-black);
	font-size: var(--ps-fs-600);
	line-height: 1;
	letter-spacing: -0.03em;
}

.ps-price__unit {
	font-size: var(--ps-fs-100);
	color: var(--ps-ink-soft);
}

/* ---------- Definition rows (contact, hours) ---------- */

.ps-facts {
	display: grid;
	gap: var(--ps-space-5);
	margin: 0;
}

.ps-facts dt {
	font-size: var(--ps-fs-100);
	font-weight: var(--ps-fw-bold);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ps-ink-soft);
	margin-bottom: var(--ps-space-1);
}

.ps-facts dd {
	margin: 0;
	font-size: var(--ps-fs-300);
	font-weight: var(--ps-fw-bold);
}

.ps-facts a {
	color: inherit;
	text-decoration: none;
	border-bottom: 2px solid var(--ps-line);
}

.ps-facts a:hover {
	color: var(--ps-accent);
	border-color: var(--ps-accent);
}

/* ---------- FAQ accordion ---------- */

.ps-accordion {
	max-width: var(--ps-measure);
	border-top: var(--ps-border-width) solid var(--ps-line);
}

.ps-accordion__item {
	border-bottom: var(--ps-border-width) solid var(--ps-line);
}

.ps-accordion__trigger {
	font: inherit;
	font-size: var(--ps-fs-300);
	font-weight: var(--ps-fw-bold);
	width: 100%;
	text-align: left;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ps-space-4);
	padding: var(--ps-space-5) 0;
	background: transparent;
	color: var(--ps-ink);
	border: 0;
	cursor: pointer;
	min-height: 44px;
}

.ps-accordion__trigger::after {
	content: "+";
	flex: none;
	font-size: 1.5em;
	font-weight: var(--ps-fw-normal);
	line-height: 1;
}

.ps-accordion__trigger[aria-expanded="true"]::after {
	content: "\2212";
}

.ps-accordion__panel {
	padding: 0 0 var(--ps-space-5);
	color: var(--ps-ink-soft);
}

.ps-accordion__panel p {
	margin-top: 0;
}

.ps-accordion__panel[hidden] {
	display: none;
}

/* ---------- Booking embed ---------- */

.ps-embed {
	border: var(--ps-border-width) solid var(--ps-line);
	border-radius: var(--ps-radius);
	overflow: hidden;
	background: var(--ps-surface-2);
}

.ps-embed iframe {
	display: block;
	width: 100%;
	min-height: 640px;
	border: 0;
}

.ps-booking-card {
	max-width: var(--ps-measure);
}

/* ---------- Forms ---------- */

.ps-form {
	max-width: 34rem;
}

.ps-field {
	display: grid;
	gap: var(--ps-space-2);
	margin-bottom: var(--ps-space-4);
}

.ps-field label {
	font-weight: var(--ps-fw-bold);
	font-size: var(--ps-fs-200);
}

.ps-input,
.ps-textarea,
.ps-select {
	font: inherit;
	width: 100%;
	padding: 0.8em 1em;
	min-height: 44px;
	color: var(--ps-ink);
	background: var(--ps-surface);
	border: var(--ps-border-width) solid var(--ps-line);
	border-radius: var(--ps-radius-sm);
}

.ps-input:focus,
.ps-textarea:focus,
.ps-select:focus {
	outline: 3px solid var(--ps-accent);
	outline-offset: 2px;
}

.ps-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ps-form__status {
	margin-top: var(--ps-space-4);
}

@media (min-width: 640px) {
	.ps-form__row--2 {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: var(--ps-space-4);
	}
}

/* ---------- DMV practice test ---------- */

.ps-quiz {
	max-width: var(--ps-measure);
}

.ps-quiz__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--ps-space-3);
	margin-bottom: var(--ps-space-5);
}

.ps-quiz__list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: ps-question;
	display: grid;
	gap: var(--ps-space-5);
}

.ps-quiz__item {
	counter-increment: ps-question;
	border: var(--ps-border-width) solid var(--ps-line);
	border-radius: var(--ps-radius);
	padding: var(--ps-space-5);
}

.ps-quiz__item fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

.ps-quiz__question {
	display: block;
	font-weight: var(--ps-fw-bold);
	font-size: var(--ps-fs-300);
	line-height: 1.35;
	margin-bottom: var(--ps-space-4);
	padding: 0;
}

.ps-quiz__question::before {
	content: counter( ps-question ) ". ";
}

.ps-quiz__detail {
	color: var(--ps-ink-soft);
	margin-top: 0;
}

.ps-quiz__answers {
	display: grid;
	gap: var(--ps-space-2);
}

.ps-quiz__answer {
	display: flex;
	align-items: flex-start;
	gap: var(--ps-space-3);
	padding: var(--ps-space-3) var(--ps-space-4);
	border: 2px solid var(--ps-line);
	border-radius: var(--ps-radius-sm);
	cursor: pointer;
	min-height: 44px;
}

.ps-quiz__answer:hover {
	border-color: var(--ps-accent);
}

.ps-quiz__answer input {
	margin-top: 0.3em;
	flex: none;
	accent-color: var(--ps-accent);
}

.ps-quiz__item.is-correct { border-color: var(--ps-success); }
.ps-quiz__item.is-wrong { border-color: var(--ps-danger); }

.ps-quiz__feedback {
	margin: var(--ps-space-4) 0 0;
	padding: var(--ps-space-4);
	border-radius: var(--ps-radius-sm);
	background: var(--ps-surface-2);
	font-size: var(--ps-fs-200);
	color: var(--ps-ink);
}

.ps-quiz__foot {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ps-space-3);
	margin-top: var(--ps-space-6);
}

.ps-quiz__result {
	margin-top: var(--ps-space-5);
	font-weight: var(--ps-fw-bold);
}

/* ---------- Practice test, carousel mode ----------
 * Without JavaScript the quiz stays a readable list of every question and
 * answer. These rules only apply once the script adds .is-carousel.
 */

.ps-quiz__head {
	font-weight: var(--ps-fw-bold);
	font-size: var(--ps-fs-100);
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ps-ink-soft);
}

.ps-quiz.is-carousel .ps-quiz__list {
	gap: 0;
}

.ps-quiz.is-carousel .ps-quiz__item {
	/* Holds the card height steady between a short and a long question, so
	   moving through the test never shifts the page under the reader. */
	min-height: 19rem;
}

.ps-quiz__question:focus-visible {
	outline: 3px solid var(--ps-accent);
	outline-offset: 4px;
}

.ps-quiz__answer.is-correct {
	border-color: var(--ps-success);
	background: var(--ps-surface-2);
}

.ps-quiz__answer.is-wrong {
	border-color: var(--ps-danger);
}

.ps-quiz__answer input:disabled {
	cursor: default;
}

.ps-quiz__answer:has( input:disabled ) {
	cursor: default;
}

.ps-quiz__feedback > span,
.ps-quiz__feedback > a {
	display: block;
}

.ps-quiz__key {
	font-weight: var(--ps-fw-bold);
	margin-bottom: var(--ps-space-2);
}

.ps-quiz__source {
	margin-top: var(--ps-space-3);
	font-size: var(--ps-fs-100);
	color: var(--ps-ink-soft);
}

.ps-quiz__nav {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ps-space-3);
	justify-content: space-between;
	margin-top: var(--ps-space-5);
}

.ps-quiz__nav button[disabled] {
	opacity: 0.4;
	cursor: default;
}

.ps-quiz__note {
	max-width: var(--ps-measure);
	margin: var(--ps-space-5) 0;
	font-size: var(--ps-fs-100);
}

@media (min-width: 640px) {
	.ps-quiz.is-carousel .ps-quiz__item { min-height: 17rem; }
}

/* ---------- Badge ---------- */

.ps-badge {
	display: inline-block;
	padding: 0.25em 0.75em;
	border: 2px solid var(--ps-line);
	border-radius: var(--ps-radius-pill);
	font-size: var(--ps-fs-100);
	font-weight: var(--ps-fw-bold);
	line-height: 1.4;
}

/* ---------- Student dashboard ---------- */

.ps-dashboard__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--ps-space-4);
	margin-bottom: var(--ps-space-7);
}

.ps-dashboard__head h2 {
	margin: 0;
}

.ps-dashboard__stats {
	margin-bottom: var(--ps-space-8);
}

.ps-progress-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--ps-space-4);
	margin-bottom: var(--ps-space-3);
}

.ps-progress-card__head h4 {
	margin: 0;
}

.ps-progress-card__head a {
	color: var(--ps-ink);
	text-decoration: none;
}

.ps-progress-card.is-complete {
	border-color: var(--ps-success);
}

.ps-progress-card__notes,
.ps-progress-card__date {
	color: var(--ps-ink-soft);
	font-size: var(--ps-fs-200);
}

.ps-progress-card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--ps-space-3);
	margin-top: var(--ps-space-4);
}

.ps-status {
	font-size: var(--ps-fs-100);
	font-weight: var(--ps-fw-bold);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ps-ink-soft);
	white-space: nowrap;
}

/* ---------- Notices ---------- */

.ps-notice {
	padding: var(--ps-space-4) var(--ps-space-5);
	border: var(--ps-border-width) solid var(--ps-line);
	border-radius: var(--ps-radius-sm);
	background: var(--ps-surface-2);
}

.ps-notice--success { border-color: var(--ps-success); }
.ps-notice--error { border-color: var(--ps-danger); }

.ps-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------- Responsive (mobile-first up) ---------- */

@media (min-width: 640px) {
	.ps-grid--2,
	.ps-grid--3,
	.ps-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.ps-facts--row { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
	.pushstart-app h1 { font-size: var(--ps-fs-700); }
	.pushstart-app h2 { font-size: var(--ps-fs-600); }
	.ps-section { padding-block: var(--ps-space-9); }
	.ps-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.ps-grid--4 { grid-template-columns: repeat(4, 1fr); }
	.ps-facts--row { grid-template-columns: repeat(3, 1fr); }
	.ps-steps { grid-template-columns: repeat(2, 1fr); gap: var(--ps-space-5); }
}

/* ---------- Accessibility ---------- */

.pushstart-app :focus-visible {
	outline: 3px solid var(--ps-accent);
	outline-offset: 3px;
}

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