/**
 * YT Email Subscription Box - Frontend Styles
 *
 * @package YT_Email_Subscription_Box
 */

.yt-esb-wrapper {
	max-width: 500px;
	margin: 20px 0;
	padding: 30px;
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.yt-esb-title {
	margin: 0 0 20px;
	font-size: 24px;
	font-weight: 600;
	color: #333;
	text-align: center;
}

.yt-esb-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.yt-esb-field {
	display: flex;
	flex-direction: column;
}

.yt-esb-input {
	width: 100%;
	padding: 12px 15px;
	font-size: 16px;
	border: 1px solid #ddd;
	border-radius: 4px;
	transition: border-color 0.3s ease;
	box-sizing: border-box;
}

.yt-esb-input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 1px #0073aa;
}

.yt-esb-button {
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background-color: #0073aa;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.yt-esb-button:hover {
	background-color: #005a87;
}

.yt-esb-button:active {
	background-color: #004768;
}

.yt-esb-button:disabled {
	background-color: #ccc;
	cursor: not-allowed;
}

.yt-esb-message {
	padding: 12px 15px;
	border-radius: 4px;
	font-size: 14px;
	text-align: center;
	display: none;
}

.yt-esb-message.success {
	display: block;
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.yt-esb-message.error {
	display: block;
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.yt-esb-message.loading {
	display: block;
	background-color: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

/* Responsive styles */
@media (max-width: 600px) {
	.yt-esb-wrapper {
		padding: 20px;
	}

	.yt-esb-title {
		font-size: 20px;
	}

	.yt-esb-input,
	.yt-esb-button {
		font-size: 14px;
	}
}
