/* ==========================================================================
   Lahore View City — "Register Your Interest" Inquiry Popup
   Scoped entirely under .lvcip- to avoid any conflict with theme/Elementor CSS.
   ========================================================================== */

.lvcip-overlay {
	/* Brand tokens (scoped, not global) */
	--lvcip-navy: #0B2036;
	--lvcip-navy-deep: #081627;
	--lvcip-gold: #C6A662;
	--lvcip-gold-deep: #a2854f;
	--lvcip-gold-light: #E7D3A1;
	--lvcip-bg: #F7F7F5;
	--lvcip-white: #FFFFFF;
	--lvcip-text: #172B3A;
	--lvcip-text-soft: #5b6b78;
	--lvcip-border: #E3E0D6;
	--lvcip-error: #B3261E;
	--lvcip-success: #1F6D46;
	--lvcip-radius: 10px;
	--lvcip-serif: 'Cormorant Garamond', Georgia, serif;
	--lvcip-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(8, 22, 39, 0.72);
	backdrop-filter: blur(3px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.28s ease, visibility 0.28s ease;
	font-family: var(--lvcip-sans);
	box-sizing: border-box;
}

.lvcip-overlay * {
	box-sizing: border-box;
}

.lvcip-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

body.lvcip-lock {
	overflow: hidden;
}

/* ---------- Modal shell ---------- */

.lvcip-modal {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: min(720px, 92vh);
	background: var(--lvcip-white);
	border-radius: var(--lvcip-radius);
	border-top: 3px solid var(--lvcip-gold);
	box-shadow: 0 24px 60px rgba(8, 22, 39, 0.35);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform: translateY(16px) scale(0.98);
	opacity: 0;
	transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
}

.lvcip-overlay.is-open .lvcip-modal {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.lvcip-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 50%;
	color: var(--lvcip-white);
	cursor: pointer;
	z-index: 2;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.lvcip-close:hover,
.lvcip-close:focus-visible {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.5);
}

.lvcip-close svg {
	width: 16px;
	height: 16px;
}

/* ---------- Header ---------- */

.lvcip-header {
	flex: 0 0 auto;
	background: var(--lvcip-navy);
	background-image: linear-gradient(155deg, var(--lvcip-navy) 0%, var(--lvcip-navy-deep) 100%);
	padding: 30px 32px 24px;
	text-align: left;
}

.lvcip-eyebrow {
	display: inline-block;
	font-family: var(--lvcip-sans);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--lvcip-gold-light);
	margin-bottom: 10px;
}

.lvcip-title {
	font-family: var(--lvcip-serif);
	font-weight: 600;
	font-size: 30px;
	line-height: 1.15;
	color: var(--lvcip-white);
	margin: 0 0 8px;
}

.lvcip-subtitle {
	font-family: var(--lvcip-sans);
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.75);
	margin: 0;
	max-width: 92%;
}

/* ---------- Body / form ---------- */

.lvcip-body {
	flex: 1 1 auto;
	overflow-y: auto;
	background: var(--lvcip-bg);
	padding: 26px 32px 28px;
}

.lvcip-body::-webkit-scrollbar {
	width: 6px;
}

.lvcip-body::-webkit-scrollbar-thumb {
	background: var(--lvcip-border);
	border-radius: 6px;
}

.lvcip-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.lvcip-form[hidden],
.lvcip-success[hidden] {
	display: none !important;
}

.lvcip-hp {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.lvcip-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lvcip-field label {
	font-family: var(--lvcip-sans);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.3px;
	color: var(--lvcip-navy);
}

.lvcip-req {
	color: var(--lvcip-gold-deep);
}

.lvcip-field input[type="text"],
.lvcip-field input[type="tel"],
.lvcip-field input[type="email"],
.lvcip-field select,
.lvcip-field textarea {
	width: 100%;
	font-family: var(--lvcip-sans);
	font-size: 14.5px;
	color: var(--lvcip-text);
	background: var(--lvcip-white);
	border: 1px solid var(--lvcip-border);
	border-radius: 8px;
	padding: 12px 14px;
	outline: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	appearance: none;
	-webkit-appearance: none;
}

.lvcip-field textarea {
	resize: vertical;
	min-height: 84px;
	line-height: 1.5;
}

.lvcip-field select {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b78' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	padding-right: 36px;
}

.lvcip-field input::placeholder,
.lvcip-field textarea::placeholder {
	color: #98a3ac;
}

.lvcip-field input:focus,
.lvcip-field select:focus,
.lvcip-field textarea:focus {
	border-color: var(--lvcip-gold);
	box-shadow: 0 0 0 3px rgba(198, 166, 98, 0.18);
}

.lvcip-field.has-error input,
.lvcip-field.has-error select,
.lvcip-field.has-error textarea {
	border-color: var(--lvcip-error);
}

.lvcip-error {
	display: none;
	font-size: 12px;
	color: var(--lvcip-error);
	line-height: 1.4;
}

.lvcip-field.has-error .lvcip-error {
	display: block;
}

/* ---------- Dynamic property-detail fields ---------- */

.lvcip-dynamic {
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transform: translateY(-6px);
	margin: 0;
	padding: 0;
	pointer-events: none;
	transition: max-height 0.32s ease, opacity 0.24s ease, transform 0.28s ease, margin 0.32s ease;
}

.lvcip-dynamic.is-visible {
	max-height: 120px;
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

/* ---------- Consent ---------- */

.lvcip-field--consent {
	border-top: 1px solid var(--lvcip-border);
	padding-top: 14px;
	margin-top: 2px;
}

.lvcip-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.lvcip-consent input[type="checkbox"] {
	margin-top: 3px;
	width: 17px;
	height: 17px;
	accent-color: var(--lvcip-navy);
	flex-shrink: 0;
	cursor: pointer;
}

.lvcip-consent span {
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--lvcip-text-soft);
}

/* ---------- Footer / submit ---------- */

.lvcip-footer {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 4px;
}

.lvcip-submit-error {
	display: none;
	font-size: 12.5px;
	color: var(--lvcip-error);
	text-align: center;
}

.lvcip-submit-error.is-visible {
	display: block;
}

.lvcip-submit {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	font-family: var(--lvcip-sans);
	font-size: 14.5px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--lvcip-navy);
	background: var(--lvcip-gold);
	border: none;
	border-radius: 8px;
	padding: 15px 20px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
}

.lvcip-submit:hover:not(:disabled) {
	background: var(--lvcip-gold-deep);
	color: var(--lvcip-white);
}

.lvcip-submit:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.lvcip-submit .lvcip-spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(11, 32, 54, 0.35);
	border-top-color: var(--lvcip-navy);
	border-radius: 50%;
}

.lvcip-submit.is-loading .lvcip-submit-text {
	opacity: 0.7;
}

.lvcip-submit.is-loading .lvcip-spinner {
	display: inline-block;
	animation: lvcip-spin 0.7s linear infinite;
}

@keyframes lvcip-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------- Success state ---------- */

.lvcip-success {
	text-align: center;
	padding: 30px 10px 10px;
}

.lvcip-success-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(31, 109, 70, 0.1);
	border-radius: 50%;
	color: var(--lvcip-success);
}

.lvcip-success-icon svg {
	width: 26px;
	height: 26px;
}

.lvcip-success h3 {
	font-family: var(--lvcip-serif);
	font-size: 24px;
	font-weight: 600;
	color: var(--lvcip-navy);
	margin: 0 0 8px;
}

.lvcip-success p {
	font-size: 14px;
	color: var(--lvcip-text-soft);
	margin: 0 0 22px;
}

.lvcip-success-close {
	font-family: var(--lvcip-sans);
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: var(--lvcip-navy);
	background: transparent;
	border: 1.5px solid var(--lvcip-navy);
	border-radius: 8px;
	padding: 11px 26px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.lvcip-success-close:hover {
	background: var(--lvcip-navy);
	color: var(--lvcip-white);
}

/* ---------- Trigger button (shortcode / floating sidebar hook) ---------- */

.lvcip-trigger-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: var(--lvcip-sans, 'Manrope', sans-serif);
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: #0B2036;
	background: #C6A662;
	border: none;
	border-radius: 8px;
	padding: 13px 26px;
	cursor: pointer;
	text-decoration: none !important;
	transition: background 0.2s ease;
}

.lvcip-trigger-btn:hover {
	background: #a2854f;
	color: #fff;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
	.lvcip-overlay {
		padding: 0;
		align-items: flex-end;
	}

	.lvcip-modal {
		max-width: 100%;
		max-height: 94vh;
		width: 100%;
		border-radius: 16px 16px 0 0;
	}

	.lvcip-header {
		padding: 24px 22px 20px;
	}

	.lvcip-title {
		font-size: 25px;
	}

	.lvcip-body {
		padding: 20px 22px 24px;
	}
}

@media (max-width: 380px) {
	.lvcip-title {
		font-size: 22px;
	}
}
