/* ── Wellness AF Newsletter Signup Widget ─────────────────────────────────── */

.wan-signup-wrapper {
	font-family: "DM Sans", sans-serif;
	max-width: 640px;
	margin: 0 auto;
	padding: 40px 36px;
	border-radius: 12px;
	box-sizing: border-box;
}

/* Light theme (default) */
.wan-style-light {
	background: #fff;
	border: 1px solid #E8E4DF;
	box-shadow: 0 4px 24px rgba(30, 27, 24, 0.06);
}

/* Dark theme */
.wan-style-dark {
	background: #1E1B18;
	border: 1px solid #2E2B28;
}

/* ── Heading & description ──────────────────────────────────────────────── */
.wan-signup-title {
	font-family: "Gloock", serif;
	font-weight: 400;
	font-size: clamp(22px, 4vw, 28px);
	margin: 0 0 10px;
	line-height: 1.25;
}

.wan-style-light .wan-signup-title { color: #1E1B18; }
.wan-style-dark  .wan-signup-title { color: #F7F4F0; }

.wan-signup-desc {
	font-size: 15px;
	line-height: 1.65;
	margin: 0 0 28px;
}

.wan-style-light .wan-signup-desc { color: #5A5350; }
.wan-style-dark  .wan-signup-desc { color: #A09A96; }

/* ── Form fields ────────────────────────────────────────────────────────── */
.wan-signup-form { margin: 0; }

.wan-field-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.wan-field { flex: 1 1 140px; display: flex; flex-direction: column; gap: 6px; }
.wan-field-email { flex: 2 1 220px; }

.wan-label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.wan-style-light .wan-label { color: #3A3530; }
.wan-style-dark  .wan-label { color: #C9C4BF; }

.wan-required { color: #D75B2E; margin-left: 2px; }

.wan-input {
	width: 100%;
	padding: 11px 14px;
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	border-radius: 8px;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
}

.wan-style-light .wan-input {
	border: 1.5px solid #D4CEC9;
	background: #FDFCFB;
	color: #1E1B18;
}
.wan-style-dark .wan-input {
	border: 1.5px solid #3E3B38;
	background: #2A2724;
	color: #F7F4F0;
}

.wan-style-light .wan-input::placeholder { color: #A09A96; }
.wan-style-dark  .wan-input::placeholder { color: #6A6560; }

.wan-style-light .wan-input:focus {
	border-color: #D75B2E;
	box-shadow: 0 0 0 3px rgba(215, 91, 46, 0.12);
}
.wan-style-dark .wan-input:focus {
	border-color: #D75B2E;
	box-shadow: 0 0 0 3px rgba(215, 91, 46, 0.18);
}

/* ── Submit row ─────────────────────────────────────────────────────────── */
.wan-form-footer {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.wan-btn-submit {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #D75B2E;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 12px 28px;
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s, transform 0.1s;
	white-space: nowrap;
	-webkit-appearance: none;
	appearance: none;
}

.wan-btn-submit:hover  { background: #c24e23; }
.wan-btn-submit:active { transform: scale(0.98); }
.wan-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Spinner inside button */
.wan-btn-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: wan-spin 0.65s linear infinite;
}

.wan-btn-submit.wan-loading .wan-btn-spinner { display: inline-block; }
.wan-btn-submit.wan-loading .wan-btn-label  { opacity: 0.7; }

@keyframes wan-spin {
	to { transform: rotate(360deg); }
}

.wan-privacy-note {
	font-size: 12px;
	margin: 0;
}
.wan-style-light .wan-privacy-note { color: #9E9692; }
.wan-style-dark  .wan-privacy-note { color: #6A6560; }

/* ── Feedback messages ──────────────────────────────────────────────────── */
.wan-feedback {
	margin-top: 14px;
	font-size: 14px;
	min-height: 0;
	transition: all 0.2s;
}

.wan-feedback:empty { display: none; }

.wan-feedback.wan-error {
	color: #D75B2E;
	padding: 10px 14px;
	background: rgba(215, 91, 46, 0.08);
	border-radius: 6px;
	border-left: 3px solid #D75B2E;
}

.wan-feedback.wan-info {
	padding: 10px 14px;
	border-radius: 6px;
	border-left: 3px solid #D75B2E;
}
.wan-style-light .wan-feedback.wan-info { color: #5A5350; background: #FDF8F5; }
.wan-style-dark  .wan-feedback.wan-info { color: #C9C4BF; background: rgba(215, 91, 46, 0.1); }

/* ── Success state ──────────────────────────────────────────────────────── */
.wan-success-message {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 4px 0;
}

.wan-success-message[hidden] { display: none; }

.wan-success-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #edf7f5;
	color: #3A8B82;
	font-size: 18px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wan-success-text {
	font-size: 16px;
	line-height: 1.6;
	margin: 0;
	padding-top: 6px;
}
.wan-style-light .wan-success-text { color: #3A3530; }
.wan-style-dark  .wan-success-text { color: #F7F4F0; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
	.wan-signup-wrapper { padding: 28px 20px; }
	.wan-field-row { flex-direction: column; gap: 14px; }
	.wan-field, .wan-field-email { flex: 1 1 auto; }
	.wan-form-footer { flex-direction: column; align-items: flex-start; }
	.wan-btn-submit { width: 100%; justify-content: center; }
}
