/* =============================================================
   Aarunesh Book Free Demo — Lead Form
   Lightweight, dependency-free styles (~4KB). Mobile-first.
   Uses CSS variables so you can rebrand in one place.
   ============================================================= */

.alt-df {
	--alt-primary: #ff5722;          /* CTA / accent — change to your brand */
	--alt-primary-dark: #e64a19;
	--alt-text: #1f2937;
	--alt-muted: #6b7280;
	--alt-border: #d1d5db;
	--alt-bg: #ffffff;
	--alt-radius: 12px;
	max-width: 440px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--alt-text);
	box-sizing: border-box;
}
.alt-df *,
.alt-df *::before,
.alt-df *::after { box-sizing: border-box; }

.alt-df--card .alt-df-form {
	background: var(--alt-bg);
	border: 1px solid #eee;
	border-radius: var(--alt-radius);
	padding: 22px 20px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.alt-df-title {
	margin: 0 0 4px;
	font-size: 20px;
	line-height: 1.25;
	font-weight: 700;
}
.alt-df-subtitle {
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--alt-muted);
}

.alt-df-field { margin-bottom: 12px; }
.alt-df-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 5px;
}
.alt-df-req { color: var(--alt-primary); margin-left: 2px; }
.alt-df-optional { color: var(--alt-muted); font-weight: 400; }

.alt-df-field input,
.alt-df-field select {
	width: 100%;
	padding: 11px 12px;
	font-size: 15px;
	border: 1px solid var(--alt-border);
	border-radius: 8px;
	background: #fff;
	color: var(--alt-text);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.alt-df-field input:focus,
.alt-df-field select:focus {
	outline: none;
	border-color: var(--alt-primary);
	box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.15);
}
.alt-df-field input.alt-df-error,
.alt-df-field select.alt-df-error {
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.alt-df-btn {
	width: 100%;
	padding: 13px 16px;
	margin-top: 6px;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	background: var(--alt-primary);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s ease, transform .05s ease;
}
.alt-df-btn:hover { background: var(--alt-primary-dark); }
.alt-df-btn:active { transform: translateY(1px); }
.alt-df-btn:disabled { opacity: .7; cursor: not-allowed; }

.alt-df-msg {
	margin: 10px 0 0;
	font-size: 14px;
	min-height: 1em;
}
.alt-df-msg.alt-df-msg-error { color: #dc2626; }
.alt-df-msg.alt-df-msg-success { color: #16a34a; font-weight: 600; }

.alt-df-trust {
	margin: 8px 0 0;
	font-size: 12px;
	color: var(--alt-muted);
	text-align: center;
}

/* Honeypot — visually hidden but present in DOM for bots. */
.alt-df-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	height: 0;
	width: 0;
	overflow: hidden;
}

/* Compact variant (used in sticky bar / tight columns). */
.alt-df--compact { max-width: 100%; }
.alt-df--compact .alt-df-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: flex-end;
	background: transparent;
	box-shadow: none;
	border: none;
	padding: 0;
}
.alt-df--compact .alt-df-field { margin-bottom: 0; flex: 1 1 150px; }
.alt-df--compact .alt-df-field label { display: none; }
.alt-df--compact .alt-df-btn { width: auto; margin-top: 0; flex: 0 0 auto; }
.alt-df--compact .alt-df-trust { flex: 1 1 100%; text-align: left; }
.alt-df--compact .alt-df-msg { flex: 1 1 100%; }

/* Sticky bottom bar. */
.alt-df-sticky {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 99990;
	background: #111827;
	color: #fff;
	padding: 12px 16px;
	box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
}
.alt-df-sticky-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}
.alt-df-sticky-text { font-weight: 700; font-size: 15px; white-space: nowrap; }
.alt-df-sticky .alt-df { max-width: 100%; flex: 1 1 320px; }
.alt-df-sticky .alt-df-field input,
.alt-df-sticky .alt-df-field select { padding: 9px 10px; font-size: 14px; }
.alt-df-sticky .alt-df-trust { color: #cbd5e1; }
.alt-df-sticky-close {
	position: absolute;
	top: 6px; right: 10px;
	background: none; border: none;
	color: #fff; font-size: 22px;
	cursor: pointer; line-height: 1;
}

@media (max-width: 640px) {
	.alt-df--compact .alt-df-form { flex-direction: column; align-items: stretch; }
	.alt-df--compact .alt-df-btn { width: 100%; }
	.alt-df-sticky-text { white-space: normal; font-size: 14px; }
}
