/* ============================================================
   LearnSiksha — Popup Modals
   File: public/css/popup-modals.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ---------- Reset & Variables ---------- */
:root {
    --ls-blue:    #56cc99;
    --ls-blue-dk: #3C966E;
    --ls-green:   #3C966E;
    --ls-amber:   #3C966E;
    --ls-indigo:  #4338ca;
    --ls-white:   #ffffff;
    --ls-gray-50: #f8fafc;
    --ls-gray-100:#f1f5f9;
    --ls-gray-200:#e2e8f0;
    --ls-gray-500:#64748b;
    --ls-gray-700:#334155;
    --ls-gray-900:#0f172a;
    --ls-radius:  14px;
    --ls-font:    'Plus Jakarta Sans', sans-serif;
    --ls-shadow:  0 24px 64px rgba(0,0,0,0.28), 0 8px 24px rgba(0,0,0,0.12);
    --ls-transition: 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Overlay ---------- */
.ls-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: var(--ls-font);
    -webkit-font-smoothing: antialiased;
}

.ls-overlay.ls-overlay--hidden {
    display: none;
}

.ls-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 40, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}

/* ---------- Modal Card ---------- */
.ls-modal {
    position: relative;
    z-index: 1;
    background: var(--ls-white);
    border-radius: var(--ls-radius);
    width: 100%;
    max-width: 460px;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: var(--ls-shadow);
    animation: lsPopIn var(--ls-transition) both;
    scrollbar-width: thin;
    scrollbar-color: var(--ls-gray-200) transparent;
}

.ls-modal--hidden {
    display: none !important;
}

@keyframes lsPopIn {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(16px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ---------- Close / Back Button ---------- */
.ls-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}
.ls-close:hover { background: rgba(255,255,255,0.3); }

/* ---------- Modal Top (colored header) ---------- */
.ls-modal-top {
    padding: 28px 26px 22px;
    position: relative;
    overflow: hidden;
}

.ls-modal-top::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    pointer-events: none;
}

.ls-modal-top--blue   { background: linear-gradient(135deg, var(--ls-blue) 0%, var(--ls-blue-dk) 100%); }
.ls-modal-top--green  { background: linear-gradient(135deg, #16a34a 0%, #14532d 100%); }
.ls-modal-top--amber  { background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%); }
.ls-modal-top--indigo { background: linear-gradient(135deg, #6366f1 0%, #3730a3 100%); }

/* ---------- Brand Logo ---------- */
.ls-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ls-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.ls-logo-fallback {
    height: 36px;
    background: rgba(255,255,255,0.25);
    border-radius: 8px;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    display: none;
}

/* ---------- Badge ---------- */
.ls-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ls-badge--light {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
}

/* ---------- Headline & Tagline ---------- */
.ls-modal-headline {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.ls-modal-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.82);
    line-height: 1.5;
    margin: 0;
}

/* ---------- Modal Body ---------- */
.ls-modal-body {
    padding: 20px 24px 22px;
}

/* ---------- Feature List ---------- */
.ls-features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.ls-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--ls-gray-700);
    padding: 5px 0;
    font-weight: 500;
}

.ls-tick {
    width: 20px;
    height: 20px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---------- Highlight Strip ---------- */
.ls-highlight-strip {
    background: #eff6ff;
    border-left: 3px solid var(--ls-blue);
    border-radius: 0 8px 8px 0;
    padding: 11px 14px;
    font-size: 13px;
    color: var(--ls-gray-700);
    margin-bottom: 18px;
    line-height: 1.5;
}

/* ---------- Buttons ---------- */
.ls-btn {
    display: block;
    width: 100%;
    padding: 13px 20px;
    border-radius: 10px;
    font-family: var(--ls-font);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    margin-bottom: 10px;
    text-decoration: none;
}

.ls-btn--primary {
    background: linear-gradient(135deg, var(--ls-blue) 0%, var(--ls-blue-dk) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(26,111,232,0.4);
}

.ls-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(26,111,232,0.5);
}

.ls-btn--primary:active { transform: scale(0.98); }

.ls-btn--ghost {
    background: transparent;
    color: var(--ls-blue);
    border: 1.5px solid var(--ls-blue);
}

.ls-btn--ghost:hover { background: #eff6ff; }

/* ---------- Form Inputs ---------- */
.ls-form { margin: 0; }

.ls-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ls-input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--ls-gray-200);
    border-radius: 8px;
    font-family: var(--ls-font);
    font-size: 13px;
    color: var(--ls-gray-900);
    background: var(--ls-gray-50);
    margin-bottom: 10px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.ls-input:focus {
    border-color: var(--ls-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,111,232,0.12);
}

.ls-input::placeholder { color: #94a3b8; }

.ls-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

/* ---------- Countdown ---------- */
.ls-countdown-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
}

.ls-countdown-icon { font-size: 22px; }

.ls-countdown-label {
    font-size: 11px;
    color: #92400e;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ls-countdown-timer {
    font-size: 24px;
    font-weight: 800;
    color: #b45309;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
}

/* ---------- Offer Card ---------- */
.ls-offer-card {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 1.5px dashed #f59e0b;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    margin-bottom: 18px;
}

.ls-offer-was {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-bottom: 4px;
}

.ls-offer-now {
    font-size: 32px;
    font-weight: 800;
    color: var(--ls-amber);
    line-height: 1;
}

.ls-offer-unit {
    font-size: 14px;
    font-weight: 500;
    color: var(--ls-gray-500);
}

.ls-offer-save {
    font-size: 13px;
    color: var(--ls-green);
    font-weight: 700;
    margin-top: 6px;
}

/* ---------- Contact Strip ---------- */
.ls-contact-strip {
    display: flex;
    justify-content: space-between;
    background: var(--ls-gray-100);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12.5px;
    color: var(--ls-gray-700);
    margin-bottom: 16px;
    gap: 8px;
    flex-wrap: wrap;
}

.ls-contact-strip a {
    color: var(--ls-blue);
    text-decoration: none;
    font-weight: 600;
}

.ls-contact-strip a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.ls-modal-footer {
    padding: 14px 24px 16px;
    background: var(--ls-gray-50);
    border-top: 1px solid var(--ls-gray-200);
    text-align: center;
}

.ls-stars {
    color: #f59e0b;
    font-size: 17px;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.ls-quote {
    font-size: 12px;
    color: var(--ls-gray-500);
    font-style: italic;
    line-height: 1.5;
    margin: 0;
}

/* ---------- Step Dots ---------- */
.ls-step-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 12px 0 16px;
}

.ls-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ls-gray-200);
    transition: all 0.3s ease;
}

.ls-dot--active {
    width: 22px;
    border-radius: 4px;
    background: var(--ls-blue);
}

/* ---------- Privacy Text ---------- */
.ls-privacy {
    font-size: 11.5px;
    color: #94a3b8;
    text-align: center;
    margin-top: 6px;
    margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .ls-modal {
        max-height: 88vh;
        border-radius: 16px 16px 0 0;
    }

    .ls-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .ls-modal-headline { font-size: 19px; }

    .ls-form-row { grid-template-columns: 1fr; gap: 0; }

    .ls-contact-strip {
        flex-direction: column;
        gap: 4px;
    }
}