/**
 * Frontend Popup Styles
 */

#codam-popup-overlay {
	position: fixed;
	bottom: -400px;
	right: 12px;
	z-index: 9999;
	opacity: 0;
	transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#codam-popup-overlay.show {
	bottom: 12px;
	opacity: 1;
}

.codam-popup-container {
	position: relative;
	width: 100%;
	max-width: 380px;
	background: white;
	border-radius: 10px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.codam-popup-close {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #f5f5f5;
	border: none;
	font-size: 26px;
	cursor: pointer;
	color: #666;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	transition: all 0.2s;
	border-radius: 50%;
}

.codam-popup-close:hover {
	color: #000;
	background: #e8e8e8;
}

.codam-popup-content {
	padding: 18px;
}

.codam-popup-image-wrapper {
	margin-bottom: 12px;
	border-radius: 8px;
	overflow: hidden;
}

.codam-popup-image {
	display: block;
	width: 100%;
	height: auto;
}

.codam-popup-title {
	font-size: 20px;
	font-weight: 700;
	color: #222;
	margin: 0 0 6px 0;
	line-height: 1.3;
}

.codam-popup-description {
	font-size: 13px;
	color: #666;
	margin: 0 0 14px 0;
	line-height: 1.5;
}

.codam-popup-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.codam-form-group {
	display: flex;
	flex-direction: column;
}

.codam-form-input {
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 13px;
	font-family: inherit;
	transition: border-color 0.2s;
}

.codam-form-input:focus {
	outline: none;
	border-color: #007cba;
	box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.codam-form-input::placeholder {
	color: #999;
}

.codam-form-button {
	padding: 9px 20px;
	background: #be73a4;
	color: white;
	border: none;
	border-radius: 5px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.2s;
	font-family: inherit;
}

.codam-form-button:hover:not(:disabled) {
	background: #b73188;
	transform: translateY(-1px);
}

.codam-form-button:active:not(:disabled) {
	transform: translateY(0);
}

.codam-form-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.codam-success-message {
	color: #2e7d32;
	font-size: 14px;
	margin: 0;
	text-align: center;
	padding: 12px;
	background: #f1f8e9;
	border-radius: 6px;
	margin-bottom: 12px;
}

.codam-error-message {
	color: #c62828;
	font-size: 14px;
	margin: 0;
	text-align: center;
	padding: 12px;
	background: #ffebee;
	border-radius: 6px;
	margin-bottom: 12px;
	border-left: 4px solid #c62828;
}

/* Responsive Design */
@media (max-width: 768px) {
	#codam-popup-overlay {
		left: 12px;
		right: 12px;
		bottom: 0;
	}

	#codam-popup-overlay.show {
		bottom: 12px;
	}

	.codam-popup-container {
		max-width: none;
	}

	.codam-popup-content {
		padding: 14px;
	}

	.codam-popup-image-wrapper {
		margin-bottom: 10px;
	}

	.codam-popup-title {
		font-size: 17px;
		margin-bottom: 5px;
	}

	.codam-popup-description {
		font-size: 12px;
		margin-bottom: 12px;
	}

	.codam-form-input {
		font-size: 12px;
		padding: 7px 9px;
	}

	.codam-form-button {
		font-size: 12px;
		padding: 8px 18px;
	}
}

@media (max-width: 480px) {
	#codam-popup-overlay {
		left: auto;
		right: 10px;
		bottom: 10px;
	}

	#codam-popup-overlay.show {
		bottom: 10px;
	}

	.codam-popup-container {
		max-width: 300px;
	}

	.codam-popup-content {
		padding: 12px;
	}

	.codam-popup-close {
		top: 6px;
		right: 6px;
		font-size: 22px;
		width: 26px;
		height: 26px;
	}

	.codam-popup-image-wrapper {
		margin-bottom: 8px;
	}

	.codam-popup-title {
		font-size: 15px;
		margin-bottom: 4px;
		font-weight: 700;
	}

	.codam-popup-description {
		font-size: 11px;
		margin-bottom: 10px;
		line-height: 1.4;
	}

	.codam-popup-form {
		gap: 6px;
	}

	.codam-form-input {
		font-size: 15px;
		padding: 7px 9px;
		border-radius: 4px;
	}

	.codam-form-button {
		font-size: 13px;
		padding: 8px 16px;
		border-radius: 4px;
	}

	.codam-success-message {
		font-size: 12px;
		padding: 8px;
		margin-bottom: 6px;
	}
}
