/**
 * Component: Check your area — Final conversion CTA (.akx-check-area)
 *
 * Bloque "16 · Final conversion — check your ZIP" de Figma: panel final de
 * conversión (fondo azul claro, radio 20) con eyebrow, título, descripción,
 * formulario de ZIP (shortcode, igual que akx-hero-banner__form-row), dos
 * líneas de enlace secundario (WYSIWYG: `check_area_comment` y
 * `check_area_footer_comment`) y una fila de refuerzo ("Uses your existing
 * bathtub · ...") separada por puntos. Markup en
 * template-parts/check-area.php; textos en Theme Options.
 *
 * Los dos campos de enlace son WYSIWYG para poder incluir un
 * enlace real dentro del texto ("Shop DIY Kits →", "Click here →"): el
 * color/negrita del enlace lo pone este CSS automáticamente sobre cualquier
 * <a> (ver .akx-check-area__comment a más abajo), no hace falta que quien
 * edite marque el color a mano en el editor.
 *
 * Reutilizable en otras plantillas: basta con enqueuear este fichero ahí.
 */

.akx-check-area {
	--akx-check-area-navy: #141B4D;
	--akx-check-area-red: #CB333B;
	--akx-check-area-border: #CDCBCA;
	--akx-check-area-font: 'Jost', sans-serif;

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

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

.akx-check-area__container {
	max-width: 1136px;
	margin-inline: auto;
	padding-inline: 1.25rem;
}

.akx-check-area__panel {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 22px;
	padding: 40px 24px;
	background: #CEE3F5;
	border-radius: 20px;
}

@media (min-width: 700px) {
	.akx-check-area__panel {
		padding: 64px;
	}
}

/* ---------- Copy ---------- */

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

/* text-transform: el padre fuerza `h2 { text-transform: uppercase }`; el
   bloque también se usa fuera de la home (single.php, [ccb_check_area]). */
.akx-check-area__title {
	max-width: 720px;
	text-transform: none;
	font: 700 clamp(28px, 5vw, 38px)/44px var(--akx-check-area-font);
	letter-spacing: -0.38px;
	color: var(--akx-check-area-navy);
	margin: 0;
}

.akx-check-area__description {
	max-width: 680px;
	font: 400 17.5px/27px var(--akx-check-area-font);
	color: #404040;
	margin: 0;
}

/* ---------- ZIP form (shortcode) ---------- */

.akx-check-area__form-row {
	width: 100%;
	max-width: 476px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: 10px;
}

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

.akx-check-area__form-row .akx-cta-button:hover {
	background: #A8272E;
	color: #FFFFFF;
}

.akx-check-area__form-row .akx-cta-button:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
}

.akx-check-area__form-row .gform_heading {
	display: none;
}

/* ---------- Secondary link lines (WYSIWYG) ---------- */

.akx-check-area__comment,
.akx-check-area__footer-comment {
	font: 400 14.5px/23px var(--akx-check-area-font);
	color: #63666A;
}

.akx-check-area__comment :is(p),
.akx-check-area__footer-comment :is(p) {
	margin: 0;
	font: inherit;
	color: inherit;
}

/*
 * El tema padre `ccb` estiliza todo <a> dentro de un <p> (style.css):
 * `p a { border-bottom: 2px solid #62b5e5; }` y
 * `p a:hover { background: #62b5e5; }` — un "subrayado" en azul (vía
 * border-bottom, no text-decoration) y un fondo azul sólido al hover.
 * El WYSIWYG de estos campos envuelve el texto en <p>, así que hereda ese
 * estilo salvo que se anule aquí explícitamente.
 */
.akx-check-area__comment a,
.akx-check-area__footer-comment a {
	font-weight: 700;
	color: var(--akx-check-area-red);
	text-decoration: none;
	border-bottom: none;
}

.akx-check-area__comment a:hover,
.akx-check-area__footer-comment a:hover {
	background: none;
	text-decoration: underline;
}

/* ---------- Reinforcement row ---------- */

.akx-check-area__reinforcement {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 10px 18px;
}

.akx-check-area__reinforcement-item {
	font: 400 11.5px/19px var(--akx-check-area-font);
	color: #404040;
}

.akx-check-area__dot {
	flex: none;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: rgba(20, 27, 77, 0.35);
}

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