/* EGSBI — contribution requests (front) */

.egcc-open,
.egcc-open:visited {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	background: #1a8a5a !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 6px;
	font-weight: 700;
	text-transform: none;
	white-space: nowrap;
	box-shadow: 0 3px 10px rgba(26, 138, 90, 0.25);
	transition: background 0.2s, transform 0.15s;
}

.egcc-open:hover,
.egcc-open:focus {
	background: #156f48 !important;
	color: #fff !important;
	transform: translateY(-1px);
}

.egcc-open__icon {
	font-size: 1.1em;
	line-height: 1;
}

.egcc-pending {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border: 1px solid #f1dfb8;
	border-radius: 8px;
	background: #fff8e6;
	color: #6b4f00;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	unicode-bidi: plaintext;
}

/* ---- modal ------------------------------------------------------------ */

.egcc-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.egcc-modal[hidden] {
	display: none !important;
}

.egcc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 20, 30, 0.6);
	backdrop-filter: blur(2px);
}

.egcc-modal__card {
	position: relative;
	width: 100%;
	max-width: 720px;
	max-height: calc(100vh - 40px);
	overflow: auto;
	box-sizing: border-box;
	padding: 28px 28px 24px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: egcc-pop 0.22s ease-out;
}

@keyframes egcc-pop {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to   { opacity: 1; transform: none; }
}

.egcc-modal__close {
	position: absolute;
	top: 10px;
	inset-inline-end: 12px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f1f1;
	color: #333;
	font-size: 22px;
	line-height: 36px;
	cursor: pointer;
}

.egcc-modal__close:hover {
	background: #e3e3e3;
}

/* ---- form ------------------------------------------------------------- */

.egcc-inline {
	box-sizing: border-box;
	padding: 24px;
	border: 1px solid #e6e6e6;
	border-radius: 12px;
	background: #fff;
}

.egcc-form__title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--thim-font-title-color, #222);
}

.egcc-form__intro {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.65;
	color: #555;
}

.egcc-form__course {
	display: inline-block;
	margin: 0 0 18px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #e8f5ee;
	color: #1a8a5a;
	font-size: 13px;
	font-weight: 700;
}

.egcc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
}

@media (max-width: 600px) {
	.egcc-grid {
		grid-template-columns: 1fr;
	}
}

.egcc-field {
	display: block;
	margin: 0;
}

.egcc-field__label {
	display: block;
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 600;
	color: #333;
}

.egcc-field i,
.egcc-areas legend i {
	color: #d33;
	font-style: normal;
}

.egcc-form input[type="text"],
.egcc-form input[type="email"],
.egcc-form input[type="tel"] {
	width: 100%;
	box-sizing: border-box;
	height: 44px;
	padding: 0 12px;
	border: 1px solid #d5d5d5;
	border-radius: 8px;
	background: #fff;
	font-size: 15px;
	color: #222;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.egcc-form input:focus {
	outline: none;
	border-color: #1a8a5a;
	box-shadow: 0 0 0 3px rgba(26, 138, 90, 0.15);
}

.egcc-form .egcc-field--error input {
	border-color: #d33;
	box-shadow: 0 0 0 3px rgba(221, 51, 51, 0.12);
}

.egcc-field__error {
	display: block;
	margin: 4px 0 0;
	font-size: 12px;
	color: #c22;
}

.egcc-areas {
	margin: 18px 0 0;
	padding: 14px 16px;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	background: #fafafa;
}

.egcc-areas legend {
	padding: 0 6px;
	font-size: 14px;
	font-weight: 700;
	color: #222;
}

.egcc-areas.egcc-field--error {
	border-color: #d33;
}

.egcc-check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 6px 0;
	font-size: 15px;
	cursor: pointer;
}

.egcc-check input {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #1a8a5a;
}

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

.egcc-form__msg {
	margin: 16px 0 0;
	padding: 10px 14px;
	border-radius: 8px;
	background: #fdecea;
	color: #a12622;
	font-size: 14px;
	line-height: 1.5;
}

.egcc-form__msg[hidden] {
	display: none !important;
}

.egcc-form__actions {
	margin-top: 18px;
	display: flex;
	justify-content: flex-end;
}

.egcc-submit,
.egcc-submit:visited {
	min-width: 180px;
	background: #1a8a5a !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 8px;
	font-weight: 700;
	text-transform: none;
}

.egcc-submit:hover {
	background: #156f48 !important;
}

.egcc-submit[disabled] {
	opacity: 0.6;
	cursor: progress;
}

/* ---- success ---------------------------------------------------------- */

.egcc-success {
	text-align: center;
	padding: 24px 10px 10px;
}

.egcc-success[hidden] {
	display: none !important;
}

.egcc-success__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 14px;
	border-radius: 50%;
	background: #1a8a5a;
	color: #fff;
	font-size: 34px;
	line-height: 64px;
	font-weight: 700;
}

.egcc-success strong {
	display: block;
	margin-bottom: 8px;
	font-size: 18px;
	color: #222;
}

.egcc-success p {
	margin: 0;
	color: #555;
	font-size: 14px;
	line-height: 1.65;
}

body.egcc-modal-open {
	overflow: hidden;
}

/* Eduma's sticky landing bar is narrow — let the two buttons wrap. */
.thim-course-landing-button .lp-course-buttons,
.course-payment .lp-course-buttons {
	flex-wrap: wrap;
}

@media (max-width: 480px) {
	.egcc-open {
		white-space: normal;
		text-align: center;
	}
}

/* End-of-description call to action */
.egcc-cta {
	clear: both; /* Eduma floats the description and the features box */
	display: flow-root;
	margin: 28px 0 10px;
	padding: 20px 22px;
	border: 1px solid #cfe9dc;
	border-radius: 12px;
	background: linear-gradient(180deg, #f3fbf7 0%, #e8f5ee 100%);
	text-align: center;
}

.egcc-cta .egcc-open {
	font-size: 15px;
	padding: 12px 26px;
}
