/* ================================================================
   PegasusLends Lead Capture – Modal Styles
   ================================================================ */

/* ── Overlay ──────────────────────────────────────────────────── */
.plc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999999;
	align-items: center;
	justify-content: center;
}

/* ── Modal box ────────────────────────────────────────────────── */
.plc-modal {
	background: #fff;
	border-radius: 8px;
	max-width: 760px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	padding: 40px 36px 36px;
	box-sizing: border-box;
}

/* ── Close button ─────────────────────────────────────────────── */
.plc-close {
	position: absolute;
	top: 14px;
	right: 18px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #555;
	padding: 0;
	z-index: 1;
}

.plc-close:hover {
	color: #000;
}

/* ── Heading ──────────────────────────────────────────────────── */
.plc-modal-heading {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
}

.plc-modal-sub {
	margin: 0 0 28px;
	font-size: 14px;
	color: #64748b;
}

/* ── 2-column form grid ───────────────────────────────────────── */
.plc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 36px 56px;
	margin-bottom: 28px;
}

/* ── Individual field wrapper ─────────────────────────────────── */
.plc-field {
	border: 1px solid #a7bcc8;
	height: 56px;
	padding: 12px 18px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: #fff;
	box-sizing: border-box;
}

.plc-field input,
.plc-field textarea {
	border: 0;
	outline: none;
	font-size: 15px;
	width: 100%;
	background: transparent;
	color: #0f172a;
	font-family: inherit;
	border-radius: 0px !important;
}

.plc-field input{
	border: 0 !important;
	border-bottom: 1px solid #666 !important;
}

.plc-field input::placeholder,
.plc-field textarea::placeholder {
	color: #94a3b8;
}

/* ── Full-width textarea field ────────────────────────────────── */
.plc-field-full {
	height: auto;
	margin-bottom: 4px;
}

.plc-field-full textarea {
	resize: vertical;
	min-height: 100px;
	padding: 0;
}

/* ── Error message ────────────────────────────────────────────── */
.plc-error {
	color: #dc2626;
	font-size: 14px;
	margin: 12px 0 0;
}

/* ── Submit row ───────────────────────────────────────────────── */
.plc-footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 28px;
}

.plc-submit-btn {
	width: 370px;
	height: 54px;
	border: 0 !important;
	border-radius: 8px;
	background: var(--e-global-color-secondary, #2d88ac);
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	text-transform: lowercase;
	transition: opacity 0.2s;
}

.plc-submit-btn:hover {
	opacity: 0.88;
	background: #a28363 !important;
	border: 0 !important;
}

[type="button"]:focus, [type="button"]:hover, [type="submit"]:focus, [type="submit"]:hover, button:focus, button:hover{
    background: #a28363 !important;
	border: 0 !important;
}

.plc-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ── Thank-you screen ─────────────────────────────────────────── */
.plc-thankyou {
	text-align: center;
	padding: 24px 0;
}

.plc-check {
	font-size: 52px;
	line-height: 1;
	margin-bottom: 16px;
	color: #22c55e;
}

.plc-thankyou h2 {
	margin: 0 0 12px;
	font-size: 24px;
	font-weight: 700;
	color: #0f172a;
}

.plc-thankyou p {
	margin: 0 0 8px;
	font-size: 16px;
	color: #475569;
}

.plc-thankyou-sub {
	font-size: 14px;
	color: #94a3b8;
}

/* ── Prevent body scroll when modal is open ───────────────────── */
body.plc-modal-open {
	overflow: hidden;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {
	.plc-modal {
		width: calc(100% - 30px);
		margin: 15px;
		padding: 28px 20px 24px;
	}

	.plc-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.plc-submit-btn {
		width: 100%;
	}
}
