/* Public styles for Newsletter E-book Downloader */

.ne-ebook-container {
	margin: 40px auto;
	max-width: 600px;
	background: #ffffff;
	border-radius: 28px;
	box-shadow: 0 15px 45px rgba(0, 0, 0, 0.04);
	border: 1px solid rgba(0, 0, 0, 0.02);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #2d3748;
	box-sizing: border-box;
}

.ne-ebook-container * {
	box-sizing: border-box;
}

/* Content side - Full width minimalist card */
.ne-ebook-content-side {
	padding: 50px 60px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

@media (max-width: 580px) {
	.ne-ebook-content-side {
		padding: 40px 30px;
	}
}

/* Form Styles */
.ne-ebook-form {
	display: flex;
	flex-direction: column;
}

.ne-form-group {
	margin-bottom: 35px;
	text-align: left;
}

.ne-form-group label {
	display: block;
	font-size: 18px;
	color: #4e4b47;
	font-weight: 500;
	margin-bottom: 8px;
}

.ne-form-input {
	width: 100% !important;
	box-sizing: border-box;
	padding: 10px 0 !important;
	border-top: none !important;
	border-left: none !important;
	border-right: none !important;
	border-bottom: 1.5px solid #e3dac9 !important; /* sand line color from screenshot */
	background: transparent !important;
	border-radius: 0 !important;
	font-size: 18px !important;
	color: #2d3748 !important;
	outline: none !important;
	transition: border-color 0.3s ease !important;
	box-shadow: none !important;
	height: auto !important;
}

.ne-form-input:focus {
	border-bottom-color: #8a1e25 !important; /* sand line active state */
}

/* Submit button base styling */
.ne-form-submit {
	position: relative;
	width: 100% !important;
	box-sizing: border-box;
	font-size: 16px !important;
	font-weight: 700 !important;
	padding: 16px 24px !important;
	border: none !important;
	cursor: pointer !important;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: auto !important;
	outline: none !important;
	margin-top: 10px;
	margin-bottom: 5px;
}

.ne-form-submit:active:not(:disabled) {
	transform: translateY(1px) !important;
}

.ne-form-submit:disabled {
	opacity: 0.65 !important;
	cursor: not-allowed !important;
}

/* Marketing Consent below button */
.ne-form-consent {
	margin-top: 25px;
	display: flex;
	justify-content: center;
	text-align: left;
}

.ne-consent-label {
	display: flex !important;
	align-items: flex-start !important;
	cursor: pointer;
	font-size: 13px;
	color: #7b7774;
	line-height: 1.5;
	max-width: 480px;
}

.ne-consent-checkbox {
	margin-top: 3px !important;
	margin-right: 8px !important;
	flex-shrink: 0;
	cursor: pointer;
}

.ne-consent-text {
	user-select: none;
}

/* Loader Animation */
.ne-btn-spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: #ffffff;
	animation: ne-spin 0.8s linear infinite;
	margin-right: 10px;
}

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

/* Feedback messages */
.ne-form-message {
	display: none;
	font-size: 14px;
	margin-top: 15px;
	font-weight: 600;
	text-align: center;
}

.ne-form-message.ne-error {
	color: #b32d2e;
	display: block;
	animation: ne-shake 0.4s ease;
}

@keyframes ne-shake {
	0%, 100% { transform: translateX(0); }
	20%, 60% { transform: translateX(-6px); }
	40%, 80% { transform: translateX(6px); }
}

/* Success screen */
.ne-success-screen {
	display: none;
	text-align: center;
	animation: ne-fade-in 0.5s ease forwards;
	padding: 20px 0;
}

.ne-success-icon {
	width: 60px;
	height: 60px;
	background: #d1e7dd;
	color: #0f5132;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	margin-bottom: 20px;
	box-shadow: 0 4px 12px rgba(15, 81, 50, 0.08);
}

.ne-success-text {
	font-size: 16px;
	line-height: 1.6;
	color: #2d3748;
	margin-bottom: 24px;
}

.ne-download-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: #10b981 !important;
	color: #ffffff !important;
	padding: 14px 28px !important;
	border-radius: 30px !important;
	text-decoration: none !important;
	font-weight: 700 !important;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
	transition: all 0.25s ease !important;
}

.ne-download-btn:hover {
	background: #059669 !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3) !important;
}

.ne-download-btn span {
	margin-right: 8px;
}

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