/* ============================================
   MaxCoach — Search Modal (centered on screen)
   ============================================ */

/* ---------- Dark backdrop ------------------ */
.mc-search-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 999999;
	display: none;
	opacity: 0;
	transition: opacity 0.3s ease;
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.mc-search-overlay.is-visible {
	display: block;
	opacity: 1;
}

/* ---------- Centered modal box ------------- */
.mc-search-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.92);
	width: 480px;
	max-width: calc(100vw - 32px);
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
	padding: 32px;
	z-index: 1000000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease,
	            visibility 0.3s ease,
	            transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mc-search-modal.is-open {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%) scale(1);
}

/* ---------- Close button ------------------- */
.mc-search-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	border: none;
	border-radius: 50%;
	background: #f3f3f3;
	color: #666;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.2s, color 0.2s;
}

.mc-search-modal__close:hover {
	background: #e0e0e0;
	color: #222;
}

.mc-search-modal__close svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	fill: none;
}

/* ---------- Title -------------------------- */
.mc-search-modal__title {
	margin: 0 0 20px 0;
	font-size: 20px;
	font-weight: 700;
	color: #222;
}

/* ---------- Form / Input ------------------- */
.mc-search-modal__form {
	position: relative;
	margin: 0;
	padding: 0;
}

.mc-search-modal__input {
	width: 100%;
	height: 52px;
	padding: 0 56px 0 20px;
	border: 2px solid #e5e5e5;
	border-radius: 12px;
	background: #fafafa;
	color: #222;
	font-size: 16px;
	font-family: inherit;
	line-height: 1;
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.mc-search-modal__input:focus {
	border-color: #3b82f6;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.mc-search-modal__input::placeholder {
	color: #aaa;
}

/* ---------- Submit button ------------------ */
.mc-search-modal__submit {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 10px;
	background: #3b82f6;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.2s, transform 0.2s;
}

.mc-search-modal__submit:hover {
	background: #2563eb;
	transform: translateY(-50%) scale(1.05);
}

.mc-search-modal__submit svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- Hint text ---------------------- */
.mc-search-modal__hint {
	margin: 14px 0 0 0;
	font-size: 12px;
	color: #aaa;
	display: flex;
	align-items: center;
	gap: 6px;
}

.mc-search-modal__hint kbd {
	display: inline-block;
	padding: 2px 7px;
	background: #f0f0f0;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 11px;
	font-family: inherit;
	color: #888;
}

/* ---------- KILL MaxCoach native popup ------ */
.page-search-popup,
#page-search-popup,
.popup-search,
.search-popup,
.page-search-popup-wrap,
.maxcoach-search-popup,
.header-search-form-popup,
#search-popup {
	display: none !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	z-index: -9999 !important;
	width: 0 !important;
	height: 0 !important;
	overflow: hidden !important;
	position: fixed !important;
	top: -9999px !important;
}

/* ---------- Mobile ------------------------- */
@media (max-width: 600px) {
	.mc-search-modal {
		width: auto;
		left: 16px;
		right: 16px;
		transform: translate(0, -50%) scale(0.92);
		padding: 24px;
	}

	.mc-search-modal.is-open {
		transform: translate(0, -50%) scale(1);
	}
}
