/**
 * YD Elegant Popup Styles
 * @package YD_Elegant_Popup
 */

.yd-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(2, 59, 72, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease, visibility 0.5s ease;
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}

.yd-popup-overlay.active {
	opacity: 1;
	visibility: visible;
}

.yd-popup-container {
	background: #003B4A;
	color: #ffffff;
	position: relative;
	max-width: 600px;
	width: 90%;
	padding: 50px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: ydPopupSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
	border-bottom: 5px solid #D0912A;
	border-radius: 2px;
}

@keyframes ydPopupSlideIn {
	from {
		opacity: 0;
		transform: scale(0.85) translateY(20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.yd-popup-content {
	text-align: center;
	font-family: "Catamaran", Arial, Tahoma, sans-serif;
}



.yd-popup-content h1,
.yd-popup-content h2,
.yd-popup-content h3,
.yd-popup-content h4,
.yd-popup-content h5,
.yd-popup-content h6 {
	color: #ffffff;
	font-family: "Catamaran", Arial, Tahoma, sans-serif;
	text-transform: uppercase;
	margin-top: 0;
	margin-bottom: 15px;
	font-weight: 700;
	letter-spacing: 0.5px;
}

.yd-popup-content p {
	font-size: 16px;
	line-height: 1.6;
	margin: 15px 0;
	color: #ffffff;
}

.yd-popup-content p:first-child {
	margin-top: 0;
}

.yd-popup-content p:last-child {
	margin-bottom: 0;
}

.yd-popup-content a {
	color: #D0912A;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s ease;
	border-bottom: 1px solid transparent;
}

.yd-popup-content a:hover,
.yd-popup-content a:focus {
	color: #E9E6E4;
	border-bottom-color: #D0912A;
	outline: none;
}

.yd-popup-content a.button,
.yd-popup-content .button {
	display: inline-block;
	background: #D0912A;
	color: #003B4A;
	padding: 12px 30px;
	text-transform: uppercase;
	font-weight: 700;
	font-family: "Catamaran", Arial, Tahoma, sans-serif;
	margin-top: 15px;
	transition: all 0.3s ease;
	border: 2px solid #D0912A;
	border-radius: 2px;
	cursor: pointer;
	letter-spacing: 0.5px;
}

.yd-popup-content a.button:hover,
.yd-popup-content a.button:focus,
.yd-popup-content .button:hover,
.yd-popup-content .button:focus {
	background: transparent;
	color: #D0912A;
	outline: none;
}

.yd-popup-content ul,
.yd-popup-content ol {
	margin: 15px 0;
	padding-left: 20px;
}

.yd-popup-content li {
	margin: 8px 0;
	color: #ffffff;
}

/* Close Button */
.yd-popup-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: none;
	border: none;
	width: 30px;
	height: 30px;
	cursor: pointer;
	padding: 0;
	z-index: 10;
	transition: transform 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.yd-popup-close:hover,
.yd-popup-close:focus {
	transform: rotate(90deg);
	outline: none;
}

.yd-popup-close span {
	position: absolute;
	width: 30px;
	height: 2px;
	background: #D0912A;
	top: 50%;
	left: 0;
	transition: background-color 0.3s ease;
}

.yd-popup-close:hover span,
.yd-popup-close:focus span {
	background: #E9E6E4;
}

.yd-popup-close span:first-child {
	transform: rotate(45deg);
}

.yd-popup-close span:last-child {
	transform: rotate(-45deg);
}

/* Responsive Design */
@media (max-width: 768px) {
	.yd-popup-container {
		max-width: 95%;
		padding: 40px 25px 25px;
		margin: 20px;
	}

	.yd-popup-content h1,
	.yd-popup-content h2,
	.yd-popup-content h3,
	.yd-popup-content h4 {
		font-size: 24px;
	}

	.yd-popup-content p {
		font-size: 15px;
	}

	.yd-popup-content a.button,
	.yd-popup-content .button {
		padding: 10px 20px;
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.yd-popup-overlay {
		padding: 20px;
	}

	.yd-popup-container {
		padding: 35px 20px 20px;
		border-radius: 0;
	}

	.yd-popup-content h1,
	.yd-popup-content h2,
	.yd-popup-content h3,
	.yd-popup-content h4 {
		font-size: 20px;
	}

	.yd-popup-content p {
		font-size: 14px;
		line-height: 1.5;
	}

	.yd-popup-close {
		width: 24px;
		height: 24px;
		top: 15px;
		right: 15px;
	}

	.yd-popup-close span {
		width: 24px;
		height: 1.5px;
	}
}
