/* MCOA promo banner, social strip and Contact MCOA form (assets/js/mcoa-promo.js) */

/* ---------- Banner ---------- */
.mcoa-promo {
	margin-top: 154px; /* clears the absolutely-positioned site header */
	padding-bottom: 24px;
}

.mcoa-promo-box {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 24px 30px;
	border-radius: 15px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
	color: #fff;
}

.mcoa-promo-icon {
	flex-shrink: 0;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
}

.mcoa-promo-text {
	flex: 1;
	min-width: 0;
}

.mcoa-promo-text h4 {
	margin: 0 0 6px;
	color: #fff;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.3px;
}

.mcoa-promo-text p {
	margin: 0;
	color: rgba(255, 255, 255, 0.95);
	font-size: 17px;
	font-weight: 500;
}

.mcoa-promo-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 28px;
	border: 0;
	border-radius: 8px;
	background: linear-gradient(90deg, #ff8a00 0%, #ee2d3a 100%);
	box-shadow: 0 10px 20px rgba(238, 45, 58, 0.3);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	transition: transform 150ms ease, box-shadow 150ms ease;
}

.mcoa-promo-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 24px rgba(238, 45, 58, 0.35);
}

.mcoa-promo-btn:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.mcoa-promo-btn:disabled {
	opacity: 0.7;
	cursor: wait;
	transform: none;
}

/* ---------- Social strip ---------- */
.mcoa-social {
	padding: 24px 0;
	background: #f8f9fa;
	border-top: 1px solid #eee;
	border-bottom: 1px solid #eee;
}

.mcoa-social span {
	margin-right: 20px;
	color: #444;
	font-size: 20px;
	font-weight: 600;
	vertical-align: middle;
}

.mcoa-social a {
	margin: 0 12px;
	font-size: 30px;
	vertical-align: middle;
}

.mcoa-social .mcoa-social-fb { color: #1877f2; }
.mcoa-social .mcoa-social-x,
.mcoa-social .mcoa-social-th { color: #111; }
.mcoa-social .mcoa-social-ig { color: #e1306c; }
.mcoa-social .mcoa-social-yt { color: #ff0000; }

/* The first page section no longer needs its own header offset */
.mcoa-social ~ .inner-page-top-gap { margin-top: 0; }
.mcoa-social ~ .gallery-container,
.mcoa-social ~ .news-container { padding-top: 60px; }
/* Landing page hero (it-source.css sizes these for the header, now above the banner) */
.mcoa-social ~ .it-up-banner-section .it-up-banner-text { padding-top: 170px; }
.mcoa-social ~ .it-up-banner-section .it-up-banner-img { top: 40px; }

@media (max-width: 1024px) {
	.mcoa-social ~ .it-up-banner-section .it-up-banner-text { padding-top: 60px; }
	.mcoa-social ~ .it-up-banner-section .it-up-banner-img { top: 0; }
}

@media (max-width: 991px) {
	.mcoa-promo { margin-top: 120px; }
}

@media (max-width: 768px) {
	.mcoa-promo-box {
		flex-direction: column;
		text-align: center;
		padding: 22px 20px;
	}
	.mcoa-promo-icon { width: 60px; height: 60px; font-size: 26px; }
	.mcoa-promo-text h4 { font-size: 20px; }
	.mcoa-promo-text p { font-size: 15px; }
	.mcoa-promo-box .mcoa-promo-btn { width: 100%; }
	.mcoa-social span { display: block; margin: 0 0 10px; font-size: 18px; }
	.mcoa-social a { margin: 0 10px; font-size: 26px; }
}

/* ---------- Modal ---------- */
html.mcoa-modal-open { overflow: hidden; }

.mcoa-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 16px;
	overflow-y: auto;
	background: rgba(0, 0, 0, 0.65);
}

.mcoa-modal.is-open { display: flex; }

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

.mcoa-modal-card {
	position: relative;
	width: 100%;
	max-width: 560px;
	margin: auto;
	padding: 32px 32px 28px;
	border-radius: 14px;
	background: #fff;
	color: #333;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.mcoa-modal-card h3 {
	margin: 0 0 6px;
	color: #222;
	font-size: 26px;
	font-weight: 700;
}

.mcoa-modal-sub {
	margin: 0 0 20px;
	color: #666;
	font-size: 15px;
}

.mcoa-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	border: 0;
	background: none;
	color: #888;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

.mcoa-modal-close:hover { color: #333; }

.mcoa-toggle {
	display: flex;
	margin-bottom: 18px;
	padding: 4px;
	border-radius: 10px;
	background: #f0f0f5;
}

.mcoa-toggle label {
	flex: 1;
	margin: 0;
	cursor: pointer;
}

.mcoa-toggle input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.mcoa-toggle span {
	display: block;
	padding: 10px 8px;
	border-radius: 8px;
	color: #555;
	font-weight: 700;
	text-align: center;
	transition: background 150ms ease, color 150ms ease;
}

.mcoa-toggle input:checked + span {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
}

.mcoa-toggle input:focus-visible + span {
	outline: 3px solid #667eea;
	outline-offset: 2px;
}

.mcoa-row {
	display: flex;
	gap: 14px;
}

.mcoa-row > .mcoa-field { flex: 1; min-width: 0; }

.mcoa-field { margin-bottom: 14px; }

.mcoa-field label {
	display: block;
	margin-bottom: 6px;
	color: #333;
	font-size: 14px;
	font-weight: 700;
}

.mcoa-field input,
.mcoa-field select,
.mcoa-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d5d5dd;
	border-radius: 8px;
	background: #fff;
	color: #222;
	font-size: 15px;
}

.mcoa-field input:focus,
.mcoa-field select:focus,
.mcoa-field textarea:focus {
	border-color: #667eea;
	outline: none;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.mcoa-field textarea { resize: vertical; }

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

.mcoa-error {
	margin: 4px 0 14px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fdecea;
	color: #b3261e;
	font-size: 14px;
}

.mcoa-submit { width: 100%; }

.mcoa-success { text-align: center; }

.mcoa-success-icon {
	width: 72px;
	height: 72px;
	margin: 6px auto 16px;
	border-radius: 50%;
	background: #4caf50;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
}

.mcoa-success p {
	margin: 0 0 22px;
	color: #555;
	font-size: 16px;
}

@media (max-width: 576px) {
	.mcoa-modal { padding: 16px; }
	.mcoa-modal-card { padding: 28px 20px 22px; }
	.mcoa-row { flex-direction: column; gap: 0; }
}

/* ---------- Dark mode (matches it-source.css) ---------- */
@media (prefers-color-scheme: dark) {
	.mcoa-social {
		background: #131924;
		border-top-color: #2a3a4a;
		border-bottom-color: #2a3a4a;
	}
	.mcoa-social span { color: #c8c8c8; }
	.mcoa-social .mcoa-social-x,
	.mcoa-social .mcoa-social-th { color: #e0e0e0; }

	.mcoa-modal-card { background: #1a2235; color: #d0d0d0; }
	.mcoa-modal-card h3 { color: #fff; }
	.mcoa-modal-sub,
	.mcoa-success p { color: #a8a8b8; }
	.mcoa-modal-close { color: #a8a8b8; }
	.mcoa-modal-close:hover { color: #fff; }
	.mcoa-toggle { background: #131924; }
	.mcoa-toggle span { color: #c8c8c8; }
	.mcoa-field label { color: #e0e0e0; }
	.mcoa-field input,
	.mcoa-field select,
	.mcoa-field textarea {
		background: #131924;
		border-color: #2a3a4a;
		color: #e0e0e0;
	}
	.mcoa-error { background: #3a1d1f; color: #ffb4ab; }
}
