/* =====================================================
   Remoteroles – Premium Apply Experience
   ===================================================== */

.rr-apply-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Panel */
.rr-apply-confirm-box {
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
    width: 95%;
    max-width: 640px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 28px 28px 24px;
    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.35),
        0 10px 30px rgba(26, 115, 232, 0.18);
    position: relative;
    animation: rrFadeIn 0.3s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
}

/* Close */
.rr-apply-close {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
}

.rr-apply-close:hover {
    color: #111827;
}

/* Header */
.rr-apply-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.rr-apply-header h3 {
    font-size: 23px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #0f172a;
}

.rr-apply-sub {
    font-size: 14px;
    color: #374151;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rr-apply-via {
    font-size: 13px;
    color: #1a73e8;
}

/* Content */
.rr-apply-content p {
    font-size: 15px;
    color: #374151;
    line-height: 1.65;
    margin-bottom: 12px;
}

.rr-apply-content ul {
    margin: 14px 0 18px;
    padding-left: 22px;
}

.rr-apply-content ul li {
    font-size: 15px;
    margin-bottom: 8px;
    color: #374151;
}

/* Highlight */
.rr-note {
    background: linear-gradient(90deg, #eef4ff, #f7faff);
    border-left: 4px solid #1a73e8;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 16px;
}

/* Trust */
.rr-trust {
    background: #f9fafb;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    color: #1f2937;
}

/* Actions */
.rr-apply-actions {
    display: flex;
    gap: 14px;
    margin-top: 26px;
}

.rr-apply-actions button {
    flex: 1;
    padding: 14px 18px;
    font-size: 15.5px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

/* Primary */
.rr-btn-continue {
    background: linear-gradient(135deg, #1a73e8, #1558b0);
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(26, 115, 232, 0.4);
}

.rr-btn-continue:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(26, 115, 232, 0.5);
}

/* Secondary */
.rr-btn-cancel {
    background: #eef2f7;
    color: #374151;
}

.rr-btn-cancel:hover {
    background: #e5e7eb;
}

/* Redirect note */
.rr-redirect-note {
    margin-top: 12px;
    font-size: 13.5px;
    color: #374151;
    text-align: center;
    line-height: 1.5;
}

/* Mobile */
@media (max-width: 480px) {
    .rr-apply-confirm-box {
        padding: 22px 18px;
        max-height: 85vh;
    }

    .rr-apply-header h3 {
        font-size: 20px;
    }
}

/* Animation */
@keyframes rrFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}





/* ===============================
   Sticky Action Footer (FIX)
   =============================== */

.rr-apply-confirm-box {
    display: flex;
    flex-direction: column;
}

/* Scrollable content only */
.rr-apply-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

/* Sticky footer */
.rr-apply-actions {
    position: sticky;
    bottom: 0;
    background: #ffffff;
    padding-top: 14px;
    margin-top: 12px;
    border-top: 1px solid #e5e7eb;
    z-index: 2;
}
