/**
 * Frontend Stylesheet - BioInformatix Newsletter.
 * Clean white theme using site brand colors.
 */

:root {
	--bio-primary: #00b294;
	--bio-secondary: #1a2d62;
	--bio-bg-card: #ffffff;
	--bio-text: #1a2d62;
	--bio-text-light: #5d6982;
	--bio-border: #dce8e5;
	--bio-input-bg: #ffffff;
	--bio-accent: #00b294;
	--bio-shadow: 0 14px 35px -24px rgba(26, 45, 98, 0.35);
	--bio-radius: 12px;
	--bio-success-bg: #effcf9;
	--bio-success-text: #087765;
	--bio-error-bg: #fff5f5;
	--bio-error-text: #742a2a;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bio-bg-card: #ffffff;
		--bio-text: #1a2d62;
		--bio-text-light: #5d6982;
		--bio-border: #dce8e5;
		--bio-input-bg: #ffffff;
		--bio-shadow: 0 14px 35px -24px rgba(26, 45, 98, 0.35);
		--bio-success-bg: #effcf9;
		--bio-success-text: #087765;
		--bio-error-bg: #fff5f5;
		--bio-error-text: #742a2a;
	}
}

.dark-theme {
	--bio-bg-card: #ffffff;
	--bio-text: #1a2d62;
	--bio-text-light: #5d6982;
	--bio-border: #dce8e5;
	--bio-input-bg: #ffffff;
	--bio-shadow: 0 14px 35px -24px rgba(26, 45, 98, 0.35);
}

.bio-form-card {
	background-color: var(--bio-bg-card);
	color: var(--bio-text);
	border: 1px solid var(--bio-border);
	border-radius: var(--bio-radius);
	box-shadow: var(--bio-shadow);
	padding: 22px;
	font-family: inherit;
	line-height: 1.5;
	max-width: 620px;
	margin: 20px auto;
	box-sizing: border-box;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bio-inline-card {
	max-width: 100%;
	background: #ffffff;
}

.bio-form-card h3 {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 22px;
	font-weight: 700;
	color: var(--bio-secondary);
}

.bio-form-intro {
	color: var(--bio-text-light);
	font-size: 14px;
	margin-bottom: 25px;
}

.bio-form-logo {
	margin-bottom: 20px;
	text-align: center;
}
.bio-form-logo img {
	max-height: 60px;
	width: auto;
}
.bio-form-brand {
	font-size: 22px;
	font-weight: 800;
	color: var(--bio-secondary);
	text-align: center;
	margin-bottom: 15px;
	letter-spacing: 0;
}

.bio-input-group {
	margin-bottom: 15px;
}
.bio-input-field {
	width: 100% !important;
	min-height: 48px !important;
	padding: 12px 16px !important;
	border: 1px solid var(--bio-border) !important;
	background-color: var(--bio-input-bg) !important;
	color: var(--bio-secondary) !important;
	border-radius: 8px !important;
	font-size: 14px !important;
	box-sizing: border-box !important;
	outline: none !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.bio-input-field::placeholder {
	color: #7b859a !important;
}
.bio-input-field:focus {
	border-color: var(--bio-primary) !important;
	box-shadow: 0 0 0 3px rgba(0, 178, 148, 0.16) !important;
}

.bio-gdpr-group {
	margin: 20px 0;
}
.bio-gdpr-label {
	display: flex !important;
	align-items: flex-start !important;
	font-size: 13px !important;
	color: var(--bio-text-light) !important;
	cursor: pointer !important;
}
.bio-gdpr-label input[type="checkbox"] {
	margin-top: 3px !important;
	margin-right: 10px !important;
}

.bio-submit-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 48px !important;
	width: 100% !important;
	padding: 12px 24px !important;
	background: var(--bio-primary) !important;
	color: #ffffff !important;
	border: 1px solid var(--bio-primary) !important;
	border-radius: 8px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease !important;
	outline: none !important;
}
.bio-submit-btn:hover {
	background: var(--bio-secondary) !important;
	border-color: var(--bio-secondary) !important;
}
.bio-submit-btn:active {
	transform: scale(0.98) !important;
}

.bio-form-fields-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
	gap: 12px;
	align-items: stretch;
	margin-bottom: 0;
}
.bio-form-fields-row .bio-input-group {
	margin-bottom: 0;
}
.bio-form-fields-row .bio-submit-btn {
	width: auto !important;
	min-width: 130px !important;
	white-space: nowrap !important;
}

@media (max-width: 700px) {
	.bio-form-card {
		padding: 18px;
	}
	.bio-form-fields-row {
		grid-template-columns: 1fr;
	}
	.bio-form-fields-row .bio-submit-btn {
		width: 100% !important;
	}
}

.bio-popup-overlay {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	background-color: rgba(26, 45, 98, 0.18) !important;
	backdrop-filter: blur(4px) !important;
	z-index: 999999 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.bio-popup-overlay.active {
	opacity: 1;
}
.bio-popup-content {
	position: relative !important;
	transform: scale(0.96) !important;
	transition: transform 0.3s ease !important;
}
.bio-popup-overlay.active .bio-popup-content {
	transform: scale(1) !important;
}
.bio-popup-close {
	position: absolute !important;
	top: 12px !important;
	right: 14px !important;
	background: none !important;
	border: none !important;
	color: var(--bio-secondary) !important;
	font-size: 24px !important;
	line-height: 1 !important;
	cursor: pointer !important;
	padding: 0 !important;
}

.bio-floating-trigger-container {
	position: fixed !important;
	bottom: 30px !important;
	right: 30px !important;
	z-index: 999998 !important;
}
.bio-floating-trigger {
	width: 60px !important;
	height: 60px !important;
	border-radius: 50% !important;
	background: var(--bio-primary) !important;
	color: #ffffff !important;
	border: none !important;
	box-shadow: 0 14px 30px rgba(0, 178, 148, 0.28) !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
}
.bio-floating-trigger:hover {
	background: var(--bio-secondary) !important;
	transform: translateY(-5px) !important;
	box-shadow: 0 16px 34px rgba(26, 45, 98, 0.25) !important;
}
.bio-floating-trigger .dashicons {
	font-size: 28px !important;
	width: 28px !important;
	height: 28px !important;
}

.bio-form-response {
	margin-top: 15px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 500;
	animation: bioFadeIn 0.3s ease;
}
.bio-form-response.success {
	background-color: var(--bio-success-bg);
	border: 1px solid var(--bio-primary);
	color: var(--bio-success-text);
}
.bio-form-response.error {
	background-color: var(--bio-error-bg);
	border: 1px solid #fc8181;
	color: var(--bio-error-text);
}

.bio-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255,255,255,0.3);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: bioSpin 0.8s linear infinite;
	margin-left: 10px;
	display: inline-block;
}

@keyframes bioSpin {
	to { transform: rotate(360deg); }
}
@keyframes bioFadeIn {
	from { opacity: 0; transform: translateY(5px); }
	to { opacity: 1; transform: translateY(0); }
}