/* =========================================================================
   SHAD Foundation — Admissions Banner & Popup Form
   Palette: teal-dark #0B4F4C, teal #0E6B67, teal-light #12857F,
            gold #F2B705, cream #F7F5F0, ink #16211F
   Display type: Poppins (headlines) · Body/UI type: Inter
   ========================================================================= */

.digicells-popup {
	--digicells-teal-dark: #0B4F4C;
	--digicells-teal: #0E6B67;
	--digicells-teal-light: #12857F;
	--digicells-gold: #F2B705;
	--digicells-cream: #F7F5F0;
	--digicells-ink: #16211F;
	--digicells-white: #FFFFFF;
	--digicells-radius: 18px;
	--digicells-shadow: 0 20px 45px -20px rgba(11,79,76,0.45);

	font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--digicells-ink);
	max-width: 1180px;
	margin: 0 auto;
	box-sizing: border-box;
}
.digicells-popup *, .digicells-popup *::before, .digicells-popup *::after { box-sizing: border-box; }

/* ---------------------------------------------------------------------
   Hero / banner
   ------------------------------------------------------------------- */
.digicells-popup__hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, var(--digicells-teal-dark) 0%, var(--digicells-teal) 55%, var(--digicells-teal-light) 100%);
	border-radius: var(--digicells-radius);
	padding: 64px 48px;
	box-shadow: var(--digicells-shadow);
}

.digicells-popup__hero-shape {
	position: absolute;
	right: -120px;
	top: -140px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle at 30% 30%, rgba(242,183,5,0.35), rgba(242,183,5,0) 70%);
	pointer-events: none;
}
.digicells-popup__hero-shape::after {
	content: "";
	position: absolute;
	left: -260px;
	bottom: -260px;
	width: 380px;
	height: 380px;
	border-radius: 50%;
	background: radial-gradient(circle at 60% 40%, rgba(255,255,255,0.10), rgba(255,255,255,0) 70%);
}

.digicells-popup__hero-inner { position: relative; z-index: 1; max-width: 720px; }

.digicells-popup__eyebrow {
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--digicells-gold);
	margin: 0 0 14px;
}

.digicells-popup__title {
	font-family: 'Poppins', sans-serif;
	font-weight: 800;
	color: var(--digicells-white);
	font-size: clamp(34px, 5vw, 54px);
	line-height: 1.05;
	margin: 0 0 18px;
}
.digicells-popup__title span { color: var(--digicells-gold); }

.digicells-popup__subtitle {
	color: rgba(255,255,255,0.9);
	font-size: 17px;
	line-height: 1.6;
	margin: 0 0 32px;
	max-width: 560px;
}
.digicells-popup__subtitle strong { color: var(--digicells-white); }

.digicells-popup__hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	margin-bottom: 28px;
}

.digicells-popup__cta {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 16px;
	color: var(--digicells-teal-dark);
	background: var(--digicells-gold);
	border: none;
	border-radius: 999px;
	padding: 16px 32px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: transform .15s ease, box-shadow .15s ease;
	box-shadow: 0 10px 24px -8px rgba(242,183,5,0.6);
}
.digicells-popup__cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(242,183,5,0.7); }
.digicells-popup__cta:focus-visible { outline: 3px solid var(--digicells-white); outline-offset: 3px; }

.digicells-popup__cta-secondary {
	color: var(--digicells-white);
	font-weight: 600;
	font-size: 15px;
	text-decoration: underline;
	text-underline-offset: 4px;
	opacity: .9;
}
.digicells-popup__cta-secondary:hover { opacity: 1; }

.digicells-popup__branch-chips {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
}
.digicells-popup__branch-chips li {
	font-family: 'Poppins', sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: var(--digicells-white);
	background: rgba(255,255,255,0.12);
	border: 1px solid rgba(255,255,255,0.35);
	border-radius: 999px;
	padding: 6px 16px;
	transform: rotate(-1.2deg);
}
.digicells-popup__branch-chips li:nth-child(2) { transform: rotate(1deg); }
.digicells-popup__branch-chips li:nth-child(3) { transform: rotate(-0.6deg); }

/* ---------------------------------------------------------------------
   Facilities strip
   ------------------------------------------------------------------- */
.digicells-popup__facilities {
	margin-top: 28px;
	background: var(--digicells-white);
	border: 1px solid #E7E3D8;
	border-radius: var(--digicells-radius);
	padding: 22px 28px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 18px 12px;
	text-align: center;
}
.digicells-popup__facilities > div {
	font-size: 13px;
	font-weight: 600;
	color: var(--digicells-teal-dark);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}
.digicells-popup__ico { font-size: 24px; }

/* ---------------------------------------------------------------------
   Eligibility
   ------------------------------------------------------------------- */
.digicells-popup__eligibility {
	margin-top: 28px;
	background: var(--digicells-cream);
	border-radius: var(--digicells-radius);
	padding: 30px 32px;
}
.digicells-popup__eligibility h3 {
	font-family: 'Poppins', sans-serif;
	font-size: 15px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--digicells-teal);
	margin: 0 0 18px;
}
.digicells-popup__eligibility-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 18px;
	margin-bottom: 18px;
}
.digicells-popup__eligibility-grid > div {
	background: var(--digicells-white);
	border-radius: 12px;
	padding: 18px;
	border: 1px solid #E7E3D8;
}
.digicells-popup__eligibility-grid strong {
	display: block;
	font-family: 'Poppins', sans-serif;
	color: var(--digicells-teal-dark);
	margin-bottom: 4px;
}
.digicells-popup__eligibility-grid span { font-size: 14px; color: #4a534f; }
.digicells-popup__note { font-size: 14px; margin: 0; color: var(--digicells-teal-dark); }

/* ---------------------------------------------------------------------
   Modal
   ------------------------------------------------------------------- */
.digicells-popup__modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.digicells-popup__modal[hidden] { display: none; }

.digicells-popup__modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(11,25,23,0.55);
	backdrop-filter: blur(2px);
}

.digicells-popup__modal-panel {
	position: relative;
	background: var(--digicells-white);
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 20px;
	padding: 36px 32px 28px;
	box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
	animation: digicells-popup-pop .22s ease;
}
@keyframes digicells-popup-pop {
	from { opacity: 0; transform: translateY(12px) scale(.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.digicells-popup__modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: var(--digicells-cream);
	color: var(--digicells-teal-dark);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.digicells-popup__modal-close:hover { background: #ECE7D9; }

.digicells-popup__modal-panel h3 {
	font-family: 'Poppins', sans-serif;
	font-size: 24px;
	color: var(--digicells-teal-dark);
	margin: 0 0 6px;
}
.digicells-popup__modal-sub { font-size: 14px; color: #5b6560; margin: 0 0 24px; }

.digicells-popup__hp { position: absolute; left: -9999px; top: -9999px; }

.digicells-popup__field { margin-bottom: 16px; }
.digicells-popup__field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
@media (max-width: 480px) {
	.digicells-popup__field-row { grid-template-columns: 1fr; }
}

.digicells-popup__field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--digicells-teal-dark);
	margin-bottom: 6px;
}
.digicells-popup__field input,
.digicells-popup__field select,
.digicells-popup__field textarea {
	width: 100%;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	color: var(--digicells-ink);
	padding: 11px 14px;
	border: 1.5px solid #DCD6C7;
	border-radius: 10px;
	background: var(--digicells-white);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.digicells-popup__field input:focus,
.digicells-popup__field select:focus,
.digicells-popup__field textarea:focus {
	outline: none;
	border-color: var(--digicells-teal);
	box-shadow: 0 0 0 3px rgba(14,107,103,0.15);
}
.digicells-popup__field textarea { resize: vertical; }

/*
 * Branch / applying-as selectors — button-style radio "chips" instead of
 * native <select> dropdowns. Chosen specifically because native selects
 * were being stripped of styling by page-builder/theme CSS resets; chips
 * are plain divs/labels/inputs, so there's nothing for a theme to reset.
 */
.digicells-popup__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.digicells-popup__chip {
	position: relative;
	display: inline-flex;
	align-items: center;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--digicells-teal-dark);
	background: var(--digicells-white);
	border: 1.5px solid #DCD6C7;
	border-radius: 999px;
	padding: 9px 18px;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
	user-select: none;
}
.digicells-popup__chip input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
}
.digicells-popup__chip:hover {
	border-color: var(--digicells-teal-light);
}
.digicells-popup__chip:has(input:checked) {
	background: var(--digicells-teal);
	border-color: var(--digicells-teal);
	color: var(--digicells-white);
	box-shadow: 0 6px 16px -6px rgba(14,107,103,0.5);
}
/* Fallback for browsers without :has() support (adds/removes this class via JS) */
.digicells-popup__chip.is-checked {
	background: var(--digicells-teal);
	border-color: var(--digicells-teal);
	color: var(--digicells-white);
	box-shadow: 0 6px 16px -6px rgba(14,107,103,0.5);
}
.digicells-popup__chip input:focus-visible ~ span {
	outline: 2px solid var(--digicells-teal-dark);
	outline-offset: 3px;
	border-radius: 4px;
}
.digicells-popup__chips[data-error="true"] .digicells-popup__chip {
	border-color: #C0392B;
}



.digicells-popup__submit {
	width: 100%;
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 16px;
	color: var(--digicells-white);
	background: var(--digicells-teal);
	border: none;
	border-radius: 10px;
	padding: 14px;
	cursor: pointer;
	margin-top: 6px;
	transition: background .15s ease, transform .15s ease;
}
.digicells-popup__submit:hover { background: var(--digicells-teal-dark); }
.digicells-popup__submit:disabled { opacity: .6; cursor: not-allowed; }

.digicells-popup__form-status {
	min-height: 20px;
	font-size: 14px;
	font-weight: 600;
	margin: 12px 0 0;
}
.digicells-popup__form-status[data-state="success"] { color: var(--digicells-teal); }
.digicells-popup__form-status[data-state="error"] { color: #C0392B; }

.digicells-popup__privacy {
	font-size: 12px;
	color: #8a938d;
	margin: 10px 0 0;
}

/* ---------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------- */
@media (max-width: 640px) {
	.digicells-popup__hero { padding: 44px 24px; }
	.digicells-popup__eligibility { padding: 22px 20px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.digicells-popup__modal-panel, .digicells-popup__cta { animation: none; transition: none; }
}
