/* ==========================================================================
   Quick Lead Capture Modal CSS — Launch Kraft Solutions (Light Blue Theme)
   ========================================================================== */

.lk-lead-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.lk-lead-modal.is-open {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

/* Backdrop Overlay */
.lk-lead-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.4);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 1;
}

/* Container Window */
.lk-lead-modal__container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 660px;
	max-height: 95vh;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 24px;
	box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.1), 0 0 30px rgba(0, 0, 0, 0.03) inset;
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: scale(0.94) translateY(20px);
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	box-sizing: border-box;
    /* Hide scrollbar for cleaner UI */
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

.lk-lead-modal__container::-webkit-scrollbar {
    display: none;
}

.lk-lead-modal.is-open .lk-lead-modal__container {
	transform: scale(1) translateY(0);
}

/* Close Button */
.lk-lead-modal__close {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 50%;
	color: #64748b;
	cursor: pointer;
	transition: all 0.25s ease;
}

.lk-lead-modal__close:hover,
.lk-lead-modal__close:focus-visible {
	background: #2a57e6;
	border-color: #2a57e6;
	color: #ffffff;
	outline: none;
	transform: rotate(90deg);
}

/* Content Layout */
.lk-lead-modal__content {
	padding: 40px 36px;
}

/* Header */
.lk-lead-modal__header {
	margin-bottom: 28px;
	text-align: left;
}

.lk-lead-modal__kicker {
	display: inline-block;
	padding: 4px 12px;
	background: rgba(42, 87, 230, 0.08);
	border: 1px solid rgba(42, 87, 230, 0.2);
	border-radius: 20px;
	color: #2a57e6;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.lk-lead-modal__header h2 {
	margin: 0 0 8px 0;
	color: #111214;
	font-family: 'Instrument Sans', sans-serif;
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.2;
}

.lk-lead-modal__header h2 span {
	color: #2a57e6;
}

.lk-lead-modal__header p {
	margin: 0;
	color: #64748b;
	font-size: 0.88rem;
	line-height: 1.5;
}

/* Form Grid */
.lk-lead-modal__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-bottom: 20px;
}

.lk-lead-modal__field {
	display: flex;
	flex-direction: column;
}

.lk-lead-modal__field--full {
	grid-column: span 2;
}

.lk-lead-modal__field label {
	display: block;
	margin-bottom: 6px;
	color: #334155;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	text-align: left;
}

.lk-required {
	color: #f43f5e;
}

.lk-optional {
	color: #94a3b8;
	font-weight: 400;
	font-size: 0.75rem;
}

/* Input & Select Wrappers */
.lk-input-wrapper,
.lk-select-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.lk-input-wrapper input,
.lk-select-wrapper select,
.lk-lead-modal__field textarea {
	width: 100%;
	padding: 12px 14px;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	color: #0f172a;
	font-family: 'Instrument Sans', sans-serif;
	font-size: 0.88rem;
	transition: all 0.25s ease;
	box-sizing: border-box;
}

.lk-input-wrapper input {
	padding-right: 40px;
}

.lk-input-wrapper svg {
	position: absolute;
	right: 12px;
	width: 18px;
	height: 18px;
	color: #94a3b8;
	pointer-events: none;
	transition: color 0.25s ease;
}

.lk-input-wrapper input:focus + svg {
	color: #2a57e6;
}

.lk-input-wrapper input:focus,
.lk-select-wrapper select:focus,
.lk-lead-modal__field textarea:focus {
	border-color: #2a57e6;
	box-shadow: 0 0 0 3px rgba(42, 87, 230, 0.1);
	background: #ffffff;
	outline: none;
}

.lk-select-wrapper select {
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 40px;
}

.lk-select-wrapper select option {
	background: #ffffff;
	color: #0f172a;
}

.lk-lead-modal__field textarea {
	resize: vertical;
	min-height: 90px;
}

/* Consent Checkbox */
.lk-lead-modal__consent {
	margin-bottom: 20px;
	text-align: left;
}

.lk-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.lk-checkbox-label input[type="checkbox"] {
	margin-top: 3px;
	accent-color: #2a57e6;
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.lk-checkbox-label span {
	color: #475569;
	font-size: 0.78rem;
	line-height: 1.4;
}

.lk-checkbox-label a {
	color: #2a57e6;
	text-decoration: underline;
}

/* Status & Error Alerts */
.lk-lead-modal__status {
	display: none;
	padding: 10px 14px;
	border-radius: 10px;
	font-size: 0.82rem;
	margin-bottom: 16px;
	text-align: left;
}

.lk-lead-modal__status.is-error {
	display: block;
	background: rgba(244, 63, 94, 0.12);
	border: 1px solid rgba(244, 63, 94, 0.3);
	color: #fb7185;
}

.lk-lead-modal__status.success {
	display: block;
	background: rgba(34, 197, 94, 0.12);
	border: 1px solid rgba(34, 197, 94, 0.3);
	color: #16a34a;
}

/* Actions Footer */
.lk-lead-modal__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.lk-lead-modal__submit {
	width: 100%;
	padding: 14px 24px;
	background: linear-gradient(135deg, #2a57e6 0%, #1c45c2 100%);
	border: none;
	border-radius: 14px;
	color: #ffffff;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 10px 25px rgba(42, 87, 230, 0.25);
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.lk-lead-modal__submit:hover,
.lk-lead-modal__submit:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 15px 35px rgba(42, 87, 230, 0.35);
	outline: none;
}

.lk-lead-modal__submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.lk-lead-modal__submit svg {
	width: 18px;
	height: 18px;
	transition: transform 0.25s ease;
}

.lk-lead-modal__submit:hover svg {
	transform: translateX(4px);
}

.lk-submit-spinner {
	display: none;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: lkSpin 0.8s linear infinite;
}

.lk-lead-modal__submit.is-loading .lk-submit-text {
	display: none;
}

.lk-lead-modal__submit.is-loading .lk-submit-spinner {
	display: block;
}

@keyframes lkSpin {
	to { transform: rotate(360deg); }
}

.lk-lead-modal__privacy-note {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #64748b;
	font-size: 0.75rem;
}

.lk-lead-modal__privacy-note svg {
	width: 14px;
	height: 14px;
	color: #22c55e;
}

/* Success View */
.lk-lead-modal__success {
	text-align: center;
	padding: 20px 10px;
}

.lk-success-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	background: rgba(34, 197, 94, 0.1);
	border: 1px solid rgba(34, 197, 94, 0.3);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #22c55e;
	box-shadow: 0 0 25px rgba(34, 197, 94, 0.15);
}

.lk-lead-modal__success h3 {
	color: #111214;
	font-family: 'Instrument Sans', sans-serif;
	font-size: 1.5rem;
	font-weight: 800;
	margin: 0 0 10px 0;
}

.lk-lead-modal__success p {
	color: #475569;
	font-size: 0.9rem;
	line-height: 1.5;
	max-width: 440px;
	margin: 0 auto 24px;
}

.lk-lead-modal__continue {
	padding: 12px 28px;
	background: #f1f5f9;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	color: #334155;
	font-family: 'Space Grotesk', sans-serif;
	font-size: 0.88rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.25s ease;
}

.lk-lead-modal__continue:hover {
	background: #f8fafc;
	border-color: #94a3b8;
	color: #0f172a;
}

/* Responsive Breakpoints */
@media (max-width: 640px) {
	.lk-lead-modal__content {
		padding: 28px 20px;
	}
	.lk-lead-modal__grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.lk-lead-modal__field--full {
		grid-column: span 1;
	}
	.lk-lead-modal__container {
		max-height: 95vh;
		border-radius: 20px;
	}
}
