/* ============================================================
   PA NOTARY LEAD ENGINE — Forms, Exit Intent, Countdown Bar
   ============================================================ */

/* ── Lead magnet form ── */
.panl-form {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border-radius: 16px;
    overflow: hidden;
    margin: 24px 0;
}

/* Layout: side */
.panl-form--side {
    display: grid;
    grid-template-columns: 220px 1fr;
}
@media (max-width: 640px) {
    .panl-form--side { grid-template-columns: 1fr; }
    .panl-form--side .panl-form-image { display: none; }
}

/* Layout: top */
.panl-form--top { display: flex; flex-direction: column; }

/* Layout: form only */
.panl-form--form .panl-form-image { display: none; }

/* Cover image panel */
.panl-form-image {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
}
.panl-cover-wrap { position: relative; display: inline-block; }
.panl-cover-img {
    width: 160px;
    border-radius: 8px;
    display: block;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.panl-cover-shine {
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,.15) 0%, transparent 60%);
    pointer-events: none;
}

/* Theme: dark */
.panl-form--dark { background: #1A1A1A; }
.panl-form--dark .panl-form-image { background: #111; }
.panl-form--dark .panl-form-content { padding: 32px 28px; }
.panl-form--dark .panl-form-eye { color: #CC0000; }
.panl-form--dark .panl-form-headline { color: #fff; }
.panl-form--dark .panl-form-sub { color: rgba(255,255,255,.65); }
.panl-form--dark .panl-form-privacy { color: rgba(255,255,255,.3); }
.panl-form--dark .panl-email-input {
    background: rgba(255,255,255,.07);
    border-color: rgba(255,255,255,.12);
    color: #fff;
}
.panl-form--dark .panl-email-input::placeholder { color: rgba(255,255,255,.35); }
.panl-form--dark .panl-success-icon { color: #4ADE80; }
.panl-form--dark .panl-success-text { color: #fff; }

/* Theme: light */
.panl-form--light { background: #fff; border: 0.5px solid #e8e8e8; }
.panl-form--light .panl-form-image { background: #f4f4f2; }
.panl-form--light .panl-form-content { padding: 32px 28px; }
.panl-form--light .panl-form-eye { color: #CC0000; }
.panl-form--light .panl-form-headline { color: #1A1A1A; }
.panl-form--light .panl-form-sub { color: #666; }
.panl-form--light .panl-form-privacy { color: #bbb; }
.panl-form--light .panl-email-input { background: #f9f9f9; border-color: #e0e0e0; color: #1A1A1A; }
.panl-form--light .panl-success-icon { color: #16a34a; }
.panl-form--light .panl-success-text { color: #1A1A1A; }

/* Theme: red */
.panl-form--red { background: #CC0000; }
.panl-form--red .panl-form-image { background: #aa0000; }
.panl-form--red .panl-form-content { padding: 32px 28px; }
.panl-form--red .panl-form-eye { color: rgba(255,255,255,.5); }
.panl-form--red .panl-form-headline { color: #fff; }
.panl-form--red .panl-form-sub { color: rgba(255,255,255,.8); }
.panl-form--red .panl-form-privacy { color: rgba(255,255,255,.4); }
.panl-form--red .panl-email-input { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); color: #fff; }
.panl-form--red .panl-email-input::placeholder { color: rgba(255,255,255,.5); }
.panl-form--red .panl-submit-btn { background: #fff !important; color: #CC0000 !important; }
.panl-form--red .panl-success-icon,.panl-form--red .panl-success-text { color: #fff; }

/* Common form content */
.panl-form-eye {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    margin-bottom: 8px;
}
.panl-form-headline {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
}
.panl-form-sub {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 22px;
}
.panl-input-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
@media (max-width: 480px) {
    .panl-input-wrap { flex-direction: column; }
}
.panl-email-input {
    flex: 1;
    padding: 13px 15px;
    font-size: 15px;
    border: 1px solid;
    border-radius: 9px;
    outline: none;
    font-family: inherit;
    transition: border-color .12s;
    min-width: 0;
}
.panl-email-input:focus { border-color: #CC0000 !important; }
.panl-submit-btn {
    padding: 13px 22px;
    background: #CC0000;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background .12s;
}
.panl-submit-btn:hover { background: #aa0000; }
.panl-form-privacy {
    font-size: 11px;
    font-family: 'Courier New', monospace;
    letter-spacing: .04em;
}
.panl-form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
}
.panl-success-icon svg { display: block; }
.panl-success-text {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

/* ── Exit intent popup ── */
.panl-exit-wrap {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.panl-exit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,.85);
    cursor: pointer;
}
.panl-exit-modal {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    border-radius: 16px;
    overflow: hidden;
}
.panl-exit-modal .panl-form { margin: 0; border-radius: 0; }
.panl-exit-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background .12s;
}
.panl-exit-close:hover { background: rgba(255,255,255,.3); }

/* ── Countdown bar ── */
.panl-bar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 99995;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.panl-bar--top    { top: 0; }
.panl-bar--bottom { bottom: 0; }

.panl-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px 20px;
    flex-wrap: wrap;
}
.panl-bar-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.panl-bar-headline {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}
.panl-bar-sub {
    font-size: 12px;
    color: rgba(255,255,255,.7);
    white-space: nowrap;
}
.panl-bar-timer {
    display: flex;
    align-items: center;
    gap: 4px;
}
.panl-timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
    background: rgba(0,0,0,.2);
    border-radius: 6px;
    padding: 4px 6px;
}
.panl-timer-num {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    font-family: 'Courier New', monospace;
    line-height: 1;
}
.panl-timer-label {
    font-size: 9px;
    color: rgba(255,255,255,.55);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-family: 'Courier New', monospace;
    margin-top: 2px;
}
.panl-timer-colon {
    font-size: 20px;
    font-weight: 800;
    color: rgba(255,255,255,.5);
    margin-bottom: 12px;
}
.panl-bar-btn {
    padding: 8px 18px;
    background: rgba(255,255,255,.15);
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    border-radius: 7px;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,.25);
    white-space: nowrap;
    transition: background .12s;
}
.panl-bar-btn:hover { background: rgba(255,255,255,.25); }
.panl-bar-dismiss {
    background: none;
    border: none;
    color: rgba(255,255,255,.4);
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color .12s;
}
.panl-bar-dismiss:hover { color: #fff; }

@media (max-width: 600px) {
    .panl-bar-inner { gap: 10px; }
    .panl-bar-sub { display: none; }
    .panl-timer-num { font-size: 16px; }
    .panl-timer-unit { min-width: 36px; }
}

/* v2.0 — Progress bar */
.panl-progress-bar{margin-bottom:14px;}
.panl-progress-steps{display:flex;align-items:center;gap:6px;font-size:11px;font-weight:600;margin-bottom:6px;text-transform:uppercase;letter-spacing:.05em;}
.panl-form--dark .panl-progress-steps{color:rgba(255,255,255,.6);}
.panl-form--light .panl-progress-steps{color:rgba(0,0,0,.5);}
.panl-step.active{color:#CC0000;}
.panl-step-sep{opacity:.4;}
.panl-progress-track{height:3px;background:rgba(255,255,255,.15);border-radius:2px;overflow:hidden;}
.panl-form--light .panl-progress-track{background:rgba(0,0,0,.12);}
.panl-progress-fill{height:100%;background:#CC0000;border-radius:2px;transition:width .3s ease;}

/* v2.0 — First name input */
.panl-input-wrap--name{margin-bottom:8px;}
.panl-input-wrap--name input{width:100%;padding:12px 16px;border:none;border-radius:8px;font-size:15px;box-sizing:border-box;}
.panl-form--dark .panl-input-wrap--name input{background:rgba(255,255,255,.1);color:#fff;}
.panl-form--dark .panl-input-wrap--name input::placeholder{color:rgba(255,255,255,.45);}
.panl-form--light .panl-input-wrap--name input{background:#f5f5f5;color:#1a1a1a;}
