/* Newsletter Subscribe Form */
.nds-subscribe-form {
	width: 100%;
	max-width: 500px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	animation: formFadeIn 0.6s ease-out;
}

@keyframes formFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.nds-input {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--nv-border);
	background: rgba(255, 255, 255, 0.03);
	color: var(--nv-text-primary);
	border-radius: 8px;
	font-size: 14px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	backdrop-filter: blur(10px);
	font-family: inherit;
	box-sizing: border-box;
	position: relative;
	animation: inputSlideIn 0.4s ease-out backwards;
}

.nds-input:nth-of-type(1) {
	animation-delay: 0.1s;
}

.nds-input:nth-of-type(2) {
	animation-delay: 0.2s;
}

.nds-input:nth-of-type(3) {
	animation-delay: 0.3s;
}

.nds-input::placeholder {
	color: var(--nv-text-muted);
	opacity: 0.6;
	transition: opacity 0.3s ease;
}

.nds-input:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(251, 191, 36, 0.4);
	transform: translateY(-1px);
}

.nds-input:focus {
	outline: none;
	border-color: var(--nv-accent);
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12), 0 4px 16px rgba(251, 191, 36, 0.15);
	transform: translateY(-2px);
}

.nds-input:focus::placeholder {
	opacity: 0.3;
}

.subscribe-form-input {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 18px;
}

.subscribe-form-buttons {
	display: flex;
	gap: 12px;
}

.nds-btn-subscribe {
	flex: 1;
	padding: 12px 24px;
	background: var(--nv-accent);
	color: #000;
	border: 2px solid var(--nv-accent);
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-family: inherit;
	letter-spacing: 0.05em;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
	animation: buttonSlideIn 0.5s ease-out backwards 0.4s;
}

.nds-btn-subscribe::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.15) 50%, transparent 70%);
	animation: shimmer 4s infinite;
	pointer-events: none;
}

.nds-btn-subscribe:hover {
	background: transparent;
	color: var(--nv-accent);
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
	border-color: var(--nv-accent);
	animation: glow-pulse 2s infinite;
}

.nds-btn-subscribe:active {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(251, 191, 36, 0.2);
}

.nds-btn-subscribe:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
	animation: none;
}

.nds-subscribe-message {
	display: none;
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 15px;
	font-size: 14px;
	transition: all 0.3s ease;
}

.nds-subscribe-message:not(:empty) {
	display: block;
	animation: messageSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nds-subscribe-message--success {
	background: rgba(34, 197, 94, 0.1);
	color: #22c55e;
	border: 1px solid rgba(34, 197, 94, 0.2);
	box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
}

.nds-subscribe-message--error {
	background: rgba(239, 68, 68, 0.1);
	color: #ef4444;
	border: 1px solid rgba(239, 68, 68, 0.2);
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes inputSlideIn {
	from {
		opacity: 0;
		transform: translateY(15px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes buttonSlideIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes shimmer {
	0% {
		transform: translateX(-100%);
	}
	100% {
		transform: translateX(100%);
	}
}

@keyframes messageSlideIn {
	from {
		opacity: 0;
		transform: translateY(-15px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes glow-pulse {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.4);
	}
	50% {
		box-shadow: 0 0 0 8px rgba(251, 191, 36, 0);
	}
}

/* Light Mode Improvements */
:root.light .nds-input {
	background: rgba(217, 119, 6, 0.04);
	border-color: rgba(217, 119, 6, 0.2);
	color: #171717;
}

:root.light .nds-input::placeholder {
	color: #a3a3a3;
	opacity: 0.8;
}

:root.light .nds-input:hover {
	background: rgba(217, 119, 6, 0.08);
	border-color: rgba(217, 119, 6, 0.4);
	box-shadow: none;
}

:root.light .nds-input:focus {
	background: rgba(217, 119, 6, 0.12);
	border-color: #d97706;
	box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1), 0 4px 16px rgba(217, 119, 6, 0.2);
}

:root.light .nds-input:focus::placeholder {
	opacity: 0.5;
}

:root.light .nds-btn-subscribe {
	background: #d97706;
	border-color: #d97706;
	color: #fff;
	box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
}

:root.light .nds-btn-subscribe:hover {
	background: #fff;
	color: #d97706;
	border-color: #d97706;
	box-shadow: 0 8px 24px rgba(217, 119, 6, 0.25);
}

:root.light .nds-btn-subscribe::before {
	background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
}

:root.light .nds-subscribe-message--success {
	background: rgba(34, 197, 94, 0.08);
	color: #16a34a;
	border-color: rgba(34, 197, 94, 0.3);
}

:root.light .nds-subscribe-message--error {
	background: rgba(239, 68, 68, 0.08);
	color: #dc2626;
	border-color: rgba(239, 68, 68, 0.3);
}

@media (max-width: 768px) {
	.nds-input {
		padding: 10px 12px;
		font-size: 16px;
	}

	.nds-btn-subscribe {
		padding: 10px 16px;
		font-size: 12px;
	}
}
