/* Memberships pricing cards – dark theme, red accent, optional highlighted card */

.cew-memberships-cards {
	display: grid;
	gap: 1.5rem;
	width: 100%;
	max-width: 100%;
}

.cew-memberships-cards--cols-1 { grid-template-columns: 1fr; }
.cew-memberships-cards--cols-2 { grid-template-columns: repeat(2, 1fr); }
.cew-memberships-cards--cols-3 { grid-template-columns: repeat(3, 1fr); }
.cew-memberships-cards--cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1200px) {
	.cew-memberships-cards--cols-4 { grid-template-columns: repeat(2, 1fr); }
	.cew-memberships-cards--cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 650px) {
	.cew-memberships-cards--cols-2,
	.cew-memberships-cards--cols-3,
	.cew-memberships-cards--cols-4 { grid-template-columns: 1fr; }
}

.cew-memberships-empty {
	color: #999;
	padding: 1rem;
	margin: 0;
}

.cew-memberships-card {
	border-radius: 16px;
background: #121212;
padding: 24px;
	overflow: hidden;
	color: #fff;
	transition: transform 0.2s ease;
}

.cew-memberships-card:hover {
	transform: translateY(-2px);
}

.cew-memberships-card--highlighted {
	background: #F0163E;
}

.cew-memberships-card__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-height: 446px;
	position: relative;
	padding-bottom: 60px;
	height: 100%;
}

.cew-memberships-card__title_wrapper {
	position: relative;
	width: 100%;
}

.cew-memberships-card__title {
	margin: 0 0 24px;
	color: #FFF;
	font-family: "Industry";
	font-size: 24px;
	font-weight: 700;
	line-height: 33.6px;
	text-transform: uppercase;
	min-height: 68px;
}
.cew-memberships-card__title:has(+ .cew-memberships-card__caption) {
	margin-bottom: 8px;
}
.cew-memberships-card__badge {
	color: #121212;
	margin-bottom: 24px;
	min-height: auto;
}

.cew-memberships-card__caption, .cew-memberships-card__custom-line {
	margin: 0 0 24px;
	color: #fff;
font-family: 'Config';
font-size: 16px;
font-weight: 405;
line-height: 24px; 
}

.cew-memberships-card--highlighted .cew-memberships-card__title, .cew-memberships-card--highlighted .cew-memberships-card__price, .cew-memberships-card--highlighted .cew-memberships-card__footer, .cew-memberships-card--highlighted .cew-memberships-card__caption, .cew-memberships-card--highlighted .cew-memberships-card__custom-line {
	color: #121212;
} 
.cew-memberships-card--highlighted .cew-memberships-card__desc--detailed li {
	color: #000;
} 

.cew-memberships-card__desc--detailed {
	line-height: 1.5;
}
.cew-memberships-card__desc--detailed ul {
	list-style: none;
	margin: 0rem 0 0;
	padding: 0;
}
.cew-memberships-card__desc--detailed li {
	position: relative;
	padding-left: 30px;
	margin-bottom: 18px;
	color: #fff;
	font-family: 'Config';
	font-size: 14px;
	font-weight: 400;
	line-height: 20.8px; 
}
.cew-memberships-card__desc--detailed li::before {
	content: url('/wp-content/themes/buddyboss-theme-child/assets/images/red-tick.svg');
	position: absolute;
	left: 0;
	top: 2px;
	line-height: 0;
}

.cew-memberships-card--highlighted .cew-memberships-card__desc--detailed li::before {
	content: url('/wp-content/themes/buddyboss-theme-child/assets/images/black-tick.svg');
}


.cew-memberships-card__price {
	margin: 0 0 30px;
	color: #F0163E;
	font-family: "Industry";
	font-size: 48px;
	font-weight: 800;
	line-height: 57.6px;
	text-transform: uppercase;
}

.cew-memberships-card__desc {
	margin: 0 0 1.5rem;
	font-size: 0.9rem;
	line-height: 1.5;
	opacity: 0.9;
	flex: 1;
}

.cew-memberships-card__footer {
	color: #EFEFEF;
	font-family: 'Config';
	font-size: 16px;
	font-weight: 600;
	line-height: 28.8px; 
}

.cew-memberships-card__footer p:last-child {
	margin-bottom: 0;
}

.cew-memberships-card__btn {
	display: inline-block;
	padding: 12px;
	border-radius: 8px;
	background: #1A1A1A;
	text-align: center;
	color: #fff !important;
	font-family: 'Config';
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease;
	position: absolute;
	bottom: 0px;
	width: 100%;
}

.cew-memberships-card__btn:hover {
	background: #3d3d3d;
	color: #fff;
}

.cew-memberships-card__btn--disabled {
	cursor: default;
	opacity: 0.85;
}


/* Applications-only popup */
html.cew-modal-open { overflow: hidden; scrollbar-gutter: stable; background: #000; }
body.cew-modal-open { overflow: hidden; }
.cew-applications-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0.2s, opacity 0.2s;
}
.cew-applications-modal--open {
	visibility: visible;
	opacity: 1;
}
.cew-applications-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgb(29 5 5 / 70%);
	cursor: pointer;
}
.cew-applications-modal__box {
	position: relative;
	background: #000;
	color: #fff;
	max-width: 800px;
	width: 100%;
	border-radius: 12px;
	padding: 1rem 2rem 2rem;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.cew-applications-modal__close {
	position: absolute;
	top: 1.25rem;
	right: 1.25rem;
	background: none;
	border: none;
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.8;
	padding: 0;
}
.cew-applications-modal__close:hover { opacity: 1; background-color: transparent; color: #F0163E; }

.cew-applications-modal__title {
	margin: 0 0 0.75rem;
	font-family: "Industry", sans-serif;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	color: #fff;
}
.cew-applications-modal__title-accent {
	color: #F0163E;
}
.cew-applications-modal__subtitle {
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.8);
}

/* Form layout */
.cew-applications-modal__form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
.cew-applications-modal__form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
@media (max-width: 500px) {
	.cew-applications-modal__form-grid { grid-template-columns: 1fr; }
}
.cew-applications-modal__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}
.cew-applications-modal__field label {
	font-size: 0.875rem;
	font-weight: 500;
	color: #fff;
	font-family: "Config", sans-serif;
}
.cew-applications-modal__field input[type="text"],
.cew-applications-modal__field input[type="email"],
.cew-applications-modal__field input[type="tel"],
.cew-applications-modal__field select {
	width: 100%;
	padding: 0.75rem 1rem;
	background: #2a2a2a;
	border: 1px solid #3a3a3a;
	border-radius: 8px;
	color: #fff;
	font-size: 0.9rem;
	font-family: "Config", sans-serif;
	outline: none;
	transition: border-color 0.2s, background-color 5000s ease-in-out 0s;
	-webkit-appearance: none;
	appearance: none;
}
.cew-applications-modal__field input::placeholder {
	color: rgba(255, 255, 255, 0.35);
}
.cew-applications-modal__field input:-webkit-autofill,
.cew-applications-modal__field input:-webkit-autofill:hover,
.cew-applications-modal__field input:-webkit-autofill:focus,
.cew-applications-modal__cf7 input:-webkit-autofill,
.cew-applications-modal__cf7 input:-webkit-autofill:hover,
.cew-applications-modal__cf7 input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px #2a2a2a inset !important;
	-webkit-text-fill-color: #fff !important;
	caret-color: #fff;
}
.cew-applications-modal__field input:focus,
.cew-applications-modal__field select:focus {
	border-color: #F0163E;
}
.cew-applications-modal__field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	padding-right: 2.5rem;
	cursor: pointer;
}
.cew-applications-modal__field select option {
	background: #1a1a1a;
	color: #fff;
}

/* Submit button */
.cew-applications-modal__submit {
	width: 100%;
	padding: 0.875rem 1rem;
	background: #F0163E;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	font-family: "Config", sans-serif;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: opacity 0.2s;
	margin-top: 0.5rem;
}
.cew-applications-modal__submit:hover { opacity: 0.9; }
.cew-applications-modal__submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Response message */
.cew-applications-modal__response {
	margin-top: 0.75rem;
	padding: 0.75rem 1rem;
	border-radius: 6px;
	font-size: 0.9rem;
}
.cew-applications-modal__response--success {
	background: rgba(34, 197, 94, 0.15);
	color: #4ade80;
	border: 1px solid rgba(34, 197, 94, 0.3);
}
.cew-applications-modal__response--error {
	background: rgba(240, 22, 62, 0.15);
	color: #f87171;
	border: 1px solid rgba(240, 22, 62, 0.3);
}

/* CF7 inside modal */
.cew-applications-modal__cf7 .wpcf7-form p { margin-bottom: 0px }
.cew-applications-modal__cf7 input[type="text"],
.cew-applications-modal__cf7 input[type="email"],
.cew-applications-modal__cf7 input[type="tel"],
.cew-applications-modal__cf7 textarea,
.cew-applications-modal__cf7 select {
	width: 100%;
	padding: 0.75rem 1rem;
	background: #2a2a2a;
	border: 1px solid #3a3a3a;
	border-radius: 8px;
	color: #fff;
	font-size: 0.9rem;
	outline: none;
	transition: border-color 0.2s, background-color 5000s ease-in-out 0s;
	-webkit-appearance: none;
	appearance: none;
}
.cew-applications-modal__cf7 input:focus,
.cew-applications-modal__cf7 textarea:focus,
.cew-applications-modal__cf7 select:focus { border-color: #F0163E; }
.cew-applications-modal__cf7 input[type="submit"],
.cew-applications-modal__cf7 .wpcf7-submit {
	width: 100%;
	padding: 0.875rem 1rem;
	background: #F0163E;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: opacity 0.2s;
	margin-top: 0.5rem;
}
.cew-applications-modal__cf7 input[type="submit"]:hover,
.cew-applications-modal__cf7 .wpcf7-submit:hover { opacity: 0.9; }
.cew-applications-modal__cf7 .wpcf7-not-valid-tip { color: #f87171; font-size: 0.8rem; }
.cew-applications-modal__cf7 .wpcf7-response-output { margin-top: 0.75rem; padding: 0.75rem; border-radius: 6px; font-size: 0.9rem; }

.cew-memberships-card__btn.cew-applications-open {
	cursor: pointer;
	border: none;
	font: inherit;
	text-align: center;
	background: #1A1A1A;
}

@media (max-width: 1024px) {
	.cew-memberships-card__inner {
		min-height: 300px;
	}
}

@media (max-width: 768px) {
	.cew-memberships-card__inner {
		min-height: 350px;
	}
}
@media (max-width: 650px) {
	.cew-memberships-card__title {
		min-height: auto;
	}
	.cew-memberships-card__badge {
		position: relative;
	}
}