/*
 * Clone Lead modal — opens on Request Demo / Buy Now clicks on clone-app pages.
 * Palette matches the site: navy panel, blue→orange accents (no pink).
 */

.smc-lead-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; }
.smc-lead-modal[hidden] { display: none !important; }

.smc-lead-backdrop { position: absolute; inset: 0; background: rgba(5, 9, 31, 0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: smcFade 0.22s ease-out; }

.smc-lead-panel {
	position: relative; z-index: 2;
	width: 100%; max-width: 1100px; max-height: calc(100vh - 48px);
	overflow-y: auto;
	background: radial-gradient(ellipse at top left, #143C80 0%, #0B2A5C 55%, #0A1230 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 24px;
	box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
	color: #E6EDF8;
	animation: smcSlide 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes smcFade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes smcSlide { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

.smc-lead-x { position: absolute; top: 16px; right: 16px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); color: #C8D3E8; font-size: 20px; line-height: 1; cursor: pointer; transition: all 0.18s; }
.smc-lead-x:hover { background: rgba(239, 45, 60, 0.25); color: #fff; border-color: rgba(239, 45, 60, 0.4); transform: rotate(90deg); }

.smc-lead-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; }
@media (max-width: 820px) { .smc-lead-grid { grid-template-columns: 1fr; } }

/* ---------- LEFT ---------- */
.smc-lead-left { padding: 42px 40px; position: relative; border-right: 1px solid rgba(255, 255, 255, 0.07); }
@media (max-width: 820px) { .smc-lead-left { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.07); padding: 36px 28px 28px; } }

.smc-lead-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; background: linear-gradient(135deg, rgba(255, 159, 67, 0.18), rgba(239, 45, 60, 0.12)); border: 1px solid rgba(255, 159, 67, 0.35); border-radius: 999px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: #FFD7AE; }
.smc-lead-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #FF5E3A; box-shadow: 0 0 12px #FF5E3A; animation: smcPulse 2s ease-in-out infinite; }
@keyframes smcPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.smc-lead-left h2 { color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.02em; margin: 18px 0 14px; }
.smc-lead-grad { background: linear-gradient(135deg, #FF9F43 0%, #FF5E3A 55%, #EF2D3C 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

.smc-lead-sub { color: #9BB0D0; font-size: 14.5px; line-height: 1.55; margin-bottom: 22px; }

.smc-lead-bullets { list-style: none; margin: 0 0 24px; padding: 0; }
.smc-lead-bullets li { position: relative; padding-left: 22px; font-size: 14px; color: #C8D3E8; margin-bottom: 10px; font-weight: 500; }
.smc-lead-bullets li::before { content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #FF5E3A; box-shadow: 0 0 10px rgba(255, 94, 58, 0.5); }

/* NDA opt-in */
.smc-lead-nda { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.smc-lead-nda:hover { border-color: rgba(255, 159, 67, 0.35); background: rgba(255, 159, 67, 0.05); }
.smc-lead-nda input { position: absolute; opacity: 0; pointer-events: none; }
.smc-lead-nda-box { flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; border: 2px solid rgba(255, 255, 255, 0.25); background: rgba(0, 0, 0, 0.2); display: flex; align-items: center; justify-content: center; color: transparent; transition: all 0.18s; }
.smc-lead-nda-box svg { width: 14px; height: 14px; }
.smc-lead-nda input:checked + .smc-lead-nda-box { background: linear-gradient(135deg, #FF9F43, #EF2D3C); border-color: transparent; color: #fff; }
.smc-lead-nda strong { display: block; color: #fff; font-size: 13.5px; margin-bottom: 3px; font-weight: 600; }
.smc-lead-nda span { font-size: 12.5px; color: #8AA0C4; line-height: 1.5; }

/* ---------- RIGHT ---------- */
.smc-lead-right { padding: 42px 40px; position: relative; }
@media (max-width: 820px) { .smc-lead-right { padding: 28px 28px 32px; } }

.smc-lead-row { margin-bottom: 18px; }
.smc-lead-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .smc-lead-2col { grid-template-columns: 1fr; } }

.smc-lead-field { display: block; }
.smc-lead-label { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.smc-lead-label em { font-style: normal; font-size: 10px; padding: 2px 8px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #9BB0D0; }
.smc-lead-label em.opt { background: rgba(255, 159, 67, 0.12); border-color: rgba(255, 159, 67, 0.3); color: #FFB580; }

.smc-lead-right input[type="text"],
.smc-lead-right input[type="email"],
.smc-lead-right input[type="tel"],
.smc-lead-right textarea {
	width: 100%; padding: 13px 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 10px; color: #fff; font-size: 14.5px; font-family: inherit; transition: all 0.18s;
}
.smc-lead-right input::placeholder,
.smc-lead-right textarea::placeholder { color: #6B7FA0; }
.smc-lead-right input:focus,
.smc-lead-right textarea:focus { outline: none; border-color: #FF9F43; background: rgba(255, 159, 67, 0.06); box-shadow: 0 0 0 4px rgba(255, 159, 67, 0.12); }
.smc-lead-right textarea { resize: vertical; min-height: 118px; line-height: 1.55; }

.smc-lead-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 16px; }
.smc-lead-status { font-size: 12.5px; color: #8AA0C4; }
.smc-lead-status.ok    { color: #22C55E; }
.smc-lead-status.err   { color: #F87171; }
.smc-lead-status.saving::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #FF9F43; margin-right: 6px; animation: smcPulse 1.2s ease-in-out infinite; }

.smc-lead-submit { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; background: linear-gradient(135deg, #FF9F43 0%, #EF2D3C 100%); color: #fff; font-weight: 700; font-size: 15px; border: none; border-radius: 999px; cursor: pointer; box-shadow: 0 12px 28px -10px rgba(239, 45, 60, 0.5); transition: all 0.22s; }
.smc-lead-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(239, 45, 60, 0.65); }
.smc-lead-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.smc-lead-submit svg { width: 18px; height: 18px; }

/* ---------- Thank-you state ---------- */
.smc-lead-done { position: absolute; inset: 0; background: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; border-radius: inherit; }
.smc-lead-done[hidden] { display: none; }
.smc-lead-done-ic { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #22C55E, #0EA5E9); display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 18px; box-shadow: 0 14px 30px -10px rgba(34, 197, 94, 0.5); }
.smc-lead-done-ic svg { width: 34px; height: 34px; }
.smc-lead-done h3 { color: #fff; font-family: 'Space Grotesk', sans-serif; font-size: 26px; margin: 0 0 10px; font-weight: 700; }
.smc-lead-done p { color: #9BB0D0; max-width: 340px; margin: 0 0 22px; font-size: 14.5px; line-height: 1.55; }
.smc-lead-done-close { padding: 10px 24px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); color: #fff; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13.5px; transition: all 0.18s; }
.smc-lead-done-close:hover { background: rgba(255, 255, 255, 0.14); }

/* Lock scroll + hide modal children while showing done state */
body.smc-lead-open { overflow: hidden; }
