/* Overlay */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	opacity: 0;
	visibility: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	z-index: 1000;
}

/* Active state */
.modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* Modal container */
.modal-container {
	background: white;
	padding: 24px 28px;
	border-radius: 12px;
	max-width: 500px;
	width: 90%;
	text-align: center;
	transform: scale(0.85);
	opacity: 0;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Pop-in animation */
.modal-overlay.active .modal-container {
	animation: popIn 0.3s ease forwards;
}

/* Fade-out animation */
.modal-overlay.closing .modal-container {
	animation: fadeOut 0.25s ease forwards;
}

@keyframes popIn {
	0% {
		transform: scale(0.85);
		opacity: 0;
	}

	100% {
		transform: scale(1);
		opacity: 1;
	}
}

@keyframes fadeOut {
	0% {
		transform: scale(1);
		opacity: 1;
	}

	100% {
		transform: scale(0.9);
		opacity: 0;
	}
}

/* Title */
.modal-container-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 12px;
}

/* Message text */
#modal-message {
	color: #333;
	margin-bottom: 20px;
	line-height: 1.5;
}

/* Buttons container */
.modal-buttons {
	display: flex;
	justify-content: center;
	gap: 10px;
}

/* Buttons */
#modal-ok,
#modal-read-more {
	display: inline-block;
	background: #ffd74d;
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 600;
	color: #202020;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

/* Hover and active effects */
#modal-ok:hover,
#modal-read-more:hover {
	background: #f7c948;
	transform: translateY(-2px);
}

#modal-ok:active,
#modal-read-more:active {
	transform: translateY(0);
}

.modal-container-title {
	background: none;
	box-shadow: none;
	color: #202020;
	font-weight: 700;
	font-size: 1.25rem;
	text-align: center;
	padding: 0;
	margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 600px) {
	.modal-container {
		width: 92%;
		max-width: 420px;
		padding: 20px;
	}
}

/* Terms and Conditions Modal */
#termsModal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	opacity: 0;
	visibility: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	z-index: 1001;
}

#termsModal.active {
	opacity: 1;
	visibility: visible;
}

#termsModal .modal-container {
	background: white;
 /* same color as Data Privacy modal */
	padding: 24px 28px;
	border-radius: 12px;
	max-width: 500px;
	width: 90%;
	text-align: center;
	transform: scale(0.85);
	opacity: 0;
	box-shadow: none;
 /* no shadow */
	transition: transform 0.3s ease, opacity 0.3s ease;
}

#termsModal.active .modal-container {
	animation: popIn 0.3s ease forwards;
}

/* Title same color as body */
#termsModal .modal-container-title {
	background: none;
	box-shadow: none;
	color: #202020;
	font-weight: 700;
	font-size: 1.25rem;
	text-align: center;
	padding: 0;
	margin-bottom: 16px;
}

#termsModal #terms-message {
	color: #333;
	margin-bottom: 20px;
	line-height: 1.5;
}

/* Button styles (same as Data Privacy) */
#terms-ok,
#terms-read-more {
	display: inline-block;
	background: #ffd74d;
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	font-weight: 600;
	color: #202020;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

#terms-ok:hover,
#terms-read-more:hover {
	background: #f7c948;
	transform: translateY(-2px);
}

#terms-ok:active,
#terms-read-more:active {
	transform: translateY(0);
}

@media (max-width: 600px) {
	#termsModal .modal-container {
		width: 92%;
		max-width: 420px;
		padding: 20px;
	}
}