/* WP Newsletter Subscription Frontend Styles */
.wp-newsletter-box-wrapper {
	margin: 0 0 25px 0;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wp-newsletter-card {
	background-color: #ffffff;
	color: #1e293b;
	padding: 22px 20px;
	border-radius: 8px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
	box-sizing: border-box;
	border: 1px solid #cbd5e1;
	transition: box-shadow 0.25s ease;
}

.wp-newsletter-card:hover {
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07);
}

.wp-newsletter-header {
	text-align: center;
	margin-bottom: 18px;
}

.wp-newsletter-icon {
	width: 42px;
	height: 42px;
	background: rgba(56, 178, 172, 0.12);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
}

.wp-newsletter-title {
	font-size: 18px;
	font-weight: 800;
	color: #1e293b;
	margin: 0 0 4px 0;
	letter-spacing: -0.2px;
	line-height: 1.3;
}

.wp-newsletter-subtitle {
	font-size: 13px;
	color: #64748b;
	margin: 0;
	line-height: 1.45;
}

.wp-newsletter-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wp-newsletter-row-split {
	display: flex;
	gap: 10px;
}

.wp-newsletter-row-split .wp-newsletter-field {
	flex: 1;
	min-width: 0;
}

.wp-newsletter-field {
	width: 100%;
	box-sizing: border-box;
}

.wp-newsletter-input {
	width: 100%;
	height: 42px;
	background-color: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 0 12px;
	font-size: 14px;
	color: #0f172a;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	outline: none;
}

.wp-newsletter-input::placeholder {
	color: #94a3b8;
	font-size: 13.5px;
}

.wp-newsletter-input:focus {
	border-color: #38b2ac;
	background-color: #ffffff;
	box-shadow: 0 0 0 3px rgba(56, 178, 172, 0.18);
}

.wp-newsletter-disclaimer {
	font-size: 12px;
	color: #64748b;
	line-height: 1.4;
	text-align: center;
	margin-top: 2px;
}

.wp-newsletter-disclaimer a {
	color: #38b2ac;
	text-decoration: underline;
}

.wp-newsletter-checkbox-group {
	margin-top: 2px;
}

.wp-newsletter-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	color: #334155;
	line-height: 1.4;
	cursor: pointer;
}

.wp-newsletter-checkbox-label input[type="checkbox"] {
	margin-top: 2px;
	accent-color: #38b2ac;
	cursor: pointer;
}

/* Custom Number CAPTCHA Card */
.wp-newsletter-captcha-card {
	background-color: #f1f5f9;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 4px;
	margin-bottom: 4px;
}

.wp-captcha-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #334155;
}

.wp-captcha-icon {
	display: flex;
	align-items: center;
}

.wp-captcha-question strong {
	color: #0f172a;
	font-size: 14px;
}

.wp-captcha-input-wrap {
	width: 100%;
}

.wp-captcha-input {
	height: 38px;
	font-weight: 600;
}

/* Submit Button */
.wp-newsletter-submit-wrap {
	margin-top: 6px;
}

.wp-newsletter-submit-btn {
	width: 100%;
	height: 48px;
	background-color: #38b2ac;
	color: #ffffff;
	border: none;
	border-radius: 3px;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

.wp-newsletter-submit-btn:hover {
	background-color: #319795;
}

.wp-newsletter-submit-btn:active {
	transform: scale(0.99);
}

/* Alert Boxes */
.wp-newsletter-alert {
	padding: 12px 14px;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.4;
	margin-bottom: 14px;
}

.wp-newsletter-alert-success {
	background-color: #d1fae5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.wp-newsletter-alert-error {
	background-color: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

/* Loading Spinner */
.wp-spinner {
	animation: wp-rotate 1.5s linear infinite;
	width: 24px;
	height: 24px;
}

.wp-spinner .path {
	stroke: #ffffff;
	stroke-linecap: round;
	animation: wp-dash 1.5s ease-in-out infinite;
}

@keyframes wp-rotate {
	100% { transform: rotate(360deg); }
}

@keyframes wp-dash {
	0% {
		stroke-dasharray: 1, 150;
		stroke-dashoffset: 0;
	}
	50% {
		stroke-dasharray: 90, 150;
		stroke-dashoffset: -35;
	}
	100% {
		stroke-dasharray: 90, 150;
		stroke-dashoffset: -124;
	}
}
