/* DriveEV Lead Intelligence — Lead Capture Modal v2 */
/* Two-column: LEFT = info panel, RIGHT = form panel */

/* ---- V2 container ---- */
.driveev-modal-v2-container {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
	width: 100%;
	max-width: 860px;
	max-height: calc(100vh - 2rem);
	margin: auto;
	position: relative;
	display: flex;
	overflow: hidden;
	animation: driveev-modal-in 0.22s ease-out;
	padding: 10px 30px 30px 30px;
}

/* ---- Close button ---- */
.driveev-modal-v2-container .driveev-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	color: #6b7280;
	z-index: 10;
	opacity: 0.7;
	transition: opacity 0.15s, color 0.15s;
}

.driveev-modal-v2-container .driveev-modal-close:hover {
	opacity: 1;
	color: #1a1a2e;
}

/* =============================================
   LEFT — Info / Brand panel
   ============================================= */
.driveev-modal-v2-left {
	width: 320px;
	flex-shrink: 0;
	background: #ffffff;
	padding: 44px 36px 44px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Brand label + underline */
.driveev-modal-v2-brand {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: #1a1a2e;
	margin: 0 0 4px;
	padding-bottom: 6px;
	border-bottom: 2px solid #00337a;
	display: inline-block;
	align-self: flex-start;
}

/* Heading — matches theme sc_item_title_text style */
.driveev-modal-v2-heading {
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 32px;
	font-weight: 600;
	color: #424242;
	line-height: 1.2;
	margin: 6px 0 12px;
	letter-spacing: -0.6px;
	text-transform: capitalize;
}

/* Subtitle */
.driveev-modal-v2-subtitle {
	font-family: 'DM Sans', sans-serif;
	font-size: 12px;
	color: #555;
	line-height: 1.55;
	margin: 0 0 8px;
}

/* "No spam. No obligation." */
.driveev-modal-v2-tagline {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #00337a;
	margin: 0 0 28px;
}

/* Feature items */
.driveev-modal-v2-features {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.driveev-modal-v2-feature {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.driveev-modal-v2-feature-icon {
	width: 44px;
	height: 44px;
	background: #e8eaf0;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	color: #4b5563;
}

.driveev-modal-v2-feature-text strong {
	display: block;
	font-family: 'DM Sans', sans-serif;
	font-size: 12px;
	font-weight: 700;
	color: #1a1a2e;
	margin-bottom: 0;
}

.driveev-modal-v2-feature-text p {
	font-family: 'DM Sans', sans-serif;
	font-size: 11px;
	color: #6b7280;
	line-height: 1.5;
	margin: 0;
}

/* =============================================
   RIGHT — Form panel
   ============================================= */
.driveev-modal-v2-right {
	flex: 1;
	min-width: 0;
	background: #ffffff;
	padding: 44px 40px 24px 40px;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	max-height: 100%;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.driveev-modal-v2-right::-webkit-scrollbar {
	display: none;
}

/* ---- Name row (two columns) ---- */
.driveev-v2-name-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 6px;
}

/* ---- Field box (label-inside-border style) ---- */
.driveev-v2-field-box {
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	padding: 5px 10px;
	background: #ffffff;
	transition: border-color 0.2s, box-shadow 0.2s;
	cursor: text;
	margin-bottom: 6px;
}

.driveev-v2-field-box:focus-within {
	border-color: #00337a;
	box-shadow: 0 0 0 3px rgba(0, 51, 122, 0.08);
}

.driveev-v2-field-box[aria-invalid="true"] {
	border-color: #e53e3e;
}

.driveev-v2-field-box label {
	display: block;
	font-family: 'DM Sans', sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #6b7280;
	margin-bottom: 3px;
	pointer-events: none;
	line-height: 1;
}

.driveev-v2-req {
	color: #e53e3e;
	margin-left: 1px;
}

.driveev-v2-opt {
	color: #9ca3af;
	font-weight: 400;
	margin-left: 2px;
}

#driveev-modal-overlay .driveev-v2-field-box input[type="text"],
#driveev-modal-overlay .driveev-v2-field-box input[type="tel"],
#driveev-modal-overlay .driveev-v2-field-box input[type="email"] {
	border: none;
	outline: none;
	box-shadow: none;
	width: 100%;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	color: #1a1a2e;
	background: transparent;
	padding: 0;
	margin: 0;
	line-height: 1.4;
	height: auto;
}

#driveev-modal-overlay .driveev-v2-field-box input::placeholder {
	color: #adb5bd;
}

/* ---- Phone field (flag + code + input, all inside same box) ---- */
.driveev-v2-phone-inner {
	display: flex;
	align-items: center;
	gap: 8px;
}

.driveev-v2-flag-code {
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	color: #1a1a2e;
	font-weight: 500;
	white-space: nowrap;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	gap: 5px;
	user-select: none;
}

.driveev-v2-flag-code .driveev-v2-flag {
	font-size: 17px;
	line-height: 1;
}

#driveev-modal-overlay .driveev-v2-phone-inner input[type="tel"] {
	flex: 1;
	border: none;
	outline: none;
	box-shadow: none;
	background: transparent;
	font-family: 'DM Sans', sans-serif;
	font-size: 14px;
	color: #1a1a2e;
	padding: 0;
	margin: 0;
	min-width: 0;
	height: auto;
}

.driveev-v2-phone-inner input[type="tel"]::placeholder {
	color: #adb5bd;
}

/* ---- Field error messages ---- */
.driveev-v2-field-error {
	display: block;
	font-family: 'DM Sans', sans-serif;
	font-size: 11px;
	color: #e53e3e;
	margin-top: 3px;
	min-height: 0;
}

/* ---- Consent ---- */
.driveev-v2-consent {
	margin-top: 14px;
	margin-bottom: 14px;
}

.driveev-v2-consent-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-family: 'DM Sans', sans-serif;
	font-size: 12.5px;
	font-weight: 400;
	color: #4b5563;
	cursor: pointer;
	line-height: 1.5;
	padding-top: 20px;
	padding-bottom: 20px;
}

.driveev-v2-consent-label input[type="checkbox"] {
	width: 15px;
	height: 15px;
	accent-color: #00337a;
	flex-shrink: 0;
	margin-top: 3px;
	align-self: flex-start;
	cursor: pointer;
}

#driveev-field-consent {
	margin-top: 3px !important;
}

.driveev-v2-consent-label a {
	color: #00337a;
	text-decoration: underline;
	display: inline;
}

/* ---- Turnstile ---- */
.driveev-v2-turnstile {
	margin-bottom: 14px;
}

/* ---- Submit button ---- */
#driveev-modal-overlay .driveev-v2-submit-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 12px 30px;
	background-color: #00337a;
	color: #ffffff;
	border-radius: 4px;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
	margin-top: 4px;
	white-space: normal;
}

#driveev-modal-overlay .driveev-v2-submit-btn:hover:not(:disabled) {
	background-color: #002255;
	color: rgba(255, 255, 255, 0.7);
}

#driveev-modal-overlay .driveev-v2-submit-btn:active:not(:disabled) {
	transform: scale(0.99);
}

#driveev-modal-overlay .driveev-v2-submit-btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* ---- General form error ---- */
.driveev-v2-form-error {
	background: #fff5f5;
	border: 1px solid #fed7d7;
	border-radius: 6px;
	color: #e53e3e;
	font-family: 'DM Sans', sans-serif;
	font-size: 13px;
	padding: 10px 14px;
	margin-bottom: 12px;
}

/* ---- Success state ---- */
.driveev-modal-v2-container--success {
	max-width: 380px;
	max-height: 300px;
	padding: 0;
}
.driveev-modal-v2-success {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	border-radius: inherit;
	overflow: hidden;
	background: #fff;
	z-index: 10;
}
.driveev-modal-v2-success[hidden] { display: none; }
.driveev-modal-v2-success__header {
	background: #00337a;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.03em;
	flex-shrink: 0;
}
.driveev-modal-v2-success__close {
	background: none;
	border: none;
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	line-height: 1;
	padding: 0 2px;
	opacity: 0.8;
}
.driveev-modal-v2-success__close:hover { opacity: 1; }
.driveev-modal-v2-success__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 32px;
	text-align: center;
}
.driveev-modal-v2-success__icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #00337a;
	color: #fff;
	font-size: 32px;
	line-height: 64px;
	text-align: center;
	margin: 0 auto 20px;
}
.driveev-modal-v2-success h3 {
	font-size: 20px;
	font-weight: 800;
	color: #00337a;
	margin: 0 0 10px;
}
.driveev-modal-v2-success p {
	font-size: 14px;
	color: #4a5878;
	margin: 0;
	line-height: 1.5;
}

/* =============================================
   Mobile — stack info on top, form below
   ============================================= */
@media (max-width: 768px) {
	.driveev-modal-v2-container {
		flex-direction: column;
		width: 100%;
		max-width: 100%;
		max-height: 92vh;
		border-radius: 16px 16px 0 0;
		overflow-y: auto;
		overflow-x: hidden;
		padding: 0;
		margin: 0;
		align-self: flex-end;
	}

	.driveev-modal-v2-left {
		width: 100%;
		padding: 24px 20px 16px;
		border-right: none;
		border-bottom: 1px solid #e5e7eb;
		justify-content: flex-start;
	}

	.driveev-modal-v2-heading {
		font-size: 22px;
		margin: 12px 0 8px;
	}

	.driveev-modal-v2-tagline {
		margin-bottom: 16px;
	}

	.driveev-modal-v2-features {
		display: flex;
		flex-direction: row;
		gap: 12px;
	}

	.driveev-modal-v2-feature {
		flex: 1;
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.driveev-modal-v2-feature-icon {
		width: 32px;
		height: 32px;
	}

	.driveev-modal-v2-feature-text strong {
		font-size: 11px;
	}

	.driveev-modal-v2-feature-text p {
		font-size: 10px;
	}

	.driveev-modal-v2-right {
		padding: 20px 16px 32px;
		max-height: unset;
	}

	.driveev-v2-name-row {
		grid-template-columns: 1fr;
	}

	.driveev-v2-turnstile {
		overflow: hidden;
	}
}
