.aph-tv-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.aph-tv-modal.is-open {
	display: flex;
}

.aph-tv-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(26, 26, 26, 0.55);
}

.aph-tv-modal__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 480px);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	background: #fff;
	border: 1px solid #ece8e1;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
	padding: 32px 28px 28px;
	color: #1a1a1a;
}

/* ── Step visibility ─────────────────────────────────────── */
.aph-tv-modal__step[hidden] { display: none; }

/* ── Back button ─────────────────────────────────────────── */
.aph-tv-modal__step-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 14px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #6f6a63;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
}
.aph-tv-modal__step-back:hover { color: #1a1a1a; }

/* ── Typography ──────────────────────────────────────────── */
.aph-tv-modal__eyebrow {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6f6a63;
}

.aph-tv-modal__title {
	margin: 0 0 10px;
	font-size: 24px;
	line-height: 1.2;
	font-weight: 700;
	color: #1a1a1a;
}

.aph-tv-modal__title--form {
	font-size: 20px;
}

.aph-tv-modal__desc {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.65;
	color: #6f6a63;
}

/* ── Actions ─────────────────────────────────────────────── */
.aph-tv-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.aph-tv-modal__actions--stack {
	flex-direction: column;
	align-items: stretch;
}

.aph-tv-modal__actions--stack .aph-tv-modal__btn {
	width: 100%;
}

/* ── Buttons ─────────────────────────────────────────────── */
.aph-tv-modal__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 120px;
	padding: 11px 18px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	border: 1px solid transparent;
	box-shadow: none !important;
	background-image: none !important;
	-webkit-appearance: none;
	appearance: none;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.aph-tv-modal__btn--primary {
	background: #1a1a1a !important;
	color: #fff !important;
	border-color: #1a1a1a !important;
}

.aph-tv-modal__btn--primary:hover,
.aph-tv-modal__btn--primary:focus-visible {
	background: #000 !important;
	color: #fff !important;
	border-color: #000 !important;
}

.aph-tv-modal__btn--preview {
	background: #fff !important;
	color: #1a1a1a !important;
	border-color: #1a1a1a !important;
}

.aph-tv-modal__btn--preview:hover,
.aph-tv-modal__btn--preview:focus-visible {
	background: #f5f1ea !important;
	color: #1a1a1a !important;
	border-color: #1a1a1a !important;
}

.aph-tv-modal__btn--ghost {
	background: #fff !important;
	color: #1a1a1a !important;
	border-color: #ddd8d0 !important;
}

.aph-tv-modal__btn--ghost:hover,
.aph-tv-modal__btn--ghost:focus-visible {
	background: #f5f1ea !important;
	color: #1a1a1a !important;
	border-color: #ddd8d0 !important;
}

.aph-tv-modal__btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* ── Lead capture form ───────────────────────────────────── */
.aph-lead-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.aph-lead-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

@media (max-width: 480px) {
	.aph-lead-row { grid-template-columns: 1fr; }
}

.aph-lead-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.aph-lead-field label {
	font-size: 12px;
	font-weight: 600;
	color: #1a1a1a;
	letter-spacing: 0.01em;
}

.aph-req {
	color: #c0392b;
}

.aph-lead-field input[type="text"],
.aph-lead-field input[type="email"],
.aph-lead-field input[type="tel"] {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid #ddd8d0;
	border-radius: 6px;
	font-size: 13px;
	color: #1a1a1a;
	background: #fff;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	box-sizing: border-box;
}

.aph-lead-field input:focus {
	border-color: #1a1a1a;
	box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

.aph-lead-field input::placeholder {
	color: #b0a99e;
}

/* ── Checkboxes ──────────────────────────────────────────── */
.aph-lead-checks {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px 12px;
	margin-top: 4px;
}

@media (max-width: 480px) {
	.aph-lead-checks { grid-template-columns: 1fr; }
}

.aph-lead-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
	font-size: 13px;
	color: #1a1a1a;
	padding: 5px 8px;
	border-radius: 5px;
	border: 1px solid transparent;
	transition: background 0.12s, border-color 0.12s;
}

.aph-lead-check:hover {
	background: #f5f1ea;
	border-color: #ddd8d0;
}

.aph-lead-check input[type="checkbox"] {
	margin: 2px 0 0;
	flex-shrink: 0;
	accent-color: #1a1a1a;
	width: 14px;
	height: 14px;
	cursor: pointer;
}

/* ── Error box ───────────────────────────────────────────── */
.aph-lead-error {
	padding: 10px 12px;
	border-radius: 6px;
	background: #fff2f2;
	border: 1px solid #f5c6c6;
	color: #c0392b;
	font-size: 13px;
}

/* ── Submit ──────────────────────────────────────────────── */
.aph-lead-submit {
	margin-top: 4px;
	width: 100%;
	padding: 13px 18px;
}

body.aph-tv-modal-open {
	overflow: hidden;
}
