/**
 * Custom Modal Styles — no library dependency.
 *
 * @package PositivePsychology
 * @since   1.0.0
 */

/* --------------------------------------------------------------------------
   Prevent body scroll when modal is open
   -------------------------------------------------------------------------- */
.pp-modal-open {
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Backdrop
   -------------------------------------------------------------------------- */
.pp-modal__backdrop {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.55);
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.25s ease;
	z-index: 1040;
}

/* --------------------------------------------------------------------------
   Modal wrapper — hidden by default
   -------------------------------------------------------------------------- */
.pp-modal {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	inset: 0;
	z-index: 1050;
	padding: 1rem;
	visibility: hidden;
	pointer-events: none;
}

/* Open state */
.pp-modal.is-open {
	visibility: visible;
	pointer-events: auto;
}

.pp-modal.is-open .pp-modal__backdrop {
	opacity: 1;
}

.pp-modal.is-open .pp-modal__dialog {
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* --------------------------------------------------------------------------
   Dialog box
   -------------------------------------------------------------------------- */
.pp-modal__dialog {
	position: relative;
	background: #fff;
	border-radius: 0.5rem;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	max-width: 680px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	z-index: 1051;
	opacity: 0;
	transform: translateY(-20px) scale(0.97);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

/* --------------------------------------------------------------------------
   Close button
   -------------------------------------------------------------------------- */
body .pp-modal__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
    border: none;
    appearance: none;
	padding: 0 !important;
	background: transparent;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	font-size: 1.5rem;
	line-height: 1;
	color: #000;
	transition: background-color 0.15s ease, color 0.15s ease;
	z-index: 1;
}

body .pp-modal__close:hover,
body .pp-modal__close:focus-visible {
	background-color: transparent;
	color: #000;
	opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Modal body — with image variant
   -------------------------------------------------------------------------- */
.pp-modal__body {
	display: flex;
	flex-direction: column;
	padding: 2.5rem 1.5rem;
}

.pp-modal__body--has-image {
	padding: 0;
}

.pp-modal__image {
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 0.5rem 0.5rem 0 0;
}

.pp-modal__image img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.pp-modal__body--has-image .pp-modal__content {
	padding: 20px;
}
.pp-modal__body--has-image .pp-modal__content h2{
    font-size: 32px;
}

/* --------------------------------------------------------------------------
   Side-by-side layout on wider screens (image left, content right)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
	.pp-modal__body--has-image {
		flex-direction: row;
	}

	.pp-modal__image {
		width: 40%;
		border-radius: 0.5rem 0 0 0.5rem;
	}

	.pp-modal__image img {
		height: 100%;
	}

	.pp-modal__body--has-image .pp-modal__content {
		width: 60%;
		padding: 2.5rem;
	}
}
@media (max-width: 1199px) {
.pp-modal__body--has-image .pp-modal__content h2{
    font-size: 24px;
}
}

/* --------------------------------------------------------------------------
   Reduced motion preference
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.pp-modal__backdrop,
	.pp-modal__dialog {
		transition: none;
	}
}