/**
 * Component: Getting started (.akx-getting-started)
 *
 * Bloque "10 · Simple installation journey" de Figma: cabecera centrada,
 * línea de tiempo de 4 (o N) pasos numerados dinámicamente a partir del
 * índice del repeater, y una fila de CTA con el mini-formulario de ZIP
 * (ccb_child_cta_button(), functions.php).
 * Reutilizable en otras plantillas: basta con enqueuear este fichero ahí.
 */

.akx-getting-started {
	--akx-getting-started-navy: #141B4D;
	--akx-getting-started-red: #CB333B;
	--akx-getting-started-font: 'Jost', sans-serif;

	background: #FFFFFF;
	padding-block: 56px;
}

@media (min-width: 900px) {
	.akx-getting-started {
		padding-block: 80px;
	}
}

.akx-getting-started__container {
	max-width: 1136px;
	margin-inline: auto;
	padding-inline: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 44px;
}

/* ---------- Section head ---------- */

.akx-getting-started__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
	margin-inline: auto;
	max-width: 700px;
}

.akx-getting-started__eyebrow {
	font: 700 12.5px/16px var(--akx-getting-started-font);
	letter-spacing: 1.75px;
	text-transform: uppercase;
	color: var(--akx-getting-started-red);
	margin: 0;
}

.akx-getting-started__title {
	font: 700 clamp(26px, 4vw, 33px)/40px var(--akx-getting-started-font);
	letter-spacing: -0.33px;
	color: var(--akx-getting-started-navy);
	margin: 0;
}

.akx-getting-started__description {
	font: 400 16px/25px var(--akx-getting-started-font);
	color: #63666A;
	margin: 0;
}

/* ---------- Media (opcional, entre la cabecera y la línea de tiempo) ----------
   Solo lo usa "How It Works" (how-it-works.php, vídeo de la instalación):
   la home no lo imprime. Mismo patrón que .akx-hero-banner__media (póster +
   velo + botón de play, se abre en grande con el lightbox Lity del padre),
   en proporción 543 / 356 del Figma. */

.akx-getting-started__media {
	width: 100%;
	max-width: 543px;
	margin-inline: auto;
}

.akx-getting-started__media-thumb {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 543 / 356;
	border-radius: 12px;
	overflow: hidden;
	background: rgba(20, 27, 77, 0.06);
}

.akx-getting-started__media-image,
.akx-getting-started__media-video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	background: #000;
}

.akx-getting-started__media-scrim {
	position: absolute;
	inset: 0;
	background: rgba(20, 27, 77, 0.12);
	pointer-events: none;
}

.akx-getting-started__media-play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: rgba(20, 27, 77, 0.62);
	border: 2px solid rgba(255, 255, 255, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
}

.akx-getting-started__media-play-icon {
	width: 0;
	height: 0;
	margin-left: 4px;
	border-top: 9px solid transparent;
	border-bottom: 9px solid transparent;
	border-left: 14px solid #FFFFFF;
}

/* ---------- Timeline ---------- */

.akx-getting-started__timeline {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 32px;
}

@media (min-width: 900px) {
	.akx-getting-started__timeline {
		flex-direction: row;
		align-items: flex-start;
	}
}

.akx-getting-started__step {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

/* flex-basis 0 de arriba solo tiene sentido en fila; en columna (móvil,
   <900px) colapsaría la altura a 0. Esta regla debe ir DESPUÉS de la base:
   con la misma especificidad, en CSS gana la última declarada, no la que
   "parezca" más específica por estar en un @media. */
@media (max-width: 899px) {
	.akx-getting-started__step {
		flex: none;
	}
}

.akx-getting-started__step-num {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: var(--akx-getting-started-navy);
	font: 700 16px/20px var(--akx-getting-started-font);
	color: #FFFFFF;
}

.akx-getting-started__step-copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding-inline: 14px;
	max-width: 284px;
}

.akx-getting-started__step-title {
	font: 700 15px/20px var(--akx-getting-started-font);
	color: var(--akx-getting-started-navy);
	margin: 0;
}

.akx-getting-started__step-description {
	font: 400 14.5px/23px var(--akx-getting-started-font);
	color: #63666A;
	margin: 0;
}

/* ---------- ZIP form (CTA) ---------- */

.akx-getting-started__form {
	display: flex;
	justify-content: center;
}

/* Botón "Get instant pricing" → /get-it-installed/ (ccb_child_cta_button(), sustituye al formulario de ZIP). */
.akx-getting-started__form .akx-cta-button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	height: 52px;
	padding-inline: 32px;
	background: var(--akx-getting-started-red);
	box-shadow: 0 4px 12px rgba(203, 51, 59, 0.18);
	border-radius: 10px;
	font: 600 18px/24px var(--akx-getting-started-font);
	color: #FFFFFF;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.akx-getting-started__form .akx-cta-button:hover {
	background: #A8272E;
	color: #FFFFFF;
}

.akx-getting-started__form .akx-cta-button:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
}

/* Móvil (Figma 390): el botón ocupa todo el ancho y sube a 54px. */
@media (max-width: 640px) {
	.akx-getting-started__form .akx-cta-button {
		width: 100%;
		height: 54px;
	}
}
