/* ============================================
   ALERT PROMPT COMPONENT - STYLESHEET
   Job-Scouts.com | Slide-in "get jobs like this" prompt (Sprint 1 S-1)
   Fixed positioning: never participates in page layout, so showing or
   hiding it never shifts page content.
   ============================================ */

.alert-prompt {
    position: fixed;
    z-index: 1040; /* above the mobile apply bar's 1030 */
    right: 20px;
    bottom: 20px;
    width: 320px;
    max-width: calc(100vw - 32px);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .18);
    padding: 18px 18px 16px;
    transform: translateY(16px);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
    pointer-events: none;
}

.alert-prompt.d-none {
    display: none;
}

.alert-prompt.alert-prompt--visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.alert-prompt__close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: 0;
    font-size: 1.25rem;
    line-height: 1;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
}

.alert-prompt__close:hover {
    color: #475569;
}

.alert-prompt__title {
    font-size: .95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 20px 4px 0;
}

.alert-prompt__subtext {
    font-size: .78rem;
    color: #64748b;
    margin: 0 0 12px;
}

.alert-prompt__form {
    display: flex;
    gap: 8px;
}

.alert-prompt__email {
    flex: 1;
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: .85rem;
}

.alert-prompt__submit {
    flex: 0 0 auto;
    background: #4f46e5;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.alert-prompt__submit:hover {
    background: #4338ca;
}

/* Mobile: bottom sheet, kept clear of the fixed mobile apply bar
   (job_detail.html's .mobile-apply-bar, ~72px incl. safe-area inset). */
@media (max-width: 767.98px) {
    .alert-prompt {
        left: 12px;
        right: 12px;
        bottom: calc(72px + env(safe-area-inset-bottom));
        width: auto;
        max-width: none;
        border-radius: 14px 14px 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .alert-prompt {
        transition: none;
    }
}
