/* ============================================================
 * Kumra Video Guide — Video Modal Styles
 *
 * Matches design mockup: white modal, circular close button,
 * dark video area, light info area with dark text.
 * ============================================================ */

/* --- Modal Backdrop ------------------------------------------------------- */
.kvg-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
}

.kvg-modal--open {
	display: block;
}

.kvg-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(16, 26, 40, 0.82);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

/* --- Content Area (white card) -------------------------------------------- */
.kvg-modal__content {
	position: relative;
	background: #fff;
	border-radius: 14px;
	width: 100%;
	max-width: 860px;
	max-height: 92vh;
	overflow-y: auto;
	color: #263B53;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

/* --- Close Button (circular, dark bg, gold hover) ------------------------- */
.kvg-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 10;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: none;
	background: rgba(42, 46, 52, 0.65);
	color: #fff;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background 0.25s ease;
}

.kvg-modal__close:hover,
.kvg-modal__close:focus-visible {
	background: #D4AF37;
	outline: 2px solid #D4AF37;
	outline-offset: 2px;
}

/* --- Video Container (dark, 16:9) ----------------------------------------- */
.kvg-modal__video-wrap {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 14px 14px 0 0;
	overflow: hidden;
}

.kvg-modal__iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

/* --- Info Area (light bg, dark text) -------------------------------------- */
.kvg-modal__title {
	font-size: 20px;
	font-weight: 700;
	margin: 0;
	padding: 22px 26px 4px;
	color: #263B53;
}

.kvg-modal__desc {
	font-size: 15px;
	line-height: 1.5;
	margin: 0;
	padding: 4px 26px 26px;
	color: #66768A;
}

/* --- Responsive: bottom-sheet on mobile ----------------------------------- */
@media (max-width: 600px) {
	.kvg-modal__overlay {
		padding: 0;
		align-items: flex-end;
	}

	.kvg-modal__content {
		max-height: 85vh;
		border-radius: 12px 12px 0 0;
		max-width: 100%;
	}

	.kvg-modal__video-wrap {
		border-radius: 12px 12px 0 0;
	}

	.kvg-modal__close {
		top: 8px;
		right: 8px;
		width: 34px;
		height: 34px;
		font-size: 15px;
	}

	.kvg-modal__title {
		font-size: 18px;
		padding: 16px 20px 4px;
	}

	.kvg-modal__desc {
		font-size: 14px;
		padding: 4px 20px 20px;
	}
}

/* --- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.kvg-modal__close {
		transition: none;
	}
}
