/* ===== Tenant Planet Popup ===== */
:root {
	--tpp-card-bg: #173b40;
	--tpp-input-bg: rgba(255, 255, 255, 0.07);
	--tpp-input-border: rgba(255, 255, 255, 0.28);
	--tpp-text: #ffffff;
	--tpp-placeholder: rgba(255, 255, 255, 0.55);
	--tpp-accent: #f6b27e;
	--tpp-accent-text: #173b40;
	--tpp-radius: 10px;
}

/* Trigger button (shortcode / Elementor / custom) */
.tpp-trigger-btn {
	display: inline-block;
	background: var(--tpp-accent);
	color: var(--tpp-accent-text);
	border: none;
	border-radius: var(--tpp-radius);
	padding: 14px 28px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: transform .12s ease, filter .12s ease;
}
.tpp-trigger-btn:hover { filter: brightness(1.04); transform: translateY(-1px); }

/* Overlay */
.tpp-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 999999;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}
.tpp-overlay.tpp-open { display: flex; }

/* Modal card */
.tpp-modal {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 92vh;
	overflow-y: auto;
	background: var(--tpp-card-bg);
	color: var(--tpp-text);
	border-radius: 22px;
	padding: 38px 40px 42px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	box-sizing: border-box;
	animation: tpp-pop .22s ease;
}
@keyframes tpp-pop {
	from { opacity: 0; transform: translateY(10px) scale(.98); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}

.tpp-close {
	position: absolute;
	top: 14px;
	right: 18px;
	background: none;
	border: none;
	color: var(--tpp-text);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	opacity: .7;
}
.tpp-close:hover { opacity: 1; }

.tpp-title {
	text-align: center;
	font-size: 24px;
	font-weight: 800;
	margin: 0 0 6px;
	color: var(--tpp-text);
}
.tpp-sub {
	text-align: center;
	margin: 0 0 26px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 15px;
}

/* Step 1 choice buttons */
.tpp-choice-buttons {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-top: 18px;
}

.tpp-btn {
	display: inline-block;
	width: 100%;
	text-align: center;
	border: none;
	border-radius: var(--tpp-radius);
	padding: 15px 24px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	box-sizing: border-box;
	transition: transform .12s ease, filter .12s ease;
}
.tpp-btn:hover { transform: translateY(-1px); }
.tpp-btn-primary {
	background: var(--tpp-accent);
	color: var(--tpp-accent-text);
}
.tpp-btn-primary:hover { filter: brightness(1.04); }
.tpp-btn-ghost {
	background: transparent;
	color: var(--tpp-text);
	border: 1.5px solid var(--tpp-input-border);
}
.tpp-btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

/* Form */
.tpp-form { display: block; }
.tpp-label {
	display: block;
	font-weight: 700;
	font-size: 16px;
	margin: 16px 0 8px;
	color: var(--tpp-text);
}
.tpp-form .tpp-label:first-child { margin-top: 0; }

.tpp-input {
	width: 100%;
	background: var(--tpp-input-bg);
	border: 1.5px solid var(--tpp-input-border);
	border-radius: var(--tpp-radius);
	color: var(--tpp-text);
	padding: 14px 16px;
	font-size: 16px;
	box-sizing: border-box;
	outline: none;
	transition: border-color .12s ease, background .12s ease;
}
.tpp-input::placeholder { color: var(--tpp-placeholder); }
.tpp-input:focus {
	border-color: var(--tpp-accent);
	background: rgba(255, 255, 255, 0.12);
}
.tpp-input.tpp-error { border-color: #ff8585; }

.tpp-submit {
	width: auto;
	min-width: 220px;
	display: block;
	margin: 26px auto 0;
}

.tpp-back {
	display: block;
	margin: 14px auto 0;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
	cursor: pointer;
}
.tpp-back:hover { color: #fff; }

.tpp-form-msg {
	display: none;
	margin-top: 16px;
	padding: 10px 14px;
	border-radius: 8px;
	font-size: 14px;
	text-align: center;
}
.tpp-form-msg.tpp-show-error {
	display: block;
	background: rgba(255, 90, 90, 0.15);
	color: #ffcaca;
}

/* Success */
.tpp-step-success { text-align: center; }
.tpp-check {
	width: 64px;
	height: 64px;
	margin: 6px auto 18px;
	border-radius: 50%;
	background: var(--tpp-accent);
	color: var(--tpp-accent-text);
	font-size: 34px;
	line-height: 64px;
	font-weight: 700;
}
.tpp-step-success .tpp-btn { max-width: 220px; margin: 22px auto 0; }

/* loading state */
.tpp-submit.tpp-loading {
	opacity: .7;
	pointer-events: none;
}

@media (max-width: 540px) {
	.tpp-modal { padding: 30px 22px 34px; border-radius: 18px; }
	.tpp-title { font-size: 21px; }
}
