/*
 * Isabella Enrollment Framework — CSS extraído de los snippets v2.
 * Compartido entre todas las familias (adults_spanish, kid_classes, diagnostic, trial).
 */

.program-section {
	width: min(1180px, calc(100% - 32px));
	margin: 48px auto;
	padding: 44px 56px 34px;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 18px;
	box-shadow: 0 12px 34px rgba(0, 0, 0, .08);
	font-family: Arial, Helvetica, sans-serif;
	color: #0f0f0f;
}

.program-title {
	margin: 0 0 42px;
	text-align: center;
	font-size: clamp(30px, 4vw, 46px);
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.control-label {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 24px;
	font-size: 17px;
	font-weight: 800;
}

.steps-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 42px;
	margin-bottom: 54px;
	align-items: start;
}

.step-column {
	width: 100%;
}

.step-number {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #1476d4;
	color: #fff;
	font-size: 18px;
}

.day-buttons,
.hour-buttons,
.weeks-buttons {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 54px;
}

.school-buttons {
	display: grid;
	gap: 14px;
	margin-bottom: 54px;
}

.steps-grid .day-buttons,
.steps-grid .hour-buttons,
.steps-grid .weeks-buttons,
.steps-grid .school-buttons {
	margin-bottom: 0;
}

.day-btn,
.hour-btn,
.weeks-btn {
	min-width: 92px;
	padding: 15px 22px;
	border: 2px solid #e2e2e2;
	background: #fff;
	color: #111;
	border-radius: 9px;
	cursor: pointer;
	font-size: 18px;
	font-weight: 600;
	text-transform: capitalize;
	transition: all .22s ease;
}

/* Meta line dentro del card ("2 days / Week • 14 weeks") también capitalizada. */
.price-card .meta {
	text-transform: capitalize;
}

.day-btn:hover,
.day-btn.is-active,
.hour-btn:hover,
.hour-btn.is-active,
.weeks-btn:hover,
.weeks-btn.is-active {
	background: #000;
	color: #fff;
	border-color: #000;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}

.school-btn {
	width: 100%;
	min-height: 58px;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 20px;
	border: 2px solid #e2e2e2;
	background: #fff;
	color: #111;
	border-radius: 9px;
	cursor: pointer;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
	text-align: left;
	transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

.school-btn:hover {
	border-color: #cfcfcf;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .07);
}

.school-btn::before {
	content: '';
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
	border: 3px solid #b9b9b9;
	border-radius: 999px;
	background: #fff;
	box-shadow: inset 0 0 0 5px #fff;
	transition: border-color .22s ease, background .22s ease;
}

.school-btn.is-active {
	background: #fff;
	color: #111;
	border-color: #dcdcdc;
	box-shadow: none;
}

.school-btn.is-active::before {
	border-color: #111;
	background: #111;
}

.pricing-grid {
	display: grid;
	/* auto-fit: 1 fila con cards iguales, sin importar cuántas (1-4).
	   minmax 260px asegura que si no caben en una fila, wrappean ordenadamente.
	   En Adults/Before School/Kids After School (2 cards) → 2 col anchas.
	   En Saturday/Sunday (3 cards) → 3 col más angostas.
	   Diagnostic (1 card) overridea con su propia regla scoped. */
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 10px;
	width: min(1120px, 100%);
	margin: 0 auto 28px;
}

.price-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 34px 30px;
	border: 2px solid #e2e2e2;
	border-radius: 16px;
	background: #fff;
	text-align: center;
	cursor: pointer;
	transition: box-shadow .22s ease;
}

.price-card:hover {
	box-shadow: 0 18px 38px rgba(0, 0, 0, .10);
}

.price-card.is-featured {
	border-color: #f3c744;
	background: linear-gradient(180deg, #fff8df 0%, #fff 72%);
}

.floating-badge {
	position: absolute;
	top: -19px;
	left: 50%;
	transform: translateX(-50%);
	padding: 10px 52px;
	border-radius: 10px;
	background: #ffc928;
	font-size: 14px;
	font-weight: 900;
	white-space: nowrap;
}

.price-card h3 {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 900;
}

.meta {
	margin: 0 0 30px;
	font-size: 18px;
	font-weight: 700;
}

.price {
	font-size: clamp(42px, 5vw, 58px);
	line-height: 1;
	font-weight: 900;
	letter-spacing: -0.06em;
}

.price-label {
	margin: 8px 0 3px;
	font-size: 16px;
	font-weight: 600;
}

.weekly-price {
	margin: 0 0 34px;
	font-size: 19px;
	font-weight: 800;
}

.benefit-box {
	width: 100%;
	min-height: 106px;
	margin-bottom: 30px;
	padding: 22px 26px;
	display: grid;
	align-content: center;
	gap: 12px;
	border-radius: 10px;
	background: linear-gradient(90deg, #fff7dd 0%, #fff 100%);
	text-align: left;
}

.benefit {
	display: flex;
	gap: 14px;
	font-size: 15px;
	line-height: 1.45;
	font-weight: 600;
}

.check {
	color: #f4c535;
	font-size: 22px;
	font-weight: 900;
}

.select-btn {
	width: 100%;
	margin-top: auto;
	padding: 16px 22px;
	border: 2px solid #111;
	border-radius: 9px;
	background: #fff;
	color: #111;
	font-size: 16px;
	font-weight: 900;
	cursor: pointer;
	transition: all .22s ease;
}

.select-btn:hover,
.price-card.is-featured .select-btn {
	background: #000;
	color: #fff;
}

.note-row {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 12px;
	font-size: 16px;
	font-weight: 600;
}

.money-icon {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	flex: 0 0 42px; /* evita que flex shrink lo aplaste a óvalo en mobile */
	border: 3px solid #1476d4;
	border-radius: 50%;
	color: #1476d4;
	font-size: 24px;
	font-weight: 700;
}

/* ============ Modal ============ */

.af-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 72px 24px;
	background: rgba(0, 0, 0, 0.42);
	overflow-y: auto;
}

.af-modal-overlay.is-open {
	display: flex;
}

.af-modal {
	width: min(720px, 100%);
	margin: 0 auto;
	padding: 36px 42px 34px;
	background: #fff;
	color: #07153f;
	position: relative;
	border-radius: 24px;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
	font-family: Arial, Helvetica, sans-serif;
}

.af-modal * {
	font-family: Arial, Helvetica, sans-serif;
	box-sizing: border-box;
}

.af-modal-close {
	position: absolute;
	top: 26px;
	right: 30px;
	border: 0;
	background: transparent;
	color: #000;
	font-size: 24px;
	font-weight: 800;
	cursor: pointer;
	line-height: 1;
}

.af-modal-header {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-bottom: 44px;
}

.af-modal-icon {
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(7, 21, 63, 0.10);
	color: #07153f;
	flex: 0 0 auto;
}

.af-modal-icon svg {
	width: 38px;
	height: 38px;
}

.af-modal-title {
	margin: 0;
	font-size: 30px;
	line-height: 1.05;
	font-weight: 900;
	letter-spacing: -0.035em;
	color: #07153f;
}

.af-modal-subtitle {
	margin: 6px 0 0;
	font-size: 18px;
	line-height: 1.2;
	font-weight: 700;
	color: #818899;
}

.af-form-section {
	padding: 0 0 13px;
	margin-bottom: 16px;
	border-bottom: 1px solid #e6e9f0;
}

.af-form-section:last-of-type {
	border-bottom: 0;
	margin-bottom: 0;
}

.af-section-heading {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.af-section-icon {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	flex: 0 0 auto;
}

.af-section-icon svg {
	width: 24px;
	height: 24px;
}

.af-icon-pink   { background: #ffe8f0; color: #ff3157; }
.af-icon-purple { background: #f5e7ff; color: #9b22d3; }
.af-icon-green  { background: #ddfbeb; color: #12a66a; }
.af-icon-yellow { background: #fff3d8; color: #f5a400; }
.af-icon-blue   { background: #e4f1ff; color: #1476d4; }

.af-fieldset-title {
	margin: 0;
	font-size: 20px;
	line-height: 1.2;
	font-weight: 900;
	color: #07153f;
}

.af-required {
	margin-left: 8px;
	color: #7d8495;
	font-size: 15px;
	font-weight: 500;
}

.af-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
}

.af-field {
	margin-bottom: 22px;
}

.af-field label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	font-size: 16px;
	line-height: 1.2;
	color: #07153f;
	font-weight: 500;
}

.af-input,
.af-select {
	width: 100%;
	height: 58px;
	padding: 0 20px;
	border: 1px solid #d9dde8;
	background: #fff;
	color: #07153f;
	border-radius: 10px;
	font-size: 16px;
	box-shadow: 0 4px 14px rgba(7, 21, 63, 0.04);
}

.af-input::placeholder {
	color: #8a91a3;
}

.af-textarea {
	width: 100%;
	min-height: 120px;
	padding: 18px 20px;
	border: 1px solid #d9dde8;
	background: #fff;
	color: #07153f;
	border-radius: 10px;
	font-size: 16px;
	resize: vertical;
	box-shadow: 0 4px 14px rgba(7, 21, 63, 0.04);
}

.af-hidden {
	display: none;
}

.af-checkbox-list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 18px;
}

.af-checkbox-item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 54px;
	padding: 14px 16px;
	border: 1px solid #e0e4ee;
	border-radius: 10px;
	background: #fff;
	color: #07153f;
	font-size: 14px;
	font-weight: 700;
	box-shadow: 0 4px 12px rgba(7, 21, 63, 0.04);
}

.af-checkbox-item input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: #ff3157;
}

/* Modifier: lista stacked en columna full-width. Usado por in-person-program-select
   (Trial) donde las opciones son largas y necesitan toda la línea. */
.af-checkbox-list--stack {
	flex-direction: column;
}
.af-checkbox-list--stack .af-checkbox-item {
	width: 100%;
}

.af-consent .af-checkbox-item {
	align-items: flex-start;
	width: 100%;
	border: 0;
	box-shadow: none;
	padding: 0;
	font-size: 16px;
	line-height: 1.55;
	font-weight: 500;
}

.af-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 28px;
	margin-top: 30px;
}

.af-cancel {
	border: 0;
	background: transparent;
	color: #7d8495;
	font-size: 17px;
	font-weight: 800;
	cursor: pointer;
}

.af-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-width: 260px;
	min-height: 64px;
	padding: 18px 36px;
	border: 0;
	border-radius: 13px;
	background: linear-gradient(135deg, #ff3157 0%, #ff0f64 100%);
	color: #fff;
	font-size: 18px;
	font-weight: 900;
	cursor: pointer;
	box-shadow: 0 14px 28px rgba(255, 49, 87, 0.28);
}

.af-submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

.af-error {
	display: none;
	margin: 0 0 24px;
	padding: 14px 16px;
	border: 1px solid #f2b8b5;
	background: #fff2f1;
	color: #b42318;
	border-radius: 10px;
	font-size: 14px;
}

.af-error.is-visible {
	display: block;
}

.isabella-enrollment-error {
	max-width: 720px;
	margin: 32px auto;
	padding: 16px 20px;
	background: #FBE9E9;
	border: 1px solid #B23A3A;
	border-radius: 10px;
	color: #6B1F1F;
	font-family: Inter, system-ui, sans-serif;
	font-size: 14px;
}

@media (max-width: 900px) {
	.program-section { padding: 34px 22px 28px; }
	.pricing-grid { grid-template-columns: 1fr; gap: 32px; }
	.steps-grid { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 620px) {
	.af-modal { padding: 30px 22px; border-radius: 18px; }
	.af-modal-header { align-items: flex-start; }
	.af-modal-title { font-size: 24px; }
	.af-row { grid-template-columns: 1fr; gap: 0; }
	.af-actions { flex-direction: column-reverse; align-items: stretch; }
	.af-submit { width: 100%; }
	.af-checkbox-list { flex-direction: column; }
}

@media (max-width: 520px) {
	.day-btn { flex: 1 1 calc(50% - 10px); }
	.price-card { padding: 34px 22px 24px; }
}

/* ============================================================
   Family overrides — naked single-offer (diagnostic 410 + trial 74)
   Sin caja externa: transparent bg, sin border/shadow.
   Card amarilla single-offer matching los v1 snippets.
   ============================================================ */

.isabella-enrollment-section[data-template="diagnostic"],
.isabella-enrollment-section[data-template="trial"] {
	margin: 0 auto;
	padding: 44px 30px 34px;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}
.isabella-enrollment-section[data-template="diagnostic"] .pricing-grid,
.isabella-enrollment-section[data-template="trial"] .pricing-grid {
	grid-template-columns: minmax(0, 370px);
	justify-content: center;
	width: min(420px, 100%);
	gap: 10px;
}
.isabella-enrollment-section[data-template="diagnostic"] .price-card,
.isabella-enrollment-section[data-template="diagnostic"] .price-card.is-featured,
.isabella-enrollment-section[data-template="trial"] .price-card,
.isabella-enrollment-section[data-template="trial"] .price-card.is-featured {
	padding: 34px 12px 30px;
	border: 2px solid #f5b400;
	background: #fffdf7;
	border-radius: 12px;
}
.isabella-enrollment-section[data-template="diagnostic"] .price-card h3,
.isabella-enrollment-section[data-template="trial"] .price-card h3 {
	margin: 0 0 14px;
	font-size: 29px;
}
.isabella-enrollment-section[data-template="diagnostic"] .price-label,
.isabella-enrollment-section[data-template="trial"] .price-label {
	margin: 10px 0 12px;
}
.isabella-enrollment-section[data-template="diagnostic"] .weekly-price,
.isabella-enrollment-section[data-template="trial"] .weekly-price {
	margin: 0 0 40px;
	font-size: 19px;
	font-weight: 800;
}
.isabella-enrollment-section[data-template="diagnostic"] .benefit-box,
.isabella-enrollment-section[data-template="trial"] .benefit-box {
	background: #fffaf1;
	min-height: 80px;
	padding: 22px 30px;
}
.isabella-enrollment-section[data-template="diagnostic"] .benefit-box .check,
.isabella-enrollment-section[data-template="trial"] .benefit-box .check {
	color: #111;
}
.isabella-enrollment-section[data-template="diagnostic"] .select-btn,
.isabella-enrollment-section[data-template="diagnostic"] .select-btn:hover,
.isabella-enrollment-section[data-template="trial"] .select-btn,
.isabella-enrollment-section[data-template="trial"] .select-btn:hover {
	border: 2px solid #000;
	background: #000;
	color: #fff;
	border-radius: 7px;
}

/* ============ EXAM TEMPLATE (product 2158 DELE Exam) ============ */
/* Full width para el step de levels — como es el único axis, no queremos que
   grid-template-columns 2fr del .steps-grid genérico lo aplaste al 50%. */
.isabella-exam .steps-grid {
	grid-template-columns: 1fr;
}

.isabella-exam .exam-level-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}
.isabella-exam .exam-level-btn {
	min-width: 92px;
	padding: 14px 22px;
	border: 2px solid #e2e2e2;
	background: #fff;
	color: #111;
	border-radius: 9px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	transition: all .22s ease;
}
.isabella-exam .exam-level-btn:hover,
.isabella-exam .exam-level-btn.is-active {
	background: #000;
	color: #fff;
	border-color: #000;
}
.isabella-exam .exam-card-wrapper {
	display: flex;
	justify-content: center;
	margin-top: 22px;
}
.isabella-exam .exam-card {
	width: 100%;
	max-width: 420px;
	background: linear-gradient(180deg, #fff8df 0%, #fff 72%);
	border: 2px solid #f3c744;
	border-radius: 18px;
	padding: 34px 28px;
	text-align: center;
	transition: box-shadow .22s ease;
}
.isabella-exam .exam-card:hover {
	box-shadow: 0 18px 38px rgba(0, 0, 0, .10);
}
.isabella-exam .exam-card-title {
	margin: 0 0 6px;
	font-size: 24px;
	font-weight: 700;
	color: #2D2D2D;
}
.isabella-exam .exam-card-sublevel {
	margin: 0 0 22px;
	font-size: 15px;
	color: #6F675D;
}
.isabella-exam .exam-card-price {
	font-size: 56px;
	font-weight: 800;
	line-height: 1;
	color: #2D2D2D;
	margin-bottom: 6px;
}
.isabella-exam .exam-card-duration {
	margin: 0 0 22px;
	font-size: 14px;
	font-weight: 600;
	color: #2D2D2D;
}
.isabella-exam .exam-card-benefit {
	background: linear-gradient(90deg, #fff7dd 0%, #fff 100%);
	border-radius: 10px;
	padding: 18px 22px;
	display: flex;
	align-items: center;
	gap: 14px;
	text-align: left;
	margin-bottom: 26px;
	font-size: 15px;
	line-height: 1.45;
	font-weight: 600;
	color: #2D2D2D;
}
.isabella-exam .exam-card-benefit .check {
	color: #f4c535;
	font-weight: 900;
	font-size: 22px;
	line-height: 1;
}
.isabella-exam .exam-card-form {
	margin: 0;
}
.isabella-exam .exam-cta-btn {
	width: 100%;
	padding: 16px 20px;
	background: #000;
	color: #fff;
	border: 0;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity .22s ease;
}
.isabella-exam .exam-cta-btn:hover {
	opacity: 0.88;
}

/* IMPORTANT notice del modal del exam. */
.isabella-exam-notice {
	background: #FEF3C7;
	border-left: 4px solid #F4C542;
	border-radius: 6px;
	padding: 16px 20px;
	margin-top: 24px;
	font-size: 14px;
	line-height: 1.55;
	color: #4A3B00;
}
.isabella-exam-notice p { margin: 0; }
.isabella-exam-notice a { color: #7B3CFF; text-decoration: underline; }

.isabella-exam-modal-overlay .af-modal { max-width: 640px; }
