/* ==========================================================================
   TVS Block Newsletter - Frontend Signup Box & In-Post Templates CSS
   ========================================================================== */

/* Base Signup Container */
.tvs-newsletter-signup-box,
.tvs-pro-signup-container {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	margin: 28px 0;
	padding: 32px 36px;
	border-radius: 16px;
	overflow: hidden;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Full Width Handling */
.tvs-newsletter-signup-box.tvs-full-width,
.tvs-newsletter-signup-box.alignfull {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.tvs-newsletter-signup-box.tvs-boxed {
	max-width: 640px;
	margin-left: auto;
	margin-right: auto;
}

/* Typography Base */
.tvs-signup-title,
.tvs-pro-signup-title {
	margin: 0 0 8px 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	color: #0f172a;
}

.tvs-signup-desc,
.tvs-pro-signup-desc {
	margin: 0 0 22px 0;
	font-size: 15px;
	line-height: 1.5;
	color: #56524e;
}

/* Heading Font Choices */
.tvs-font-serif .tvs-signup-title,
.tvs-template-editorial .tvs-signup-title {
	font-family: Georgia, 'Times New Roman', Merriweather, serif;
	letter-spacing: -0.01em;
}

.tvs-font-sans .tvs-signup-title {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Text Alignments */
.tvs-align-left {
	text-align: left;
}
.tvs-align-center {
	text-align: center;
}
.tvs-align-center .tvs-signup-title,
.tvs-align-center .tvs-signup-desc {
	text-align: center;
}
.tvs-align-center .tvs-form-inline .tvs-form-fields-wrap {
	justify-content: center;
}

/* Form Structure */
.tvs-newsletter-form,
.tvs-pro-signup-form {
	width: 100%;
	box-sizing: border-box;
}

/* Horizontal Inline Form Layout */
.tvs-form-inline .tvs-form-fields-wrap {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 14px;
	width: 100%;
	box-sizing: border-box;
}

.tvs-form-inline .tvs-form-group.tvs-group-name {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
}

.tvs-form-inline .tvs-form-group.tvs-group-email {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
}

.tvs-form-inline .tvs-form-group.tvs-group-submit {
	flex: 0 0 auto;
	margin: 0;
}

.tvs-form-inline .tvs-submit-btn {
	width: auto;
	white-space: nowrap;
	min-width: 160px;
}

/* Vertical Stacked Form Layout */
.tvs-form-stacked .tvs-form-fields-wrap {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	box-sizing: border-box;
}

.tvs-form-stacked .tvs-form-group {
	width: 100%;
	margin: 0;
}

.tvs-form-stacked .tvs-submit-btn {
	width: 100%;
}

/* Generic Form Group */
.tvs-form-group,
.tvs-pro-form-row {
	margin-bottom: 12px;
	box-sizing: border-box;
}

/* Inputs */
.tvs-input,
.tvs-pro-input {
	width: 100%;
	height: 48px;
	line-height: 48px;
	padding: 0 16px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 15px;
	color: #1a1a1a;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
	outline: none;
	-webkit-appearance: none;
}

.tvs-input::placeholder,
.tvs-pro-input::placeholder {
	color: #8c8880;
	opacity: 1;
}

.tvs-input:focus,
.tvs-pro-input:focus {
	border-color: #c8551e;
	box-shadow: 0 0 0 3px rgba(200, 85, 30, 0.15);
	outline: none;
}

/* Submit Button */
.tvs-submit-btn,
.tvs-pro-submit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	line-height: 48px;
	padding: 0 28px;
	background: #c8551e;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.5px;
	cursor: pointer;
	box-sizing: border-box;
	transition: background-color 0.18s ease, transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
	text-decoration: none;
}

.tvs-submit-btn:hover,
.tvs-pro-submit-btn:hover {
	background: #b34a17;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(200, 85, 30, 0.25);
}

.tvs-submit-btn:active,
.tvs-pro-submit-btn:active {
	transform: translateY(0);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.tvs-submit-btn:disabled,
.tvs-pro-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.tvs-btn-uppercase {
	text-transform: uppercase;
}

/* Feedback Messages */
.tvs-form-message,
.tvs-pro-form-msg {
	margin-top: 14px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	transition: opacity 0.2s ease;
}

.tvs-form-message.success,
.tvs-pro-form-msg.success {
	color: #15803d;
	background: rgba(34, 197, 94, 0.12);
	border: 1px solid rgba(34, 197, 94, 0.3);
	border-radius: 6px;
	padding: 10px 14px;
}

.tvs-form-message.error,
.tvs-pro-form-msg.error {
	color: #b91c1c;
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.25);
	border-radius: 6px;
	padding: 10px 14px;
}

/* ==========================================================================
   TEMPLATES
   ========================================================================== */

/* 1. Template: Editorial Warm (Exact Match to User Screenshot) */
.tvs-template-editorial {
	background-color: #f2ece5;
	border: none;
	border-radius: 24px;
	padding: 38px 42px;
	box-shadow: none;
}

.tvs-template-editorial .tvs-signup-title {
	font-family: Georgia, 'Times New Roman', Merriweather, serif;
	font-size: 27px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 8px 0;
	letter-spacing: -0.01em;
}

.tvs-template-editorial .tvs-signup-desc {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 15px;
	color: #56524e;
	margin: 0 0 24px 0;
}

.tvs-template-editorial .tvs-input {
	background-color: #ffffff;
	border: 1px solid #e0ded8;
	border-radius: 8px;
	padding: 0 18px;
	font-size: 15px;
	color: #1a1a1a;
	height: 48px;
	line-height: 48px;
}

.tvs-template-editorial .tvs-input::placeholder {
	color: #8c8880;
	opacity: 1;
}

.tvs-template-editorial .tvs-input:focus {
	border-color: #c8551e;
	box-shadow: 0 0 0 3px rgba(200, 85, 30, 0.15);
}

.tvs-template-editorial .tvs-submit-btn {
	background-color: #c8551e;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	padding: 0 28px;
	height: 48px;
	line-height: 48px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tvs-template-editorial .tvs-submit-btn:hover {
	background-color: #b34a17;
	box-shadow: 0 4px 12px rgba(200, 85, 30, 0.28);
}

/* 2. Template: Modern Minimal */
.tvs-template-minimal {
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 32px 36px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.tvs-template-minimal .tvs-signup-title {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 24px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 6px 0;
}

.tvs-template-minimal .tvs-signup-desc {
	font-size: 14px;
	color: #64748b;
	margin: 0 0 20px 0;
}

.tvs-template-minimal .tvs-input {
	background-color: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	height: 46px;
	line-height: 46px;
}

.tvs-template-minimal .tvs-input:focus {
	background-color: #ffffff;
	border-color: #0f172a;
	box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.tvs-template-minimal .tvs-submit-btn {
	background-color: #0f172a;
	color: #ffffff;
	border-radius: 8px;
	height: 46px;
	line-height: 46px;
	font-size: 14px;
	font-weight: 600;
}

.tvs-template-minimal .tvs-submit-btn:hover {
	background-color: #1e293b;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* 3. Template: TVS Brand Classic */
.tvs-template-brand {
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 32px 36px;
	box-shadow: 0 4px 16px rgba(0, 56, 135, 0.06);
	position: relative;
}

.tvs-template-brand::before,
.tvs-has-accent::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(135deg, #ffea00 0%, #d9ff00 100%);
}

.tvs-template-brand .tvs-signup-title {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: #003887;
	margin: 0 0 8px 0;
}

.tvs-template-brand .tvs-signup-desc {
	font-size: 14px;
	color: #64748b;
	margin: 0 0 20px 0;
}

.tvs-template-brand .tvs-input {
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	height: 46px;
	line-height: 46px;
}

.tvs-template-brand .tvs-input:focus {
	border-color: #003887;
	box-shadow: 0 0 0 3px rgba(0, 56, 135, 0.12);
}

.tvs-template-brand .tvs-submit-btn {
	background: linear-gradient(135deg, #ffea00 0%, #d9ff00 100%);
	color: #003887;
	border: 1px solid rgba(0, 56, 135, 0.15);
	border-radius: 6px;
	height: 46px;
	line-height: 46px;
	font-size: 14px;
	font-weight: 700;
}

.tvs-template-brand .tvs-submit-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(255, 234, 0, 0.35);
}

/* 4. Template: Midnight Dark */
.tvs-template-dark {
	background-color: #0f172a;
	border: 1px solid #1e293b;
	border-radius: 20px;
	padding: 36px 40px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.tvs-template-dark .tvs-signup-title {
	font-family: Georgia, 'Times New Roman', Merriweather, serif;
	font-size: 26px;
	font-weight: 700;
	color: #f8fafc;
	margin: 0 0 8px 0;
}

.tvs-template-dark .tvs-signup-desc {
	font-size: 15px;
	color: #94a3b8;
	margin: 0 0 24px 0;
}

.tvs-template-dark .tvs-input {
	background-color: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: #ffffff;
	border-radius: 8px;
	height: 48px;
	line-height: 48px;
}

.tvs-template-dark .tvs-input::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.tvs-template-dark .tvs-input:focus {
	background-color: rgba(255, 255, 255, 0.12);
	border-color: #f97316;
	box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.25);
}

.tvs-template-dark .tvs-submit-btn {
	background-color: #f97316;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	height: 48px;
	line-height: 48px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.tvs-template-dark .tvs-submit-btn:hover {
	background-color: #ea580c;
	box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

/* 5. Template: Compact Strip */
.tvs-template-compact {
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	padding: 24px 28px;
	box-shadow: none;
}

.tvs-template-compact .tvs-signup-title {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: #1e293b;
	margin: 0 0 4px 0;
}

.tvs-template-compact .tvs-signup-desc {
	font-size: 13px;
	color: #64748b;
	margin: 0 0 16px 0;
}

.tvs-template-compact .tvs-input {
	background-color: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	padding: 0 20px;
	height: 44px;
	line-height: 44px;
	font-size: 14px;
}

.tvs-template-compact .tvs-submit-btn {
	background-color: #2563eb;
	color: #ffffff;
	border: none;
	border-radius: 999px;
	padding: 0 24px;
	height: 44px;
	line-height: 44px;
	font-size: 14px;
	font-weight: 600;
}

.tvs-template-compact .tvs-submit-btn:hover {
	background-color: #1d4ed8;
	box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile Devices)
   ========================================================================== */

/* Tablet & Smaller Screens (<= 768px) */
@media screen and (max-width: 768px) {
	.tvs-newsletter-signup-box,
	.tvs-pro-signup-container {
		padding: 26px 20px !important;
		margin: 22px 0 !important;
		border-radius: 16px !important;
	}

	.tvs-template-editorial {
		padding: 28px 22px !important;
		border-radius: 18px !important;
	}

	.tvs-signup-title,
	.tvs-pro-signup-title {
		font-size: 22px !important;
		margin-bottom: 6px !important;
	}

	.tvs-signup-desc,
	.tvs-pro-signup-desc {
		font-size: 14px !important;
		margin-bottom: 18px !important;
	}

	/* Turn inline horizontal form into full-width stacked column */
	.tvs-form-inline .tvs-form-fields-wrap {
		flex-direction: column !important;
		gap: 12px !important;
		width: 100% !important;
	}

	.tvs-form-inline .tvs-form-group.tvs-group-name,
	.tvs-form-inline .tvs-form-group.tvs-group-email,
	.tvs-form-inline .tvs-form-group.tvs-group-submit {
		width: 100% !important;
		min-width: 100% !important;
		flex: none !important;
		margin: 0 !important;
	}

	.tvs-form-inline .tvs-input {
		width: 100% !important;
		height: 48px !important;
		font-size: 15px !important;
	}

	.tvs-form-inline .tvs-submit-btn {
		width: 100% !important;
		min-width: 100% !important;
		height: 48px !important;
		display: flex !important;
		justify-content: center !important;
		text-align: center !important;
	}
}

/* Small Mobile Screens (<= 480px) */
@media screen and (max-width: 480px) {
	.tvs-newsletter-signup-box,
	.tvs-pro-signup-container {
		padding: 22px 16px !important;
		margin: 18px 0 !important;
		border-radius: 14px !important;
	}

	.tvs-signup-title,
	.tvs-pro-signup-title {
		font-size: 20px !important;
	}

	.tvs-signup-desc,
	.tvs-pro-signup-desc {
		font-size: 13px !important;
		margin-bottom: 16px !important;
	}

	.tvs-input,
	.tvs-pro-input {
		height: 46px !important;
		line-height: 46px !important;
		padding: 0 14px !important;
		font-size: 14px !important;
	}

	.tvs-submit-btn,
	.tvs-pro-submit-btn {
		height: 46px !important;
		line-height: 46px !important;
		font-size: 14px !important;
	}
}
