/* Lead form banner + modal — front theme (purple / indigo / blue) */

/* Banner blends with the right column "card" pattern (indigo-50 → purple-50, indigo-200 border) */
.lf-banner {
    position: relative;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    align-items: center;
    margin: 0 0 -.25rem;
    padding: 12px 16px 12px 12px;
    background: linear-gradient(to right, var(--indigo-50, #eef2ff), var(--purple-50, #faf5ff));
    border: 1px solid var(--indigo-200, #c7d2fe);
    border-radius: 0.5rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(6px);
    animation: lf-banner-in .35s cubic-bezier(.2,.8,.2,1) forwards;
    transition: border-color .2s ease, transform .2s ease;
}
@media (min-width: 1024px) {
    .lf-banner { margin-bottom: -1.25rem; }
}
.lf-banner:hover {
    border-color: var(--indigo-400, #818cf8);
    transform: translateY(-1px);
}
.lf-banner:focus-visible {
    outline: 2px solid var(--indigo-500, #6366f1);
    outline-offset: 2px;
}

@keyframes lf-banner-in {
    to { opacity: 1; transform: translateY(0); }
}

.lf-banner-thumb {
    position: relative;
    background: linear-gradient(135deg, var(--indigo-500, #6366f1), var(--purple-500, #a855f7));
    overflow: hidden;
    border-radius: 6px;
    width: 120px;
    height: 86px;
    flex-shrink: 0;
}
.lf-banner-thumb img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.lf-banner-thumb::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.1));
    pointer-events: none;
}
.lf-play {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px -2px rgba(0,0,0,.2);
    transition: transform .2s ease;
    z-index: 2;
}
.lf-banner:hover .lf-play { transform: translate(-50%, -50%) scale(1.08); }
.lf-play::before {
    content: "";
    width: 0; height: 0;
    border-left: 10px solid var(--indigo-600, #4f46e5);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    margin-left: 4px;
}

.lf-banner-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.lf-kicker {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--indigo-600, #4f46e5);
}
.lf-banner-title {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--gray-800, #1f2937);
    margin: 0;
}
.lf-banner-subtitle { display: none; }
.lf-banner-cta {
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    font-size: 12.5px;
    color: var(--indigo-600, #4f46e5);
}
.lf-banner-cta .lf-arrow {
    color: inherit;
    transition: transform .2s ease;
}
.lf-banner:hover .lf-arrow { transform: translateX(4px); }



/* Modal */
.lf-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 12, 35, .55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    animation: lf-fade-in .2s ease forwards;
}
@keyframes lf-fade-in { to { opacity: 1; } }

.lf-modal-card {
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 90px -20px rgba(15, 12, 35, .55);
    transform: scale(.96);
    opacity: 0;
    animation: lf-card-in .28s cubic-bezier(.2,.8,.2,1) forwards;
    position: relative;
}
@keyframes lf-card-in {
    to { transform: scale(1); opacity: 1; }
}

.lf-modal-close {
    position: absolute;
    top: 12px; right: 14px;
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 0;
    background: rgba(15, 12, 35, .58);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 4;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s ease;
}
.lf-modal-close:hover { background: rgba(15, 12, 35, .82); }

.lf-video-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0b0820;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}
.lf-video-wrap iframe {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    border: 0;
}
.lf-video-fallback {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #cbd5ff;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    font-size: 14px;
}

.lf-form {
    padding: 22px 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.lf-form h3 {
    margin: 4px 0 0;
    font-size: 22px;
    font-weight: 800;
    color: #1e1b4b;
}
.lf-form .lf-form-sub {
    margin: 0;
    color: #4b4d70;
    font-size: 14.5px;
    line-height: 1.5;
}
.lf-field {
    display: flex; flex-direction: column;
    gap: 6px;
}
.lf-field label {
    font-size: 13px;
    font-weight: 600;
    color: #2a2d4d;
}
.lf-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8dbf0;
    border-radius: 12px;
    font-size: 15px;
    color: #1e1b4b;
    background: #fafaff;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    box-sizing: border-box;
}
.lf-field input:focus {
    outline: none;
    border-color: #7c3aed;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, .15);
}
.lf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 540px) {
    .lf-row { grid-template-columns: 1fr; }
    .lf-form { padding: 18px 18px 22px; }
    .lf-video-wrap { border-radius: 16px 16px 0 0; }
    .lf-modal-card { border-radius: 16px; }
}

.lf-submit {
    appearance: none;
    border: 0;
    width: 100%;
    padding: 13px 18px;
    border-radius: 12px;
    background: linear-gradient(90deg, #7c3aed, #4f46e5, #2563eb);
    background-size: 180% 100%;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 26px -10px rgba(79, 70, 229, .65);
    transition: background-position .3s ease, transform .15s ease, box-shadow .15s ease;
}
.lf-submit:hover { background-position: 100% 0; transform: translateY(-1px); }
.lf-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.lf-spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lf-spin .8s linear infinite;
    display: none;
}
.lf-submit.is-loading .lf-spinner { display: inline-block; }
@keyframes lf-spin { to { transform: rotate(360deg); } }

.lf-privacy {
    font-size: 12px;
    color: #6b6e8d;
    text-align: center;
    margin: 2px 0 0;
}

.lf-msg {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    display: none;
}
.lf-msg.is-success {
    display: block;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.lf-msg.is-error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
