/* SM Conversion Engine — Frontend Styles */

/* ── EMAIL CAPTURE INLINE FORM ──────────────────────────────────────────────── */
.sm-ce-inline-form {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 14px;
    padding: 0;
    margin: 32px 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.sm-ce-inline-form.sm-ce-visible {
    opacity: 1;
    transform: translateY(0);
}
.sm-ce-form-inner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 28px;
    flex-wrap: wrap;
}
.sm-ce-form-icon { font-size: 36px; flex-shrink: 0; }
.sm-ce-form-text { flex: 1; min-width: 200px; }
.sm-ce-form-title { color: #f1f5f9; font-size: 18px; font-weight: 800; display: block; margin-bottom: 4px; }
.sm-ce-form-sub   { color: #94a3b8; font-size: 14px; margin: 0; line-height: 1.5; }
.sm-ce-form-deal  { background: rgba(253,224,71,.15); border: 1px solid rgba(253,224,71,.3);
                    color: #fde047; font-size: 13px; font-weight: 600;
                    padding: 4px 10px; border-radius: 6px; margin-top: 8px; display: inline-block; }
.sm-ce-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 260px;
}
.sm-ce-form-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.sm-ce-email-input,
.sm-ce-name-input {
    flex: 1;
    min-width: 140px;
    padding: 12px 14px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #f1f5f9;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color .15s;
}
.sm-ce-email-input:focus,
.sm-ce-name-input:focus { border-color: #f59e0b; }
.sm-ce-email-input::placeholder,
.sm-ce-name-input::placeholder { color: #475569; }
.sm-ce-submit-btn {
    background: #f59e0b;
    color: #111;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s, transform .1s;
}
.sm-ce-submit-btn:hover { background: #d97706; transform: translateY(-1px); }
.sm-ce-privacy { color: #475569; font-size: 11px; margin: 0; }
.sm-ce-gdpr    { color: #94a3b8; font-size: 12px; display: flex; align-items: flex-start; gap: 6px; }
.sm-ce-success { color: #4ade80; font-size: 14px; font-weight: 600; padding: 10px 0; }

/* ── EXIT INTENT POPUP ──────────────────────────────────────────────────────── */
.sm-ce-popup-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 999998;
    opacity: 0;
    transition: opacity .3s ease;
}
.sm-ce-popup-box {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(.92);
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px;
    max-width: 440px;
    width: calc(100% - 40px);
    z-index: 999999;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0,0,0,.3);
    opacity: 0;
    transition: all .3s ease;
}
#sm-ce-exit-popup.sm-ce-show .sm-ce-popup-backdrop {
    opacity: 1;
}
#sm-ce-exit-popup.sm-ce-show .sm-ce-popup-box {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.sm-ce-popup-close {
    position: absolute; top: 12px; right: 14px;
    background: none; border: none;
    font-size: 22px; color: #94a3b8; cursor: pointer;
    line-height: 1; padding: 4px;
}
.sm-ce-popup-close:hover { color: #374151; }
.sm-ce-popup-icon  { font-size: 48px; margin-bottom: 12px; }
.sm-ce-popup-title { font-size: 22px; font-weight: 800; color: #111; margin: 0 0 10px; }
.sm-ce-popup-sub   { font-size: 15px; color: #6b7280; margin: 0 0 20px; line-height: 1.6; }
.sm-ce-popup-email {
    display: block; width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    margin-bottom: 10px;
    box-sizing: border-box;
    transition: border-color .15s;
}
.sm-ce-popup-email:focus { outline: none; border-color: #f59e0b; }
.sm-ce-popup-btn {
    display: block; width: 100%;
    background: #111; color: #fff;
    border: none; border-radius: 10px;
    font-size: 15px; font-weight: 800;
    padding: 14px; cursor: pointer;
    transition: background .15s;
}
.sm-ce-popup-btn:hover { background: #1e293b; }
.sm-ce-popup-privacy { font-size: 12px; color: #94a3b8; margin: 10px 0 0; }

/* ── COMPARISON TABLE ───────────────────────────────────────────────────────── */
.sm-ce-comparison-wrap {
    margin: 40px 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.sm-ce-cmp-heading {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    margin: 0;
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}
.sm-ce-cmp-table-wrap { overflow-x: auto; }
.sm-ce-cmp-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}
.sm-ce-cmp-table thead tr { background: #f8fafc; }
.sm-ce-cmp-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid #e2e8f0;
}
.sm-ce-cmp-table tbody tr { border-bottom: 1px solid #f1f5f9; transition: background .12s; }
.sm-ce-cmp-table tbody tr:hover { background: #f8fafc; }
.sm-ce-cmp-table tbody tr:last-child { border-bottom: none; }
.sm-ce-cmp-table td { padding: 14px; vertical-align: middle; }
.sm-ce-cmp-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.sm-ce-cmp-inner { display: flex; align-items: center; gap: 12px; }
.sm-ce-cmp-img   { width: 60px; height: 60px; object-fit: contain; flex-shrink: 0; }
.sm-ce-cmp-title { color: #111; font-weight: 600; font-size: 14px; text-decoration: none; line-height: 1.4; }
.sm-ce-cmp-title:hover { color: #2563eb; }
.sm-ce-stars { color: #f59e0b; font-size: 14px; }
.sm-ce-cmp-price strong { font-size: 16px; color: #111; }
.sm-ce-cmp-btn {
    display: inline-block;
    background: #f59e0b;
    color: #111;
    font-weight: 800;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .12s;
}
.sm-ce-cmp-btn:hover { background: #d97706; }

/* ── HIGH INTENT BOOST ──────────────────────────────────────────────────────── */
.sm-ce-high-intent .sm-btn-main,
.sm-ce-high-intent .sm-btn-yellow {
    background: #16a34a !important;
    color: #fff !important;
    animation: sm-ce-glow 2s ease-in-out infinite;
}
@keyframes sm-ce-glow {
    0%,100% { box-shadow: 0 0 0 0 rgba(22,163,74,.3); }
    50%      { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
}

@media (max-width: 600px) {
    .sm-ce-form-inner { flex-direction: column; padding: 20px; }
    .sm-ce-form-row   { flex-direction: column; }
    .sm-ce-email-input, .sm-ce-name-input, .sm-ce-submit-btn { width: 100%; }
}
